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

Issue when building with cmake #77

Open
Alex533704 opened this issue Oct 7, 2022 · 5 comments
Open

Issue when building with cmake #77

Alex533704 opened this issue Oct 7, 2022 · 5 comments

Comments

@Alex533704
Copy link

Alex533704 commented Oct 7, 2022

Hello, i try to build the hello-world sample using cmake (GUI)
Building the sample using cmake without GUI works succesfully, but when i try to build using cmake GUI, it fails.

At the beginning cmake asks me to choose a generator for the project , wich generator should i choose ?

Can someone help me please ?

@isage
Copy link
Contributor

isage commented Oct 7, 2022

Obviously, the one, for which you have build tools available. Typically it's Unix Makefiles

@Alex533704
Copy link
Author

Alex533704 commented Oct 7, 2022

Hello, when i choose "Unix Makefiles" as build programm i have this error:
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

Here is a screenshot to make it more clear :

CMAKE_ERROR

@isage
Copy link
Contributor

isage commented Oct 7, 2022

You're using windows tool for toolchain installed in mingw/msys.
Use MinGW makefiles or msys makefiles generator.
Or, just don't use gui, there's zero reasons to use it. Use ccmake (console gui) instead

@Alex533704
Copy link
Author

Alex533704 commented Oct 8, 2022

Hello, i successfully created a Makefile with cmake (GUI) and i used as generator "MinGW makefiles".

But when tried to build using "Make" command i received a weird message from Console and there wasn't any compilation at all.

This is the message i received in Console after typing "make" --> (c) microsoft corporation. all rights reserved

@isage
Copy link
Contributor

isage commented Oct 8, 2022

If you're using MinGW makefiles use mingw32-make. Read the cmake docs.

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