Solved Cross Compile QT for raspberry, error on make
-
Hi, I'm following this tutorial [ https://wiki.qt.io/RaspberryPi2EGLFS ] for building for raspberry and when I start the 'make' it prompt me an error, because the promt is to long and not really know what is important I have it in this file:
http://www.filedropper.com/makePlease help I really want to have this done and I've tried a lot.
From the configuration in promp this: http://www.filedropper.com/config_65, the resume of the config is
Build parts ............ libs Mode ................... release Using sanitizer(s)...... none Using C++ standard ..... c++11 Using gold linker....... yes Using new DTAGS ........ yes Using PCH .............. yes Using LTCG ............. no Target compiler supports: Neon ................. yes Qt modules and options: Qt D-Bus ............... yes (loading dbus-1 at runtime) Qt Concurrent .......... yes Qt GUI ................. yes Qt Widgets ............. yes Large File ............. yes QML debugging .......... yes Use system proxies ..... no Support enabled for: Accessibility .......... yes ALSA ................... yes CUPS ................... yes Evdev .................. yes FontConfig ............. yes FreeType ............... yes (system library) Glib ................... yes GStreamer .............. no GTK theme .............. no HarfBuzz ............... yes (bundled copy) Iconv .................. yes ICU .................... no Image formats: GIF .................. yes (plugin, using bundled copy) JPEG ................. yes (plugin, using system library) PNG .................. yes (in QtGui, using bundled copy) libinput................ no Logging backends: journald ............... no syslog ............... no mtdev .................. yes (system library) Networking: getaddrinfo .......... yes getifaddrs ........... yes IPv6 ifname .......... yes libproxy.............. no OpenSSL .............. yes (loading libraries at run-time) OpenGL / OpenVG: EGL .................. yes OpenGL ............... yes (OpenGL ES 2.0+) OpenVG ............... yes-auto PCRE ................... yes (bundled copy) pkg-config ............. yes PulseAudio ............. no QPA backends: DirectFB ............. no EGLFS ................ yes EGLFS i.MX6 ........ no EGLFS i.MX6 Wayland. no EGLFS EGLDevice .... no EGLFS GBM .......... yes EGLFS Mali ......... no EGLFS Raspberry Pi . yes EGLFS X11 .......... no LinuxFB .............. yes Mir client............ no XCB .................. yes (system library) EGL on X ........... no GLX ................ yes MIT-SHM ............ yes Xcb-Xlib ........... yes Xcursor ............ yes (loaded at runtime) Xfixes ............. yes (loaded at runtime) Xi ................. no Xi2 ................ yes Xinerama ........... yes (loaded at runtime) Xrandr ............. yes (loaded at runtime) Xrender ............ yes XKB ................ no XShape ............. yes XSync .............. yes XVideo ............. yes Session management ..... yes SQL drivers: DB2 .................. no InterBase ............ no MySQL ................ no OCI .................. no ODBC ................. yes (plugin) PostgreSQL ........... no SQLite 2 ............. yes (plugin) SQLite ............... yes (plugin, using bundled copy) TDS .................. yes (plugin) tslib .................. yes udev ................... no xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb) xkbcommon-evdev......... yes zlib ................... yes (system library) Qt is now configured for building. Just run 'make'. Once everything is built, you must run 'make install'. Qt will be installed into /usr/local/qt5pi
-
@Fransebas Looks like you don't have your environment set up properly.
First error in that make file is make being unable to find libz, like so:
error: cannot open /home/fransebas/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libz.so: No such file or directory
It goes on to not be able to find many other libs. Make sure
/home/fransebas/raspi/sysroot/
is setup up with the proper files/libraries. -
@ambershark Finally finish, It was a folder wich I didn't have the permission but use chmod and all work, to explain a little in the last post I manage to advance thanks to you but I had another problem but it all finish thanks a lot, really.
-
@Fransebas No problem, glad you got it worked out. Don't forget to mark this is solved for other people. :)
-
@ambershark
I have encountered the similar problem, but with some additional libs missing, I have configured both the sysroot usr and sysroot opt on host pc according to the wiki instruction, but according to your regarding the original post, it is due to incorrect file passage, if possibe can I send you a copy of the error msg and I'd much appreciate your opinion. -
@ShengS Sure send away.. you can also open a new topic and send me a notification and I'll take a look.
-
@ambershark Amazing, wasn't expecting such a prompt response, and because of that, I went ahead to start over, if I come across again the problem i will start a new topic and notify you.