Registered Member
|
I'm following David Revoy's tutorial on how to compile Krita. I'm currently stuck at configuring the build environment. When I was configuring the build environment, I ran into this problem:
Now this is the part that I think I made my mistake At first I thought I just needed to update another package, so I went over to the qt website: https://www.qt.io/developers/ and downloaded qt5.8. The linux installer installed the program in my home directory. I don't remember if I ran the configure code again (I don't think I did - I was multitasking so I don't remember), but I do know that at some point in time this morning I read a comment by Lauren in David Revoy's comment section to use this qt launchpad site instead: https://launchpad.net/~beineri/+archive/ubuntu/opt-qt571-xenial. Silly me installed this version too. So now I think I have two versions of qt, qt 5.7 installed in root, qt 5.8 installed in home. When I ran configure again and ran into the problem below;
I did a search for the cmake file and found it in the qt5.8 directory, not the qt57 that cmake is clearly using. Now I don't know how to proceed, cause even when I added -DCMAKE_PREFIX_PATH= pointing to the qt5.8 cmake version, the error above keeps spitting out. Any help would be great. Thanks. |
Registered Member
|
I am sorry, I thought I was in the right forum. Please move post accordingly. Thanks.
|
Registered Member
|
I have the same problem when trying to build Krita on Ubuntu 16.04. I get the same error message:
Does anyone know how to solve this problem? Thank you in advance |
Registered Member
|
The error states that the version of Qt is too old to build with, so that is what is going on. Ubuntu 16.04 is too old. It is probably going to be easiest to get 16.10 and build from that. That should work
|
Registered Member
|
Thank you scottpetrovic. I solved my problem.
For those who have the same problem: Check if you have installed the latest version of Qt. Then from the qtcreator, choose menu Tools -> Options -> Build & Run and then select "Qt versions" tab. In this tab, you can see the qt versions installed in your computer. For me it was like this:
If you also have several qt versions (the latest one and an older one), follow the instructions. You have to change the "Qt5ConfigVersion.cmake". In a terminal type:
In the opened file, the fist line reads as:
I simply changed the version to 5.6.0 and it worked! It is not the best solution, but at least it does the job. |
Registered Member
|
No, your solution tricks the build system into building with Qt 5.5 by pretending it's Qt 5.6. You need to point CMake to Qt 5.8 using the `CMAKE_PREFIX_PATH` environment variable. |
KDE Developer
|
there is also the OVERRIDE_QT_VERSION cmake option to build with Qt < 5.6. Though, in fact, Qt 5.6 is the best version to build with, since older versions miss features, and newer features have some weird focus bugs that are hard to pin down.
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan