Build Qt creator 3.4 on pi 2 [RESOLVED]
-
today i have make another progress ! i downloaded qt creator 3.4.1 (before i take master branch). Replace botan.c and header and after many hours hours qt creator build successful !!!
New problem, now when i launch qtcreator since terminal i have this message :pi@raspberrypi ~/opt/qt-creator-opensource-src-3.4.1/bin $ ./qtcreator
[9;0]Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
No tool chain set from kit "Desktop".
No tool chain set from kit "Desktop".
EGLFS: OpenGL windows cannot be mixed with others.
AbortedSame question, do you have a solution ? Do i need to use qtwayland to use qt app (like qt creator)
-
Are you running an X server on your raspberry pi 2 ?
-
I don't know, i had just downloaded the last debian image last week and no modification for the desktop ! If i understand i can't use more than one windows with eglfs, and it must full screen ? If i want to use X11, i need xcb plugin but i don't know if i have it, and there is no opengl support on it ? Perhaps the better solution is to use wayland ? Do you know lxQt (but for the moment no support for arm platform ...) ?
-
If you are running a desktop on your Pi 2 then you're likely running an X server. For the eglfs part, you can only have one top level window and the first one is forced to be fullscreen, then you can have several non-toplevel widgets. What you can't have is several GUI application running at the same time.
I can't tell if you have the xcb plugin, I don't know the configure options you used.
It depends on your application needs.
I've heard of it but it's been some times since I last read about it
-
Thank's for your help. i also tried to launch qtcreator with no desktop start (startx) at the login but i have the same error ... How i can set QT_QPA_EGLFS_PHYSICAL_WIDTH and Height ? For this error : No tool chain set from kit "Desktop", it's important to correct it or it's just a warning that i can resolve later ?
-
export QT_QPA_EGLFS_PHYSICAL_WIDTH=XXX
The no tool chain error means that either you don't have a compiler installed, or Qt Creator didn't find one, in any case, it doesn't influence the startup of Qt Creator.
-
-
You can disable the welcome plugin when starting Qt Creator
-
i make some progress, i had build designer (need to build lib folder first in qt5/qttools/src/designer/src/). After that i retry a qmake and make. After a certain time i had this error :
../3rdparty/botan/botan.cpp:46208:21: fatal error: cpuid.h: No such file or directory
compilation terminated.
.
.
.
Makefile:4294: recipe for target '.obj/release-shared/botan.o' failed
make[3]: *** [.obj/release-shared/botan.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/pi/opt/qt-creator-master/src/libs/ssh'
Makefile:285: recipe for target 'sub-ssh-make_first' failed
make[2]: *** [sub-ssh-make_first] Error 2
make[2]: Leaving directory '/home/pi/opt/qt-creator-master/src/libs'
Makefile:45: recipe for target 'sub-libs-make_first-ordered' failed
make[1]: *** [sub-libs-make_first-ordered] Error 2
make[1]: Leaving directory '/home/pi/opt/qt-creator-master/src'
Makefile:43: recipe for target 'sub-src-make_first-ordered' failed
make: *** [sub-src-make_first-ordered] Error 2I found this thread about this bug :
hereand the solution :
I have downloaded botan.cpp and botan.h and replace them in qt-creator-master/src/libs/3rdparty/botan.
Then i re-launch make, and now i have this error :
ln -s libQtcSsh.so.1.0.0 libQtcSsh.so
ln -s libQtcSsh.so.1.0.0 libQtcSsh.so.1
ln -s libQtcSsh.so.1.0.0 libQtcSsh.so.1.0
rm -f ../../../lib/qtcreator/libQtcSsh.so.1.0.0
mv -f libQtcSsh.so.1.0.0 ../../../lib/qtcreator/
rm -f ../../../lib/qtcreator/libQtcSsh.so
rm -f ../../../lib/qtcreator/libQtcSsh.so.1
rm -f ../../../lib/qtcreator/libQtcSsh.so.1.0
mv -f libQtcSsh.so ../../../lib/qtcreator/
mv -f libQtcSsh.so.1 ../../../lib/qtcreator/
mv -f libQtcSsh.so.1.0 ../../../lib/qtcreator/
make[3]: Leaving directory '/home/pi/opt/qt-creator-master/src/libs/ssh'
make[2]: Leaving directory '/home/pi/opt/qt-creator-master/src/libs'
Makefile:45: recipe for target 'sub-libs-make_first-ordered' failed
make[1]: *** [sub-libs-make_first-ordered] Error 2
make[1]: Leaving directory '/home/pi/opt/qt-creator-master/src'
Makefile:43: recipe for target 'sub-src-make_first-ordered' failed
make: *** [sub-src-make_first-ordered] Error 2HELP please !
-
to my experience you not only have to manually make and make install the lib folder in qt5/qttools/src/designer/src/ but also the components folder, as the content of this folder generates libQt5DesignerComponents library