pi 2 trying to buid/run 5.5.x and can't find qtcreator on wheezy
-
Even after what appeared to be a successful compile of Qt5, whereis only shows 2 qmakes, one in /usr/bin and the other in /usr/bin/X11, where both give a version 2.01a, using Qt version 4.8.2.
This is so <censored> <censored> frustrating.
I want version 4 completely GONE and version 5 fully functional. I've gone over dozens of web pages in the past two weeks, tried downloading qt5 from qt.io, and STILL can't get qmake of qt5, and can't get qtcreator 3.x.x to compile.
Qt BETTER be worth all this trouble. There are many competing IDE's and I'm about to give up on Qt altogether. Why is this SO freaking difficult???
It appears I won't be able to recommend adopting Qt.
-
If you want to remove Qt 4 completely just call "apt-get remove *qt4*". Note that it's not a Qt problem but the distribution handling.
After building Qt 5 did you call make install ?
[edit: fixed eaten stars… SGaist]
-
Thank you for the method for removing v4.
Yes, I did make install. But there was no qmake, no qt-creator (loaded later,) and no qtquick, etc.
Qt-creator will not compile, will not qmake, will not make.
It is NUTS to make such a wonderful system so difficult to set up. -
Can you show the steps you used to build Qt 5 ? Options you gave, summary of configuration etc.
-
Instructions used THIS time come from:
https://wiki.qt.io/Building-Qt-5-from-Git -- which really boil down to these steps:- $ git clone git://code.qt.io/qt/qt5.git
- $ cd qt5
- $ git checkout 5.5
- $ cd qt5
- $ perl init-repository
- $ cd qt5
- $ git checkout v5.5.0 (which didn't work)
- $ ./configure -developer-build -opensource -nomake examples -nomake tests
- $ make -j4 --- which breaks with lots and lots and lots and lots and lots and lots of errors. see below.
If you run 'make' again and again, more modules get compiled but it eventually completely breaks with the output below.
No "qmake" ever shows up or gets compiled anywhere, no useful environment in evidence for Qt 5x. I'm about fed up with compiling Qt from git OR from qt.io.Here is the output (tail) of "make -j4" again:
/usr/bin/ld: cannot find -lQt5Core
collect2: ld returned 1 exit status
Makefile:530: recipe for target '../../lib/libQt5Network..5.6.0' failed
make[3]: *** [../../lib/libQt5Network..5.6.0] Error 1
make[3]: Leaving directory '/root/opt/qt5/qtbase/src/network'
Makefile:219: recipe for target 'sub-network-make_first' failed
make[2]: *** [sub-network-make_first] Error 2
make[2]: Leaving directory '/root/opt/qt5/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/root/opt/qt5/qtbase'
Makefile:73: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2
root@rpi2U2:~/opt/qt5# -
Something strange here you should have 5.5 but building 5.6.
What exact error did you get when checking out the tag ?
-
git checkout v5.5.0
v5.5.0 is a tag -
Because it was *qt4* but the forum ate the stars…
That's because your checkout failed so you got the current branch which is 5.6. IIRC You can get 5.5 by passing --branch 5.5 to init-repository
-
No, you have to check out 5.5 before calling make
-
Did you checkout using init-repository ? Otherwise you may have the modules still at 5.6