RasPi and Qt errors!
-
So it seems you have an incomplete build of Qt 5.
Qt Creator installation doesn't mean that you have also a development version of Qt installed.
What exactly did fail when you tried to build Qt 5 ?
-
Having followed this: https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi
This time I had no errors, when running which qmake I get : "/usr/bin/qmake" which is different to what is the output in the tutorial above. Furthermore when trying to follow the final stage of compiling the example I get this :
pi@******:~ $ cp -r~/opt/qt5/qtbase/examples/opengl/cube ~/
cp: invalid option -- '~'
Try 'cp --help' for more information.What are the best next steps to take to solving this?
-
It's not the same qmake.
Aren't you missing a space between -r and ~ ?
-
Did you build the qtdeclarative module ?
-
Hi, Have simular proplems.
I have done it this way : https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi
But how i can add quick / qml / declarative modules?
After running ./configure those are missing...Thank you in advance. :)
-
Hi and welcome to devnet,
Did you call configure in Qt 5's root directory or in qtbase ?
If the later, simply go in the module folders you are interested in and call
qmake
,make
,make install
.Ensure that you use the correct qmake. Either you have only one and that's the one you build or use the full path so you are sure that you are calling the correct version.
-
Did you install make?
-
Hi and welcome to devnet,
Did you call configure in Qt 5's root directory or in qtbase ?
If the later, simply go in the module folders you are interested in and call
qmake
,make
,make install
.Ensure that you use the correct qmake. Either you have only one and that's the one you build or use the full path so you are sure that you are calling the correct version.
Hi,
I call configure in qtbase. After make and install i manage to build and run ./cube
After that i went to qtdeclartive forlder and run qmake , make and make install with no errors. Maybe i dont use correct qmake. Where in can change path for qmake?
Thank you in advance.
-
Use the full path to your qmake binary.