Lameguy64 / PSn00bSDK

The most powerful open source SDK for the PS1 (as far as open source PS1 SDKs go). Not recommended for beginner use.
Other
819 stars 66 forks source link

error: Unknown CMake command "psn00bsdk_add_executable" #73

Closed N3koSempai closed 1 year ago

N3koSempai commented 1 year ago

I have this error when try make in my project for first time.

CMake Error at CMakeLists.txt:14 (psn00bsdk_add_executable): Unknown CMake command "psn00bsdk_add_executable"

spicyjpeg commented 1 year ago

Looks like you did not set the path to the toolchain file correctly. This can happen for several reasons:

Double check your environment variables and make sure they are set correctly (the set command on Windows or env on Linux/macOS will print the values of all environment variables). You may have to close and reopen your terminal window, or sometimes reboot, for changes made to environment variables to apply.

N3koSempai commented 1 year ago

The problem has been solved.

It was my mistake. When I followed the tutorial on the web it only says use ("make") when I should have followed the create a project section of this github repository. Everything worked correctly.