Qt5_DIR-NOTFOUND
Solved
General and Desktop
-
@SGaist
Yes, I have used Qt Creator to compile with CMake, specifically, I have loaded CMakeLists.tzt into Qt Creator, but there I have another troubles:Run Build Command(s):C:/Project/ninja-win/ninja.exe cmTC_df434 && [1/2] Building C object CMakeFiles\cmTC_df434.dir\testCCompiler.c.obj [2/2] Linking C executable cmTC_df434.exe FAILED: cmTC_df434.exe cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_df434.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~2\MICROS~1.0\VC\bin\X86_AM~1\link.exe /nologo CMakeFiles\cmTC_df434.dir\testCCompiler.c.obj /out:cmTC_df434.exe /implib:cmTC_df434.lib /pdb:cmTC_df434.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." RC Pass 1: command "rc /fo CMakeFiles\cmTC_df434.dir/manifest.res CMakeFiles\cmTC_df434.dir/manifest.rc" failed (exit code 0) with the following output: The system cannot find the file specified ninja: build stopped: subcommand failed.
I guess the CMake way it is the easy one.
-
Your build started correctly.
Qt Creator uses cmake since it's a cmake project. The main difference is that the paths for Qt are pre-configured so you do not have to worry about that.
What is failing here is the rc call. How does your CMakeFile.txt look like ?
-
It's the rc part that fails. Did you a fresh build from start ?
-
You're welcome !
What did you do to succeed ?