Forum

Einloggen | Registrieren | RSS  

carter88(R)

11.02.2016,
16:31
 

Failed to process makespec for platform 'devices/linux-rasp- (Elektronik)

Hallo everybody, I tried to cross compile Qt for pi2 by follow this tutorial http://visualgdb.com/tutorials/raspberry/qt/embedded/
but never succed. now i try this tutorials (https://wiki.qt.io/RaspberryPi2EGLFS)

configuration:
./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v

i got this error by the configuration

Failed to process makespec for platform 'devices/linux-rasp-pi2-g++'
Project ERROR: Compiler /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspian/bin/arm-linux-gnnueabihf-g++ not found. Check the value of CROSS_COMPILE -device-option
Could not read qmake configuration file /home/raspberry/raspi/qtbase/mkspecs/devices/linux-rasp-pi2-g++/qmake.conf.
Error processing project file: /dev/null

bastelix(R)

11.02.2016,
22:22

@ carter88

Failed to process makespec for platform 'devices/linux-rasp-

Was mir so spontan einfällt...

» Failed to process makespec for platform 'devices/linux-rasp-pi2-g++'
» Project ERROR: Compiler /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspian /bin/arm-linux-gnnueabihf-g++ not found.
ls -la /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspian/bin/
-> Posten
ls /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspian/bin/arm-linux-gnnueabihf-g++
-> Posten

» Could not read qmake configuration file /home/raspberry/raspi/qtbase/mkspecs/devices/linux-rasp-pi2-g++/qmake.conf.
ls -la /home/raspberry/raspi/qtbase/mkspecs/devices/linux-rasp-pi2-g++/qmake.conf
-> Posten (ohne Punkt hinter conf)

» Error processing project file: /dev/null
Versuche herauszufinden warum hier /dev/null auftaucht, das irritiert mich.

» /home/raspberry
Du willst das nicht zufällig auf einem Raspberry compilieren?

carter88(R)

12.02.2016,
11:20

@ bastelix

Failed to process makespec for platform 'devices/linux-rasp-

» Was mir so spontan einfällt...
»
» » Failed to process makespec for platform 'devices/linux-rasp-pi2-g++'
» » Project ERROR: Compiler
» /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspian
» /bin/arm-linux-gnnueabihf-g++ not found.
» ls -la
» /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspian/bin/
» -> Posten
» ls
» /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspian/bin/arm-linux-gnnueabihf-g++
» -> Posten
»
» » Could not read qmake configuration file
» /home/raspberry/raspi/qtbase/mkspecs/devices/linux-rasp-pi2-g++/qmake.conf.
» ls -la
» /home/raspberry/raspi/qtbase/mkspecs/devices/linux-rasp-pi2-g++/qmake.conf
» -> Posten (ohne Punkt hinter conf)
»
» » Error processing project file: /dev/null
» Versuche herauszufinden warum hier /dev/null auftaucht, das irritiert
» mich.
»
» » /home/raspberry
» Du willst das nicht zufällig auf einem Raspberry compilieren?

Doch ich möchte auf dem Raspberry pi compillieren
soweit habe ich den fehler gelöst lag bei einer schreibfehler in der configuration.Jedoch habe ich folgende Fehler nach Aüsführung von dem make

/home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /home/raspberry/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libz.so: Datei oder Verzeichnis nicht gefunden
/home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /home/raspberry/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libglib-2.0.so: Datei oder Verzeichnis nicht gefunden
/home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /home/raspberry/raspi/sysroot/usr/lib/arm-linux-gnueabihf/librt.so: Datei oder Verzeichnis nicht gefunden
/home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /home/raspberry/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libm.so: Datei oder Verzeichnis nicht gefunden


Makefile:1210: recipe for target '../../lib/libQt5Core.so.5.6.0' failed
make[2]: *** [../../lib/libQt5Core.so.5.6.0] Error 1
make[2]: Leaving directory '/home/raspberry/raspi/qtbase/src/corelib'
Makefile:194: recipe for target 'sub-corelib-make_first' failed
make[1]: *** [sub-corelib-make_first] Error 2
make[1]: Leaving directory '/home/raspberry/raspi/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2

bastelix(R)

12.02.2016,
21:05

@ carter88

Failed to process makespec for platform 'devices/linux-rasp-

» » Du willst das nicht zufällig auf einem Raspberry compilieren?
» Doch ich möchte auf dem Raspberry pi compillieren
» soweit habe ich den fehler gelöst lag bei einer schreibfehler in der
» configuration.Jedoch habe ich folgende Fehler nach Aüsführung von dem make

Ehm cross-compiler verwendet man eigentlich nur wenn man auf Plattform A eine ausführbare Datei für Plattform B bauen möchte, z.B. auf dem ADM64-PC etwas für den ARM-RasPI. Was du vor hast ist nativ compilieren, also im einfachsten fall ./configure && make && sudo make install. Für Qt ist das anscheinend nicht ganz so einfach (naja ist ja auch etwas umfangreicher) aber hier http://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi müsste alles stehen was du brauchst um Qt nativ auf dem RasPI(2) zu bauen.

Am besten du machst dir eine frische SD-Karte mit Raspbian und probierst mal die Anleitung für den nativen Build aus.

carter88(R)

15.02.2016,
13:45

@ bastelix

Failed to process makespec for platform 'devices/linux-rasp-

» » » Du willst das nicht zufällig auf einem Raspberry compilieren?
» » Doch ich möchte auf dem Raspberry pi compillieren
» » soweit habe ich den fehler gelöst lag bei einer schreibfehler in der
» » configuration.Jedoch habe ich folgende Fehler nach Aüsführung von dem
» make
»
» Ehm cross-compiler verwendet man eigentlich nur wenn man auf Plattform A
» eine ausführbare Datei für Plattform B bauen möchte, z.B. auf dem ADM64-PC
» etwas für den ARM-RasPI. Was du vor hast ist nativ compilieren, also im
» einfachsten fall ./configure && make && sudo make install. Für Qt ist das
» anscheinend nicht ganz so einfach (naja ist ja auch etwas umfangreicher)
» aber hier http://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi müsste
» alles stehen was du brauchst um Qt nativ auf dem RasPI(2) zu bauen.
»
» Am besten du machst dir eine frische SD-Karte mit Raspbian und probierst
» mal die Anleitung für den nativen Build aus.

Ich folge den tutorial ,die ich oben eingefügt habe.
ich habe folgende in der config.summary Datei bemerkt
libinput...................... no
udev ..................... no
obwohl die beiden libraries in sysroot sind
je nach dem tutorial müssen sie yes sein

config summary
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)
NIS .................... yes
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 .......... no
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 .................. no
udev ................... no
xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb)
xkbcommon-evdev......... yes
zlib ................... yes (system library)