Cmake Error Qt Qmake Not Found Windows
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies could not find qt4 (missing: qt_moc_executable qt_rcc_executable of this site About Us Learn more about Stack Overflow the company qt_qmake_executable not found Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges qt_qmake_executable qt5 Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a could not find qt4 ubuntu minute: Sign up cmake not finding Qt4 up vote 9 down vote favorite 2 Since 4.8.0 is out, I've reinstalled Qt, and now I want to use cmake too. To make cmake work, I remember having to add the mingw bin folder (QtSDK\Desktop\Qt\4.7.3) to PATH back in Qt4.7.3, so I guessed that there would be a similar folder in QtSDK\Desktop\Qt\4.8.0 now but
Cmake Find Qt5
this is not the case. My question is, does anybody else have experience with setting up Qt and cmake? I could use some help right now, as I've googled for a bit and was unable to find any ways to make cmake work. When trying to build, I get this well known message: CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_INCLUDE_DIR) Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindQt4.cmake:1171 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:3 (find_package) qt compiler-construction cmake share|improve this question asked Mar 29 '12 at 21:38 Neko 97541531 I'm pretty sure all I had to do was make sure my QT_ROOT environment variable was set (C:\Qt\4.8.0\ on my machine). –tmpearce Mar 29 '12 at 21:47 @tmpearce: In CMakeLists.txt you mean? If not, could you please add how to do this? –Neko Mar 29 '12 at 23:51 I'm going off the "c:\..." path to assume you're in windows. From the right-click-on-"My Computer" context-menu, you can find your way to "Environment Variables". Google it if you need
sorted by: [ date ] [ thread ] [ subject ] [ author ] On Saturday 22 August 2009, Sebastian Schuberth wrote: > On 21.08.2009 22:22, Michael Jackson wrote: > > YOU are the one who compiled it in C:\Qt\4.5.1
Set Qt_qmake_executable
according to your > > original post. I am simply making you aware of cmake_prefix_path qt5 the error. > > Well, I specified "C:/Qt" instead of "C:/Qt/4.5.1" on purpose. The point > is: I have compiled Qt myself, qtcore could not be found there and not used the installer, thus there > are no registry keys and qmake is not in my PATH. So it's clear that > CMake cannot find my Qt installation without any hints from my side. http://stackoverflow.com/questions/9933939/cmake-not-finding-qt4 > On the other hand, I want my CMakeLists.txt file to be as generic as > possible, and not mention any version specific directories. As it's sort > of common for people to have Qt installed beneath "C:/Qt" on Windows, I > thought it might be possible to instruct find_package() to recursively > search for Qt / qmake starting at "C:/Qt". > > > So, if you compiled to C:\Qt\4.5.1 then you have http://public.kitware.com/pipermail/cmake/2009-September/031799.html a couple of options: > > > > set QTDIR to C:\Qt\4.5.1 in the environment variables. > > > > OR > > > > find_package(Qt4 PATHS "C:/Qt/4/.5.1") like Pau suggested. > > > > If you don't like the version number on there then recompile Qt 4.5.1 so > > that it has a path of C:\Qt and NOT C:\Qt\4.5.1 > > > > Understand? > > Yes, I perfectly understand, it's just not what I want, and I'm a little > disappointed how limited find_package(Qt4) seems to be. > > There is not need to recompile Qt in order to make it available at > "C:/Qt" instead of "C:/Qt/4.5.1", I just would have to move the files. > But like I said, the default install location for Qt on Windows is > "C:/Qt/
Support Search GitHub This repository Watch 71 Star 345 Fork 68 KDAB/GammaRay Code Issues 17 Pull requests 6 Projects 0 Wiki Pulse https://github.com/KDAB/GammaRay/issues/217 Graphs New issue Error installing on windows 10 with Qt 5.6 #217 Closed lqsa00 opened this Issue May 18, 2016 · 2 comments Projects None yet Labels None yet Milestone http://www.vtk.org/Wiki/VTK/Tutorials/QtSetup No milestone Assignees No one assigned 3 participants lqsa00 commented May 18, 2016 • edited This is the console output: D:\programacio\QT\GammaRay\build>cmake -G "MinGW Makefiles" .. -- The C compiler identification could not is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: C:/Qt/Tools/mingw492_32/bin/gcc.exe -- Check for working C compiler: C:/Qt/Tools/mingw492_32/bin/gcc.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Qt/Tools/mingw492_32/bin/g++.exe -- could not find Check for working CXX compiler: C:/Qt/Tools/mingw492_32/bin/g++.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.8.2.windows.1") -- Building GammaRay 2.4.50 (revision: 9c1022e) in Release mode CMake Deprecation Warning at C:/CMake/share/cmake-3.5/Modules/GenerateExportHeader.cmake:383 (message): The add_compiler_export_flags function is obsolete. Use the CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN target properties instead. Call Stack (most recent call first): CMakeLists.txt:152 (add_compiler_export_flags) -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Performing Test HAVE_GXX_UNUSED_BUT_SET -- Performing Test HAVE_GXX_UNUSED_BUT_SET - Success -- Performing Test HAVE_GXX_LOGICAL_OP -- Performing Test HAVE_GXX_LOGICAL_OP - Success -- Performing Test HAVE_GXX_POINTER_MEMACCESS -- Performing Test HAVE_GXX_POINTER_MEMACCESS - Success -- Performing Test HAVE_GXX_REORDER -- Performing Test HAVE_GXX_REORDER - Success -- Performing Test HAVE_GXX_FORMAT_SECURITY -- Performing Test HAVE_GXX_FORMAT_SECURITY - Success -- Performing Test HAVE_GXX_GNUXX11 -- Performing Test HAVE_GXX_GNUXX11 - Success -- Performing Test HAVE_GXX_CXX11 -- Performing Test HAVE_GXX_CXX11 - Success -- Found unsuitable Qt version "" from NOTFOUND Qt QTDESIGNER library not found. Qt QTSCRIPT library not found. Qt QTSVG lib
turn on the following options in the advanced VTK build configuration: With VTK 5.x: VTK_USE_QT VTK_USE_GUISUPPORT BUILD_SHARED_LIBS With VTK 6: VTK_Group_Qt BUILD_SHARED_LIBS If your Qt was not built with Webkit, VTK_Group_Qt will complain. Instead, set VTK_Group_Qt=OFF, Module_vtkGUISupportQt=ON, and Module_vtkGUISupportQtOpenGL=ON. You must have configured Qt with -opengl (and maybe -multimedia?) or you will get a "Qt QTOPENGL library not found." CMake error when configuring VTK. Note: You MUST build in Release mode. Linux sudo yum install qt* (or equivalent) Qt Designer To use QVTKWidget in the QT4 Designer, you must: sudo cp ~/build/VTK/bin/libQVTKWidgetPlugin.so /usr/lib/qt4/plugins/designer VTK6: sudo cp ~/build/VTK/lib/libQVTKWidgetPlugin.so /usr/lib/qt4/plugins/designer Qt Creator cp ~/build/VTK/bin/libQVTKWidgetPlugin.so /home/doriad/bin/qtcreator-2.6.2/bin/designer NOTE: This does NOT work with versions of QtCreator built against Qt 5.0.1. At the time of this writing, the release with the package of Qt Libraries + Qt Creator is built against Qt 5.0.1, while the release of the stand alone QtCreator is built against Qt 4.8.3. The Designer plugin will simply not be loaded. Linux(Debian) To use Qt under LGPL, which is recommended by VTK, you have to have Debian 6.0 (Squeeze) or later. Debian(Squeeze) has QT 4.6 and Vtk 5.4 in it. sudo apt-get install libqt4-dev libvtk5-qt4-dev This will install all header files and libraries that you need. This is still recommended even if you want to build the newer version for yourself since it will install most of header files and libraries that you need to build VTK and QT. If you build your version of VTK in /usr/local (i.e VTK-5.6), you can choose which version of VTK you are using when you do cmake for your application. Set VTK_DIR to /usr/lo