Compile GammaRay for specific Qt Version
-
Hi,
I have several Versions installed on Linux. I have installed 5.12, 5.15 and 6.2 installed. Furthermore, I want to compile gammaray for version 5.15. How do i have to do CMAKE-Configuration? Because CMake finds only 5.12 so gammaray compiles the wrong version.
-
Hi,
I have several Versions installed on Linux. I have installed 5.12, 5.15 and 6.2 installed. Furthermore, I want to compile gammaray for version 5.15. How do i have to do CMAKE-Configuration? Because CMake finds only 5.12 so gammaray compiles the wrong version.
@marcus_1 I guess 5.12 comes with the distribution.
If for example you installed 5.15.2 under /opt, you can do
export $PATH=/opt/Qt/5.15.2/gcc_64/bin:$PATH
to put 5.15.2 in front of 5.12. To confirm this
qmake --version
If it shows 5.15.2, you are good to go.You can also try:
export Qt5_DIR=/opt/Qt/5.15.2/gcc_64/lib/cmake/Qt5
https://doc.qt.io/qt-5/cmake-get-started.htmlor use CMAKE_PREFIX_PATH
cmake -DCMAKE_PREFIX_PATH=/opt/Qt/5.15.2/gcc_64You will not have problem with Qt6 since I guess you have only one. Add its qmake to the path, it will be ok.
or use CMAKE_PREFIX_PATH