Skip to content
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

HedgeLib Part 4 help #89

Open
sonicsmith243 opened this issue Oct 23, 2024 · 2 comments
Open

HedgeLib Part 4 help #89

sonicsmith243 opened this issue Oct 23, 2024 · 2 comments

Comments

@sonicsmith243
Copy link

After downloading all the required dependencies, I put in the "cmake -S . -B build" command and it comes up with this error:

"CMake Error at CMakeLists.txt:13 (project):
  Running

   'nmake' '-?'

  failed with:

   no such file or directory


CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!"

if i use the command "cmake -S . -A x64 -B build" then it says

CMake Error: Error: generator platform: x64
Does not match the platform used previously:

I've downloaded the C++ build tools in Visual Studio as well (which for some reason didn't fix that issue others had which I also had with the download for part 3, but that part fixed itself after I just moved the cmake folder out and back into its default location lol)
Screenshot (1453)

@Radfordhound
Copy link
Owner

Hey, it looks like CMake is selecting the NMake generator instead of the Visual Studio 2022 generator, for some reason.

Are you sure both Visual Studio 2022, and the C++ build tools are properly installed?

If so, try deleting your current HedgeLib "build" folder, and re-doing step 4 with this command:

cmake -S . -B build -G "Visual Studio 17 2022"

This tells cmake to use the Visual Studio 2022 generator explicitly, instead of letting it guess which generator it should use.

Not sure if the dependencies from step 3 were also built with NMake?

Let me know how this works for you

@sonicsmith243
Copy link
Author

sorry for the late reply, but this is what it says when i use that command
Screenshot (1497)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants