Unsolved How to have the most updated QT libraries?
-
I'm trying to compile a big project that uses QT through cmake. The problem is that the compilation fails because QInterface class does not have some properties, because it's old in my system. I installed the latest qt creator with everything included, but the problem persists.
So how can I have the newest qt libraries in my system and use them on qt? I believe I have them on installation but they're not being used by cmake
-
@lucaszanella Use Qt Online Installer to install and update Qt.
If you already have latest Qt then check whether you're actually using it - you need to select the Kit for that Qt version in QtCreator when you're loading your project. -
the problem is that the project doesn't use qt creator, only cmake, so I don't know how to make cmake load these new libs. Yes, I used the installer
-
make sure you actually have the latest Qt-libs, because QtCreator != QtLibary and if you really installed
with everything included
that would, depending on the system, include up to 100Gb of memory.One usually only installs the precompiled libs for the compiler one uses. Or downloads the sources and compiles the QtLib for any compilers not included in the downloader
-
@lucaszanella you can open and build CMake projects from Qt Creator...
-
@lucaszanella Try to set -DCMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_VERSION/lib/cmake before calling CMake
-
@jsulm said in How to have the most updated QT libraries?:
-DCMAKE_PREFIX_PATH=
shouldn't I also pass the include folder? Because the error still happens
-
@jsulm said in How to have the most updated QT libraries?:
DCMAKE_PREFIX_PATH
I did make VERBOSE=1 to see which paths were being used and the path I passed isn't
-
@jsulm said in How to have the most updated QT libraries?:
@lucaszanella Try to set -DCMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_VERSION/lib/cmake before calling CMake
Hi,
The correct call is
cmake -D CMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_VERSION/lib/cmake /path/to/your_project