![]() provides a separate development package or SDK, be sure it has beenĬonan.cmake (which is called from the top level CMakeLists.txt file) macro(run_conan) "Qt5Svg_DIR" to a directory containing one of the above files. Add the installation prefix of "Qt5Svg" to CMAKE_PREFIX_PATH or set Could not find a package configuration file provided by "Qt5Svg" with any asked CMake to find a package configuration file provided by "Qt5Svg", but By not providing "FindQt5Svg.cmake" in CMAKE_MODULE_PATH this project has CMake Error at src/analysis_tool/CMakeLists.txt:33 (find_package): Bellow are the error messages and the relevant cmake files. For some reason, the Qt5Svg module is not included with this package and I couldn't find a good solution for this so I've hit a dead end. Getting most of the qt libraries was fairly easy using Except one. I also plan to get my qt dependencies through Conan and get a CI service going. \configure -prefix c:\Qt\Qt5.2.1 -developer-build -release -opensource -confirm-license -nomake examples -nomake tests -opengl desktopĪfter the build and installation of Qt is complete, we finally configure, build and install VTK: cd C:\VTK-6.1.0Ĭmake -G "Visual Studio 11 Win64" c:/VTK-6.1.0 -DCMAKE_INSTALL_PREFIX:path=C:/VTK/VTK6.1.0 -DVTK_QT_VERSION:STRING=5 -DQT_QMAKE_EXECUTABLE:PATH=C:/Qt/Qt5.2.1/bin/qmake.exe -DVTK_Group_Qt:BOOL=ON -DCMAKE_PREFIX_PATH:PATH=C:/Qt/Qt5.2.1/lib/cmakeĭevenv VTK.So I'm trying to port this project I've been working on from qmake to cmake. REM SET PATH=%_ROOT%\qtrepotools\bin %PATH%Ĭonfigure a shadow build of Qt and then build with jom like so (change configuration to your needs): cd C:\qt-everywhere-opensource-src-5.2.1 REM Uncomment the below line when using a git checkout of the source repository SET LIB=%LIB% C:\icu53_1\lib C:\OpenSSL-Win64\lib C:\OpenSSL-Win64\lib\VC C:\OpenSSL-Win64\lib\VC\static SET INCLUDE=%INCLUDE% C:\icu53_1\include C:\OpenSSL-Win64\include\openssl SET PATH=%_ROOT%\qtbase\bin %_ROOT%\gnuwin32\bin %PATH% SET _ROOT=C:\qt-everywhere-opensource-src-5.2.1 Run following in cmd.exe: REM Set up \Microsoft Visual Studio 2012, where is \c amd64, \c x86, etc.ĬALL "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64 ![]() Unpack Qt 5.2.1 to: C:\qt-everywhere-opensource-src-5.2.1 OpenSSL unpacked and installed here: C:\OpenSSL-Win64 ICU unpacked and installed here: C:\icu53_1 Jom, perl, python, ruby all must be in the PATH. jom 1.0.4 (very useful if you have multiple CPU cores, otherwise nmake takes forever).This question is old, but I've finished struggling one whole week to build Qt 5.2.1 and VTK 6.1.0 for my project, and I figure some poor soul could use my experience. Is this a Qt bug? Is there a workaround?! install", so I have a clean install directory after "nmake install" (in contrast to using the default qtbase, which is a mess) and it seems to have written this path into the generated. When configuring Qt I had set the prefix option "-prefix. When opening up the "Qt5WidgetsConfig.cmake" file I find hardcoded paths like set(imported_location "$") The error is correct, because the directory at "D:/Qt/Qt-5.2.1/install/include/" is actually missing. GUISupport/Qt/CMakeLists.txt:58 (find_package) * The installation package was faulty and contained * An install or uninstall procedure did not complete successfully. * The file was deleted, renamed, or moved to another location. The imported target "Qt5::Widgets" references the fileīut this file does not exist. When I now configure again, CMake complains: CMake Error at D:/Qt/Qt-5.2.1/win32/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:15 (message): I checked "VTK_Group_Qt", set the Qt version to 5, provided a path to qmake.exe and set CMAKE_PREFIX_PATH to the Qt install dir, which is "D:/Qt/Qt-5.2.1/win32". I compiled and installed Qt 5.2.1, but now have problems even configuring VTK 6.1.0 with CMake.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |