QT5.0 Cross compile for AM1808 ARM9 - arm

I have a requirement to implement the JSON for file transfer.
I found that QJsonDocument is only supported to the QT5.0.
So that I am trying to Cross compile the QT5.0 for my processor(AM1808 ARM9).
I am using UBUNTU v12.10.
I am using arm-none-gnueabi-gcc toolchain to cross compile it.
I have tried to cross compile it using the following configure command.
./configure -prefix /home/ -release -make libs -xplatform mkspecs/linux-arm-gnueabi-g++ -confirm-license -opensource -no-xcb -make examples -verbose
I am getting an error like following:
<<srcbase> = /opt/qt-everywhere-opensource-src-5.0.2/qtbase
<outbase> = /opt/qt-everywhere-opensource-src-5.0.2/qtbase
Creating qmake...
make: Nothing to be done for `first'.
Running configuration tests...
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.
Determining architecture... ()
arm-none-linux-gnueabi-g++ -c -pipe -g -Wall -W -fPIE -I../../mkspecs/linux-arm-gnueabi-g++ -I. -o arch.o arch.cpp
arm-none-linux-gnueabi-g++ -o arch arch.o
{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'arch' && test -f arch.gdb-index && arm-none-linux-gnueabi-objcopy --add-section '.gdb_index=arch.gdb-index' --set-section-flags '.gdb_index=readonly' 'arch' 'arch' && rm -f arch.gdb-index || true
Found architecture in binary
CFG_ARCH="arm"
CFG_CPUFEATURES=""
Determining architecture... ()
g++ -c -pipe -g -Wall -W -fPIE -I../../mkspecs/linux-g++ -I. -o arch.o arch.cpp
g++ -o arch arch.o
{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'arch' && test -f arch.gdb-index && objcopy --add-section '.gdb_index=arch.gdb-index' --set-section-flags '.gdb_index=readonly' 'arch' 'arch' && rm -f arch.gdb-index || true
Found architecture in binary
CFG_HOST_ARCH="i386"
CFG_HOST_CPUFEATURES=""
System architecture: 'arm'
Host architecture: 'i386'
C++11 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -std=c++0x -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o c++11.o c++11.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o c++11 c++11.o
C++11 enabled.
floatmath auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o floatmath.o floatmath.cpp
floatmath.cpp:44:5: warning: unused parameter 'argc' [-Wunused-parameter]
floatmath.cpp:44:5: warning: unused parameter 'argv' [-Wunused-parameter]
arm-none-linux-gnueabi-g++ -Wl,-O1 -o floatmath floatmath.o
floatmath enabled.
sse2 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -msse2 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sse2.o sse2.cpp
cc1plus: error: unrecognized command line option '-msse2'
make: *** [sse2.o] Error 1
sse2 disabled.
sse3 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -msse3 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sse3.o sse3.cpp
cc1plus: error: unrecognized command line option '-msse3'
make: *** [sse3.o] Error 1
sse3 disabled.
ssse3 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -mssse3 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o ssse3.o ssse3.cpp
cc1plus: error: unrecognized command line option '-mssse3'
make: *** [ssse3.o] Error 1
ssse3 disabled.
sse4_1 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -msse4.1 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sse4_1.o sse4_1.cpp
cc1plus: error: unrecognized command line option '-msse4.1'
make: *** [sse4_1.o] Error 1
sse4_1 disabled.
sse4_2 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -msse4.2 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sse4_2.o sse4_2.cpp
cc1plus: error: unrecognized command line option '-msse4.2'
make: *** [sse4_2.o] Error 1
sse4_2 disabled.
avx auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -mavx -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o avx.o avx.cpp
cc1plus: error: unrecognized command line option '-mavx'
make: *** [avx.o] Error 1
avx disabled.
neon auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -mfpu=neon -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o neon.o neon.cpp
In file included from neon.cpp:42:0:
/opt/arm-2012.03/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
neon.cpp: In function 'int main(int, char**)':
neon.cpp:46:5: error: 'int32x4_t' was not declared in this scope
neon.cpp:46:15: error: expected ';' before 'null'
neon.cpp:49:29: error: 'null' was not declared in this scope
neon.cpp:49:36: error: 'vst1q_lane_s32' was not declared in this scope
make: *** [neon.o] Error 1
neon disabled.
zlib auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o zlib.o zlib.cpp
zlib.cpp:42:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [zlib.o] Error 1
zlib disabled.
libjpeg auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o libjpeg.o libjpeg.cpp
libjpeg.cpp:45:21: fatal error: jpeglib.h: No such file or directory
compilation terminated.
make: *** [libjpeg.o] Error 1
libjpeg disabled.
libpng auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o libpng.o libpng.cpp
libpng.cpp:42:17: fatal error: png.h: No such file or directory
compilation terminated.
make: *** [libpng.o] Error 1
libpng disabled.
DB2 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o db2.o db2.cpp
db2.cpp:42:20: fatal error: sqlcli.h: No such file or directory
compilation terminated.
make: *** [db2.o] Error 1
DB2 disabled.
InterBase auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o ibase.o ibase.cpp
ibase.cpp:42:19: fatal error: ibase.h: No such file or directory
compilation terminated.
make: *** [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o mysql.o ../mysql/mysql.cpp
../mysql/mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
compilation terminated.
make: *** [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o mysql.o mysql.cpp
mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
compilation terminated.
make: *** [mysql.o] Error 1
MySQL (thread-unsafe) disabled.
OCI auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o oci.o oci.cpp
oci.cpp:42:17: fatal error: oci.h: No such file or directory
compilation terminated.
make: *** [oci.o] Error 1
OCI disabled.
ODBC auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o odbc.o odbc.cpp
odbc.cpp:45:17: fatal error: sql.h: No such file or directory
compilation terminated.
make: *** [odbc.o] Error 1
ODBC disabled.
iODBC auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o iodbc.o iodbc.cpp
iodbc.cpp:42:17: fatal error: sql.h: No such file or directory
compilation terminated.
make: *** [iodbc.o] Error 1
iODBC disabled.
PostgreSQL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o psql.o psql.cpp
psql.cpp:42:22: fatal error: libpq-fe.h: No such file or directory
compilation terminated.
make: *** [psql.o] Error 1
PostgreSQL disabled.
SQLite2 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sqlite2.o sqlite2.cpp
sqlite2.cpp:42:20: fatal error: sqlite.h: No such file or directory
compilation terminated.
make: *** [sqlite2.o] Error 1
SQLite2 disabled.
TDS auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o tds.o tds.cpp
tds.cpp:42:22: fatal error: sybfront.h: No such file or directory
compilation terminated.
make: *** [tds.o] Error 1
TDS disabled.
NIS auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o nis.o nis.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o nis nis.o -lnsl
NIS enabled.
Cups auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o cups.o cups.cpp
cups.cpp:42:23: fatal error: cups/cups.h: No such file or directory
compilation terminated.
make: *** [cups.o] Error 1
Cups disabled.
POSIX iconv auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o iconv.o iconv.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o iconv iconv.o
POSIX iconv enabled.
D-Bus auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o dbus.o dbus.cpp
dbus.cpp:43:23: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make: *** [dbus.o] Error 1
D-Bus disabled.
Glib auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o glib.o glib.cpp
glib.cpp:44:18: fatal error: glib.h: No such file or directory
compilation terminated.
make: *** [glib.o] Error 1
Glib disabled.
ICU auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o icu.o icu.cpp
icu.cpp:42:28: fatal error: unicode/utypes.h: No such file or directory
compilation terminated.
make: *** [icu.o] Error 1
ICU disabled.
PulseAudio auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o pulseaudio.o pulseaudio.cpp
pulseaudio.cpp:42:30: fatal error: pulse/pulseaudio.h: No such file or directory
compilation terminated.
make: *** [pulseaudio.o] Error 1
PulseAudio disabled.
OpenGL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o opengldesktop.o opengldesktop.cpp
opengldesktop.cpp:45:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make: *** [opengldesktop.o] Error 1
OpenGL disabled.
OpenGL ES 2.x auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o opengles2.o opengles2.cpp
opengles2.cpp:45:25: fatal error: GLES2/gl2.h: No such file or directory
compilation terminated.
make: *** [opengles2.o] Error 1
OpenGL ES 2.x disabled.
FontConfig auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o fontconfig.o fontconfig.cpp
fontconfig.cpp:42:22: fatal error: ft2build.h: No such file or directory
compilation terminated.
make: *** [fontconfig.o] Error 1
FontConfig disabled.
libudev auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o libudev.o libudev.cpp
libudev.cpp:42:21: fatal error: libudev.h: No such file or directory
compilation terminated.
make: *** [libudev.o] Error 1
libudev disabled.
evdev auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o evdev.o evdev.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o evdev evdev.o
evdev enabled.
XLib auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o xlib.o xlib.cpp
xlib.cpp:42:22: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [xlib.o] Error 1
XLib disabled.
Xrender auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o xrender.o xrender.cpp
xrender.cpp:42:22: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [xrender.o] Error 1
Xrender disabled.
LinuxFB auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o linuxfb.o linuxfb.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o linuxfb linuxfb.o
LinuxFB enabled.
KMS auto-detection... ()
Project ERROR: Package libdrm not found
make: *** No targets specified and no makefile found. Stop.
KMS disabled.
EGL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o egl.o egl.cpp
egl.cpp:42:21: fatal error: EGL/egl.h: No such file or directory
compilation terminated.
make: *** [egl.o] Error 1
EGL disabled.
FreeType auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o freetype.o freetype.cpp
freetype.cpp:42:22: fatal error: ft2build.h: No such file or directory
compilation terminated.
make: *** [freetype.o] Error 1
FreeType disabled.
STL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o stltest.o stltest.cpp
stltest.cpp: In function 'int main()':
stltest.cpp:136:13: warning: variable 'first' set but not used [-Wunused-but-set-variable]
stltest.cpp:138:16: warning: variable 'second' set but not used [-Wunused-but-set-variable]
stltest.cpp:109:9: warning: variable 'v1size' set but not used [-Wunused-but-set-variable]
stltest.cpp:111:9: warning: variable 'v1capacity' set but not used [-Wunused-but-set-variable]
stltest.cpp:115:10: warning: variable 'v1notfound' set but not used [-Wunused-but-set-variable]
stltest.cpp:119:10: warning: variable 'v1found' set but not used [-Wunused-but-set-variable]
stltest.cpp:124:9: warning: variable 'v2size' set but not used [-Wunused-but-set-variable]
stltest.cpp:132:9: warning: variable 'm1size' set but not used [-Wunused-but-set-variable]
stltest.cpp:142:9: warning: variable 'm2size' set but not used [-Wunused-but-set-variable]
stltest.cpp:146:9: warning: unused variable 'n' [-Wunused-variable]
arm-none-linux-gnueabi-g++ -Wl,-O1 -o stl stltest.o
STL enabled.
POSIX clock_gettime() auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o clock-gettime.o clock-gettime.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o clock-gettime clock-gettime.o -lrt
POSIX clock_gettime() enabled.
POSIX Monotonic Clock auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o clock-monotonic.o clock-monotonic.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o clock-monotonic clock-monotonic.o -lrt
POSIX Monotonic Clock enabled.
mremap auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o mremap.o mremap.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o mremap mremap.o
mremap enabled.
getaddrinfo auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o getaddrinfotest.o getaddrinfotest.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o getaddrinfo getaddrinfotest.o
getaddrinfo enabled.
inotify auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o inotifytest.o inotifytest.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o inotify inotifytest.o
inotify enabled.
IPv6 interface name auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o ipv6ifname.o ipv6ifname.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o ipv6ifname ipv6ifname.o
IPv6 interface name enabled.
getifaddrs auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o getifaddrs.o getifaddrs.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o getifaddrs getifaddrs.o
getifaddrs enabled.
OpenSSL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openssl.o openssl.cpp
openssl.cpp:42:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
make: *** [openssl.o] Error 1
OpenSSL disabled.
PCRE auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o pcre.o pcre.cpp
pcre.cpp:42:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [pcre.o] Error 1
PCRE disabled.
OpenVG auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openvg.o openvg.cpp
openvg.cpp:48:23: fatal error: VG/openvg.h: No such file or directory
compilation terminated.
make: *** [openvg.o] Error 1
OpenVG disabled.
OpenVG auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openvg.o openvg.cpp
openvg.cpp:48:23: fatal error: VG/openvg.h: No such file or directory
compilation terminated.
make: *** [openvg.o] Error 1
OpenVG disabled.
OpenVG (lc includes) auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -DQT_LOWER_CASE_VG_INCLUDES -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openvg.o openvg.cpp
openvg.cpp:46:23: fatal error: vg/openvg.h: No such file or directory
compilation terminated.
make: *** [openvg.o] Error 1
OpenVG (lc includes) disabled.
OpenVG (lc includes) auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -DQT_LOWER_CASE_VG_INCLUDES -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openvg.o openvg.cpp
openvg.cpp:46:23: fatal error: vg/openvg.h: No such file or directory
compilation terminated.
make: *** [openvg.o] Error 1
OpenVG (lc includes) disabled.
alsa auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o alsatest.o alsatest.cpp
alsatest.cpp:42:28: fatal error: alsa/asoundlib.h: No such file or directory
compilation terminated.
make: *** [alsatest.o] Error 1
alsa disabled.
javascriptcore-jit auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o hwcap_test.o hwcap_test.cpp
hwcap_test.cpp:43:5: warning: unused parameter 'argc' [-Wunused-parameter]
hwcap_test.cpp:43:5: warning: unused parameter 'argv' [-Wunused-parameter]
arm-none-linux-gnueabi-g++ -Wl,-O1 -o javascriptcore-jit hwcap_test.o
javascriptcore-jit enabled.
Testing size of pointers ... (/opt/qt-everywhere-opensource-src-5.0.2/qtbase/mkspecs/linux-arm-gnueabi-g++ yes /opt/qt-everywhere-opensource-src-5.0.2/qtbase /opt/qt-everywhere-opensource-src-5.0.2/qtbase)
rm -f ptrsizetest.o
rm -f *~ core *.core
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o ptrsizetest.o ptrsizetest.cpp
ptrsizetest.cpp: In function 'int main(int, char**)':
ptrsizetest.cpp:59:12: error: 'PointerSize' is not a member of 'QPointerSizeTest<4>'
make: *** [ptrsizetest.o] Error 1
Pointer size: 4
Building on: linux-g++
Building for: linux-arm-gnueabi-g++
Architecture: arm, features:
Host architecture: i386, features:
Platform notes:
- Also available for Linux: linux-kcc linux-icc linux-cxx
qmake vars .......... styles += mac fusion windows DEFINES += QT_NO_LIBUDEV DEFINES += QT_NO_XCB PRECOMPILED_DIR = .pch/release-shared OBJECTS_DIR = .obj/release-shared MOC_DIR = .moc/release-shared RCC_DIR = .rcc/release-shared UI_DIR = .uic/release-shared sql-drivers = sql-plugins = sqlite qmake switches .........
Build .................. libs examples
Configuration .......... cross_compile qpa largefile precompile_header pcre minimal-config small-config medium-config large-config full-config no-pkg-config evdev linuxfb c++11 accessibility shared qpa reduce_exports reduce_relocations clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify png freetype zlib nis iconv rpath concurrent audio-backend v8 v8snapshot release
Debug .................. no
C++11 support .......... yes
pkg-config ............. no
Qt D-Bus module ........ no
Qt Concurrent code ..... yes
Qt GUI module .......... yes
Qt Widgets module ...... yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
QML debugging .......... yes
PCH support ............ yes
iWMMXt support ......... no
NEON support ........... no
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... no
Iconv support .......... yes
Glib support ........... no
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
zlib support ........... yes
Session management ..... auto
libudev support ........ no
Use system proxies ..... no
OpenGL support ......... no
OpenVG support ......... no
XShape support ......... auto
XVideo support ......... auto
XSync support .......... auto
Xinerama support ....... runtime
Xcursor support ........ runtime
Xfixes support ......... runtime
Xrandr support ......... runtime
Xi support ............. runtime
Xi2 support ............ auto
MIT-SHM support ........ auto
FontConfig support ..... no
XKB Support ............ auto
GTK theme support ...... no
SQLite support ......... plugin (qt)
OpenSSL support ........ no
Alsa support ........... no
libICU support ......... no
PCRE support ........... qt
Xcb support ............ no
Xrender support ........ no
EGLFS support .......... no
DirectFB support ....... no
LinuxFB support ........ yes
KMS support ............ no
Could not find qmake configuration file mkspecs/linux-arm-gnueabi-g++.>
I have changed the qmake.conf file as per according to my requirement.
I am not able to cross compile it.
Please help.

You should change -xplatform mkspecs/linux-arm-gnueabi-g++ to -xplatform linux-arm-gnueabi-g++.

Related

QT5.7 Cross compile for AM1808 ARM9

Currently, we are working on QT for application development for our hardware that runs on the AM1808 processor.
At present, we developed our app using QT creator with compiler version Qt 4.8.7.
We are planning to upgrade it with Qt 5.7 and for that, we download the corresponding package from
http://download.qt.io/official_releases/qt/5.7/5.7.1/single/qt-everywhere-opensource-src-5.7.1.tar.gz
We successfully download this and now need to configure according to our current arm toolchain.
we have modified the qmake.conf as per below,
#
# qmake configuration for building with arm-linux-gnueabi-g++
#
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib
include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)
// modifications to g++.conf
//QMAKE_CC = arm-linux-gnueabi-gcc
//QMAKE_CXX = arm-linux-gnueabi-g++
//QMAKE_LINK = arm-linux-gnueabi-g++
//QMAKE_LINK_SHLIB = arm-linux-gnueabi-g++
// modifications to linux.conf
//QMAKE_AR = arm-linux-gnueabi-ar cqs
//QMAKE_OBJCOPY = arm-linux-gnueabi-objcopy
//QMAKE_NM = arm-linux-gnueabi-nm -P
//QMAKE_STRIP = arm-linux-gnueabi-strip
QMAKE_CC = arm-none-linux-gnueabi-gcc
QMAKE_CXX = arm-none-linux-gnueabi-g++
QMAKE_LINK = arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++
QMAKE_AR = arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
QMAKE_STRIP = arm-none-linux-gnueabi-strip
load(qt_config)
after that, we run config command
./configure -opensource -confirm-license -prefix /usr/local/Qt5 -no-pch -xplatform linux-arm-gnueabi-g++
but we found the following error,
System architecture: 'arm'
Host architecture: 'i386'
arm-none-linux-gnueabi-g++ -c -fvisibility=hidden fvisibility.c
Symbol visibility control enabled.
cc1plus: error: unrecognized command line option '-fuse-ld=gold'
arm-none-linux-gnueabi-g++ -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
bsymbolic_functions.c:2:2: error: #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
Symbolic function binding disabled.
checking for C++14...
arm-none-linux-gnueabi-g++ -c -pipe -O2 -std=gnu++1y -Wall -W -fPIC -I. -I../../../mkspecs/linux-arm-gnueabi-g++ -o c++14.o c++14.cpp
cc1plus: error: unrecognized command line option '-std=gnu++1y'
make: *** [c++14.o] Error 1
C++14 disabled.
checking for default C++ standard edition...
arm-none-linux-gnueabi-g++ -pipe -O2 -Wall -W -fPIC -I. -I../../../mkspecs/linux-arm-gnueabi-g++ -o c++default.ii -E c++default.cpp
default C++ standard edition enabled.
checking for 64-bit std::atomic...
arm-none-linux-gnueabi-g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I../../../mkspecs/linux-arm-gnueabi-g++ -o atomic64.o atomic64.cpp
cc1plus: error: unrecognized command line option '-std=gnu++11'
make: *** [atomic64.o] Error 1
64-bit std::atomic disabled.
checking for 64-bit std::atomic in -latomic...
arm-none-linux-gnueabi-g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I../../../mkspecs/linux-arm-gnueabi-g++ -o atomic64.o atomic64.cpp
cc1plus: error: unrecognized command line option '-std=gnu++11'
make: *** [atomic64.o] Error 1
64-bit std::atomic in -latomic disabled.
checking for std::atomic for function pointers...
arm-none-linux-gnueabi-g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I../../../mkspecs/linux-arm-gnueabi-g++ -o atomicfptr.o atomicfptr.cpp
cc1plus: error: unrecognized command line option '-std=gnu++11'
make: *** [atomicfptr.o] Error 1
std::atomic for function pointers disabled.
ERROR: detected a std::atomic implementation that fails for function pointers.
Please apply the patch corresponding to your Standard Library vendor, found in
/opt/qt-everywhere-opensource-src-5.7.1/qtbase/config.tests/common/atomicfptr
so, please suggest us correct method to compile this qt5 version.
Your toolchain is too old. Qt 5.6 was the last release which doesn't require a more or less fully C++ 11 compliant compiler. This changed with Qt 5.7.
Either upgrade your toolchain to 4.8 (at least) or try Qt 5.6.

Error in installing ncdf on Linux when ever i want to install ncdf package it show this error

install.packages("ncdf")
* installing source package ‘ncdf’ ...
** package ‘ncdf’ successfully unpacked and MD5 sums checked checking for nc-config... /usr/local/bin/nc-config configure: creating
./config.status config.status: creating src/Makevars
** libs gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/local/include -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ncdf.c -o ncdf.o gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/local/include
-fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ncdf2.c -o ncdf2.o gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG
-I/usr/local/include -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ncdf3.c -o ncdf3.o gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions
-Wl,-z,relro -o ncdf.so ncdf.o ncdf2.o ncdf3.o -L/usr/local/lib -lnetcdf -L/usr/lib/R/lib -lR /usr/bin/ld: /usr/local/lib/libnetcdf.a(attr.o): relocation R_X86_64_32 against
`.rodata' can not be used when making a shared object; recompile with
-fPIC /usr/local/lib/libnetcdf.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make: *** [ncdf.so] Error 1
ERROR: compilation failed for package ‘ncdf’
* removing ‘/home/ayesha/R/x86_64-pc-linux-gnu-library/3.2/ncdf’
The downloaded source packages are in
'/tmp/RtmpSrzd8P/downloaded_packages'

Error 2 while building project in eclipse

16:22:14 **** Incremental Build of configuration Default for project ccsds-compression.git.old ****
make all
'Building file: ../../src/AC_Coding.c'
sparc-leon3-none-gcc.exe -c -O3 -pedantic -Wall -msoft-float -mcpu=v8 -mtune=leon -Wno-long-long -funroll-loops -fmessage-length=0 -std=c99 -I. -I....\src -o AC_Coding.o ../../src/AC_Coding.c process_begin: CreateProcess((null), sparc-leon3-none-gcc.exe -c -O3 -pedantic -Wall -msoft-float -mcpu=v8 -mtune=leon -Wno-long-long -funroll-loops -fmessage-length=0 -std=c99 -I. -I....\src -o AC_Coding.o ../../src/AC_Coding.c, ...) failed. make (e=2): The system cannot find the file specified.
make: *** [AC_Coding.o] Error 2
I am receiving this error when building the project. Could someone guide me as to how I should resolve this?

Missing libraries when installing qt-everywhere for cross-compiling on arm

I'm trying to install qt everywhere for cross compiling code. I'm using this command to configure it:
./configure -embedded arm -xplatform qws/linux-arm-g++ -qt-kbd-linuxinput -qt-mouse-tslib -opensource -verbose -R /home/soroosh/soroosh/installation_files/arm_embedded/tslib/lib
But I get the following error. I tried installing the libraries it can't find, like egl, using apt-get, but it says unable to fetch archives.
Creating qmake. Please wait...
make: Nothing to be done for first'.
floatmath auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0pkg-config --cflags --libs glib-2.0-c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o floatmath.o floatmath.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
floatmath.cpp:44: warning: unused parameter 'argc'
floatmath.cpp:44: warning: unused parameter 'argv'
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0pkg-config --cflags --libs glib-2.0-Wl,-O1 -o floatmath floatmath.o -L/home/soroosh/soroosh/installation_files/arm_embedded/tslib/lib
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lglib-2.0
collect2: ld returned 1 exit status
make: *** [floatmath] Error 1
floatmath disabled.
mmx auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0pkg-config --cflags --libs glib-2.0-c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -mmmx -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o mmx.o mmx.cpp
cc1plus: error: unrecognized command line option "-mmmx"
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
make: *** [mmx.o] Error 1
mmx disabled.
3dnow auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0pkg-config --cflags --libs glib-2.0-c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -m3dnow -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o 3dnow.o 3dnow.cpp
cc1plus: error: unrecognized command line option "-m3dnow"
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
make: *** [3dnow.o] Error 1
3dnow disabled.
sse auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0pkg-config --cflags --libs glib-2.0-c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -msse -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o sse.o sse.cpp
cc1plus: error: unrecognized command line option "-msse"
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
make: *** [sse.o] Error 1
sse disabled.
sse2 auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0pkg-config --cflags --libs glib-2.0-c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -msse2 -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o sse2.o sse2.cpp
cc1plus: error: unrecognized command line option "-msse2"
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
make: *** [sse2.o] Error 1
sse2 disabled.
neon auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0pkg-config --cflags --libs glib-2.0-c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -mfpu=neon -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o neon.o neon.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
In file included from neon.cpp:42:
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include/arm_neon.h:35:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
neon.cpp: In function 'int main(int, char**)':
neon.cpp:46: error: 'int32x4_t' was not declared in this scope
neon.cpp:46: error: expected;' before 'null'
neon.cpp:49: error: 'null' was not declared in this scope
neon.cpp:49: error: 'vst1q_lane_s32' was not declared in this scope
make: * [neon.o] Error 1
neon disabled.
zlib auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o zlib.o zlib.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -Wl,-O1 -o zlib zlib.o -L/home/soroosh/soroosh/installation_files/arm_embedded/tslib/lib -lz
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lglib-2.0
collect2: ld returned 1 exit status
make: * [zlib] Error 1
zlib disabled.
libjpeg auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o libjpeg.o libjpeg.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -Wl,-O1 -o libjpeg libjpeg.o -L/home/soroosh/soroosh/installation_files/arm_embedded/tslib/lib -ljpeg
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lglib-2.0
collect2: ld returned 1 exit status
make: * [libjpeg] Error 1
libjpeg disabled.
libtiff auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o libtiff.o libtiff.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
libtiff.cpp:42:20: error: tiffio.h: No such file or directory
libtiff.cpp:50:6: error: #error "Required libtiff not found"
libtiff.cpp: In function 'int main(int, char)':
libtiff.cpp:57: error: 'tdata_t' was not declared in this scope
libtiff.cpp:57: error: expected ;' before 'buffer'
libtiff.cpp:58: error: 'buffer' was not declared in this scope
libtiff.cpp:58: error: '_TIFFfree' was not declared in this scope
libtiff.cpp:62: error: 'TIFFReadRGBAImageOriented' was not declared in this scope
make: *** [libtiff.o] Error 1
libtiff disabled.
libmng auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0pkg-config --cflags --libs glib-2.0-c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o libmng.o libmng.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
libmng.cpp:42:20: error: libmng.h: No such file or directory
libmng.cpp:50:2: error: #error System libmng version is less than 1.0.9; using built-in version instead.
libmng.cpp: In function 'int main(int, char**)':
libmng.cpp:46: error: 'mng_handle' was not declared in this scope
libmng.cpp:46: error: expected;' before 'hMNG'
libmng.cpp:47: error: 'hMNG' was not declared in this scope
libmng.cpp:47: error: 'mng_cleanup' was not declared in this scope
make: * [libmng.o] Error 1
libmng disabled.
libpng auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o libpng.o libpng.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -Wl,-O1 -o libpng libpng.o -L/home/soroosh/soroosh/installation_files/arm_embedded/tslib/lib -lpng
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lglib-2.0
collect2: ld returned 1 exit status
make: * [libpng] Error 1
libpng disabled.
DB2 auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o db2.o db2.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
db2.cpp:42:20: error: sqlcli.h: No such file or directory
db2.cpp:43:21: error: sqlcli1.h: No such file or directory
make: * [db2.o] Error 1
DB2 disabled.
InterBase auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o ibase.o ibase.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
ibase.cpp:42:19: error: ibase.h: No such file or directory
make: * [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o mysql.o ../mysql/mysql.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
../mysql/mysql.cpp:42:19: error: mysql.h: No such file or directory
make: * [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o mysql.o mysql.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
mysql.cpp:42:19: error: mysql.h: No such file or directory
make: * [mysql.o] Error 1
MySQL (thread-unsafe) disabled.
OCI auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o oci.o oci.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
oci.cpp:42:17: error: oci.h: No such file or directory
make: * [oci.o] Error 1
OCI disabled.
ODBC auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o odbc.o odbc.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
odbc.cpp:42:17: error: sql.h: No such file or directory
odbc.cpp:43:20: error: sqlext.h: No such file or directory
make: * [odbc.o] Error 1
ODBC disabled.
iODBC auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o iodbc.o iodbc.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
iodbc.cpp:42:17: error: sql.h: No such file or directory
iodbc.cpp:43:20: error: sqlext.h: No such file or directory
make: * [iodbc.o] Error 1
iODBC disabled.
PostgreSQL auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o psql.o psql.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
psql.cpp:42:22: error: libpq-fe.h: No such file or directory
psql.cpp: In function 'int main(int, char)':
psql.cpp:46: error: 'PQescapeBytea' was not declared in this scope
psql.cpp:47: error: 'PQunescapeBytea' was not declared in this scope
make: * [psql.o] Error 1
PostgreSQL disabled.
SQLite2 auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o sqlite2.o sqlite2.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
sqlite2.cpp:42:20: error: sqlite.h: No such file or directory
make: * [sqlite2.o] Error 1
SQLite2 disabled.
unknown SQL driver: sqlite_symbian
TDS auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o tds.o tds.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
tds.cpp:42:22: error: sybfront.h: No such file or directory
tds.cpp:43:19: error: sybdb.h: No such file or directory
make: * [tds.o] Error 1
TDS disabled.
NIS auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o nis.o nis.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -Wl,-O1 -o nis nis.o -L/home/soroosh/soroosh/installation_files/arm_embedded/tslib/lib -lnsl
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lglib-2.0
collect2: ld returned 1 exit status
make: * [nis] Error 1
NIS disabled.
Cups auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o cups.o cups.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
cups.cpp:42:23: error: cups/cups.h: No such file or directory
cups.cpp: In function 'int main(int, char**)':
cups.cpp:46: error: 'cups_dest_t' was not declared in this scope
cups.cpp:46: error: 'd' was not declared in this scope
cups.cpp:47: error: 'cupsGetDests' was not declared in this scope
make: * [cups.o] Error 1
Cups disabled.
D-Bus auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o dbus.o dbus.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
dbus.cpp:43:23: error: dbus/dbus.h: No such file or directory
dbus.cpp:46:2: error: #error Needs at least dbus version 1
dbus.cpp: In function 'int main(int, char)':
dbus.cpp:51: error: 'dbus_shutdown' was not declared in this scope
make: * [dbus.o] Error 1
D-Bus disabled.
EGL (EGL/egl.h) auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o egl.o egl.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
egl.cpp:42:21: error: EGL/egl.h: No such file or directory
egl.cpp: In function 'int main(int, char)':
egl.cpp:46: error: 'EGLint' was not declared in this scope
egl.cpp:46: error: expected ;' before 'x'
egl.cpp:47: error: 'EGLDisplay' was not declared in this scope
egl.cpp:47: error: expected;' before 'dpy'
egl.cpp:48: error: 'EGLContext' was not declared in this scope
egl.cpp:48: error: expected ;' before 'ctx'
egl.cpp:49: error: 'dpy' was not declared in this scope
egl.cpp:49: error: 'ctx' was not declared in this scope
egl.cpp:49: error: 'eglDestroyContext' was not declared in this scope
make: *** [egl.o] Error 1
EGL (EGL/egl.h) disabled.
EGL (GLES/egl.h) auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0pkg-config --cflags --libs glib-2.0-c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o egl4gles1.o egl4gles1.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
egl4gles1.cpp:42:22: error: GLES/egl.h: No such file or directory
egl4gles1.cpp: In function 'int main(int, char**)':
egl4gles1.cpp:46: error: 'EGLint' was not declared in this scope
egl4gles1.cpp:46: error: expected;' before 'x'
egl4gles1.cpp:47: error: 'EGLDisplay' was not declared in this scope
egl4gles1.cpp:47: error: expected ;' before 'dpy'
egl4gles1.cpp:48: error: 'EGLContext' was not declared in this scope
egl4gles1.cpp:48: error: expected;' before 'ctx'
egl4gles1.cpp:49: error: 'dpy' was not declared in this scope
egl4gles1.cpp:49: error: 'ctx' was not declared in this scope
egl4gles1.cpp:49: error: 'eglDestroyContext' was not declared in this scope
make: * [egl4gles1.o] Error 1
EGL (GLES/egl.h) disabled.
Glib auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o glib.o glib.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -Wl,-O1 -o glib glib.o -L/home/soroosh/soroosh/installation_files/arm_embedded/tslib/lib
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lglib-2.0
collect2: ld returned 1 exit status
make: * [glib] Error 1
Glib disabled.
tslib auto-detection... ()
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -c -pipe -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -W -I../../../mkspecs/qws/linux-arm-g++ -I. -I/home/soroosh/soroosh/installation_files/arm_embedded/tslib/include -o tslib.o tslib.cpp
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
arm-none-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -O0 pkg-config --cflags --libs glib-2.0 -Wl,-O1 -o tslib tslib.o -L/home/soroosh/soroosh/installation_files/arm_embedded/tslib/lib -lts
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lglib-2.0
collect2: ld returned 1 exit status
make: * [tslib] Error 1
tslib disabled.
The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
/home/soroosh/soroosh/installation_files/arm_embedded/qt-everywhere/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-arm-g++.
Solved it turned out tslib was not correctly insttalled

Failed to compile with distcc, but OK without it

I'm trying to compile RaLink drivers for usb wifi dongle. Without using distcc everything is OK but if i use distcc there is error.
Here make log:
make -C UTIL/
cp -f os/linux/Makefile.6.util /home/tobi/RaLink_driver/UTIL/os/linux/Makefile
make -C /home/tobi/linux/ SUBDIRS=/home/tobi/RaLink_driver/UTIL/os/linux modules
mkdir -p /home/tobi/RaLink_driver/UTIL/os/linux/.tmp_versions
rm -f /home/tobi/RaLink_driver/UTIL/os/linux/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/tobi/RaLink_driver/UTIL/os/linux
mipsel-linux-gcc -Wp,-MD,/home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.rt_linux.o.d -nostdinc -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -ffreestanding --trap -Wno-uninitialized -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__ -I/home/tobi/RaLink_driver/UTIL/include -Wall -O2 -Wundef -Wstrict-prototypes -Wno-trigraphs -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-aliasing -fno-common -fomit-frame-pointer -o -DMODULE -mlong-calls -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(rt_linux)" -D"KBUILD_MODNAME=KBUILD_STR(rtutil3572sta)" -c -o /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.tmp_rt_linux.o /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/rt_linux.c
cc1: error: /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.tmp_rt_linux.d: No such file or directory
distcc[29414] ERROR: compile (null) on localhost failed
make[8]: *** [/home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/rt_linux.o] Error 1
make[7]: *** [_module_/home/tobi/RaLink_driver/UTIL/os/linux] Error 2
Without distcc log is the same but without error
cc1: error: /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.tmp_rt_linux.d: No such file or directory
Can anyone say what is wrong?
gcc's -Wp,MD does not take an argument. I think you might want to change this line:
-Wp,-MD,/home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.rt_linux.o.d
to use -Wp,MF:
-Wp,MD -Wp,MF /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.rt_linux.o.d

Resources