CMake error with wut - Unknown CMake Command

support for the powerpc toolchain
Post Reply
User avatar
TurnOffTheTV
Posts: 1
Joined: Mon Aug 12, 2024 6:18 pm
Contact:

CMake error with wut - Unknown CMake Command

Post by TurnOffTheTV » Mon Aug 12, 2024 6:32 pm

I'm newer to C/C++ programming, and I still don't understand CMake or compilers (I usually use Xcode which handles all that for me) but this seems like a trivial issue fueled by inexperience. Basically, I followed all the installation instructions on the Getting Started page on the wiki, installing the wiiu-dev group and downloaded the helloworld_cpp sample from GitHub. When I ran "cmake ." it gave me the error "Unknown CMake command "wut_create_rpx"." which I kind of expected since I never told it where the devkitPro .cmake files were. So, how should I solve this?
Running MacOS if that wasn't clear.

User avatar
fincs
( ͡° ͜ʖ ͡°)
Posts: 103
Joined: Mon Jul 12, 2010 9:45 pm
Location: Seville, Spain
Contact:

Re: CMake error with wut - Unknown CMake Command

Post by fincs » Mon Aug 12, 2024 11:56 pm

You do need to pass the path to the Wii U cmake toolchain file:

Code: Select all

# Configure the project for Wii U (Release build)
cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/WiiU.cmake -DCMAKE_BUILD_TYPE=Release

# Build the project
cmake --build build
Alternatively, if you have our catnip helper tool installed ([c]sudo dkp-pacman -S catnip[/c] if you don't), you can use the following command to automatically configure and build the project for Wii U:

Code: Select all

catnip build -T WiiU
Donate to devkitPro - help us stay alive!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest