-
Notifications
You must be signed in to change notification settings - Fork 34
Trouble with CMake #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This looks like the same (or a similar) problem in #81, has anything in that thread helped? |
@Knuxfan24 Absolutely not :/. I've tried everything in that thread, but nothing seemed to help. |
Hey, sorry you're having issues! Thanks for attaching a screenshot; that's very helpful! It looks like the Get-Dependencies script is running CMake, and CMake is failing, because it can't find a "generator" to use (a thing to build the C++ code with, basically). Do you have Visual Studio installed, along with the C++ build tools? Those are required to build C++ code on Windows (they're big downloads, so sorry in advance for this if you don't already have them. Microsoft moment). |
@Radfordhound Thanks for your worry! |
@Ashrindy Huh, I'm not sure why CMake is defaulting to the Unix Makefiles generator then, that's very weird! Is this being run in a Unix-like environment, like MinGW or something? Regardless, assuming you've got Visual Studio 2022, try adding & cmake -Wno-deprecated -G "Visual Studio 17 2022" -A $Architecture ../src/$SourcePath $Arguments $InstalledPrefixArgument (Or, if you're using Visual Studio 2019, then use Then, try running the Get-Dependencies script again, to see if that lets you build (or at least gives you a different error). |
@Radfordhound I'm not quite sure on the environment. Though after adding that argument in, it spits out a different error |
@Ashrindy Interesting! Normal CMake for Windows builds are always supposed to have the Visual Studio generators built-in... so maybe a special version of CMake is installed on your machine that ended up higher in your PATH somehow? I assume you downloaded your CMake from cmake.org, yeah? Do you happen to have devkitpro/msys2 installed? That comes with its own version of CMake which might be screwing with things. What does it say if you run the following command in a Command Prompt window: (NOTE: It has to be command prompt, as for some reason, this command seems to just output nothing in PowerShell)
For me, it listed two paths:
As you can see, I have devkitpro installed, but it's lower in my PATH, so when I run "cmake", it uses that first cmake.exe, which is the correct one, and it has the Visual Studio generators. If I instead run the second one that it lists for me from devkitpro, I also do not have any Visual Studio generators listed. |
@Radfordhound You were right! I have msys2 downloaded, and it was above my normal cmake.exe. Though it only worked when I removed |
@Ashrindy Ay! 🎉 No problem, happy I could help! |
Hey!

I'm a bit new to CMake so this might be a simple and stupid solution, but I'm getting this error which I have no idea on how to solve.
Would appreciate any sort of solution!
The text was updated successfully, but these errors were encountered: