cmake finds no QtCore
Originally reported on Google Code with ID 44 ``` I have the following problem: I did an svn checkout today of trunk, and was going to try and build it on windows xp. I have mingw and visual studio 8 installed on my system. I have the latest cmake(2.4.6) and have qt 4.2.2. I can compile projects with QDevelop without a problem. However, when I do the following:
mkdir build cd build cmake ../src
I get this error in the end:
CMake Error: Could NOT find QtCore. Check C:/Hydra_sw_tryout/speedcrunch/build/C MakeFiles/CMakeError.log for more details. -- Configuring done
So then I just openend the crunch.pro file in src with QDevelop, and there I choose to compile the project and it compiled fine!
So I don't know what could be wrong.
```
Reported by `deblauwetom` on 2007-05-31 13:05:24
Comments (4)
-
Account Deleted -
``` When running CMake, are you running from the command prompt? Do you have qmake in your PATH (type "echo %PATH%" to get the contents of the path). ```
Reported by `e8johan` on 2007-06-01 05:18:38
-
Account Deleted ``` ah!
speedcrunch\build>cmake -G "MinGW Makefiles" ../src
that works but, any idea how come that it isn't possible to use cl? ```
Reported by `deblauwetom` on 2007-06-01 06:48:38
-
Account Deleted ``` You can't build using Visual Studio because the GPL windows version of Qt/Win32 is only for MinGW.
You can only use Visual Studio if - you have the commercial version of Qt/Win32 built for VS - you compile GPL'ed Qt/Win32 yourself using VS
I'll close this bug because it's solved. ```
Reported by `ariya.hidayat` on 2007-06-03 09:41:14 - Status changed: `Invalid`
- Log in to comment
``` If you have both MinGW and VS 8, likely you need to specify the generator for CMake. So run cmake with extra option -G "MinGW Makefiles", otherwise it may pick up the VS generator and therefore can't find your Qt/MinGW installation.
```
Reported by `ariya.hidayat` on 2007-05-31 22:58:50