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

Cannot build on MinGW 5.3 #239

Closed
MCoder42 opened this issue Jul 18, 2016 · 9 comments
Closed

Cannot build on MinGW 5.3 #239

MCoder42 opened this issue Jul 18, 2016 · 9 comments

Comments

@MCoder42
Copy link

Under Windows cannot build with MinGW 5.3 and Qt 5.7.

@krf
Copy link
Contributor

krf commented Jul 18, 2016

Please include an excerpt of the relevant build output (compiler error, etc.)

@MCoder42
Copy link
Author

MCoder42 commented Jul 18, 2016

Here is output:

c:\111\GammaRay>C:\Qt\5.7\mingw53_32\bin\qtenv2.bat

c:\111\GammaRay>echo off
Setting up environment for Qt usage...

C:\Qt\5.7\mingw53_32>cd c:\111\GammaRay

c:\111\GammaRay>mkdir build

c:\111\GammaRay>cd build

c:\111\GammaRay\build>cmake -G "MinGW Makefiles" ..
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

c:\111\GammaRay\build>```

@krf
Copy link
Contributor

krf commented Jul 18, 2016

Oh, okay. That's very much unrelated to GammaRay.

Please make sure to add C:\Qt\5.7\mingw53_32\bin\ to the PATH environment variable before using Qt via CMake.

@MCoder42
Copy link
Author

I'm added path but nothing changes:

c:\111\GammaRay\build>set PATH=%PATH%;C:\Qt\5.7\mingw53_32\bin\

c:\111\GammaRay\build>cmake -G "MinGW Makefiles" ..
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

@winterz
Copy link
Contributor

winterz commented Jul 18, 2016

make sure you also have mingw32-make in your %PATH%
then remove your build dir and start again.

@MCoder42
Copy link
Author

MCoder42 commented Jul 18, 2016

Here is video:
https://www.dropbox.com/s/n8bsfahnh4vyzuc/gr.avi?dl=0
I'm trying build from scratch...

@winterz
Copy link
Contributor

winterz commented Jul 18, 2016

what does mingw32-make --version say?

@MCoder42
Copy link
Author

Sorry! I missed one symbol in path. All compiled with no problems.

@winterz
Copy link
Contributor

winterz commented Jul 18, 2016

great!

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

No branches or pull requests

3 participants