Missing libraries when installing qt-everywhere for cross-compiling on arm - 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

Related

error compiling c program on r-pi raspbian

I have this code that compiles fine on my desktop, but when I try to compile it on the raspberry pi, I get this error
gcc -Wall -O2 -lGL -lGLU -lm -lSDL_image -lfftw3 -lftdi `sdl-config --cflags --libs` -c main.c
gcc -Wall -O2 -lGL -lGLU -lm -lSDL_image -lfftw3 -lftdi `sdl-config --cflags --libs` -c fft.c
gcc -Wall -O2 -lGL -lGLU -lm -lSDL_image -lfftw3 -lftdi `sdl-config --cflags --libs` -c draw.c
gcc -Wall -O2 -lGL -lGLU -lm -lSDL_image -lfftw3 -lftdi `sdl-config --cflags --libs` -c table.c
gcc -Wall -O2 -lGL -lGLU -lm -lSDL_image -lfftw3 -lftdi `sdl-config --cflags --libs` -c serial.c
gcc -Wall -O2 -lGL -lGLU -lm -lSDL_image -lfftw3 -lftdi `sdl-config --cflags --libs` main.o fft.o draw.o table.o serial.o -o main
/usr/bin/ld: Warning: size of symbol `table' changed from 2048 in
table.o to 204 in
//usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-10.0.so
/usr/bin/ld: table.o: undefined reference to symbol 'table'
//usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-10.0.so: error
adding symbols: DSO missing from command line collect2: error: ld
returned 1 exit status makefile:6: recipe for target 'main' failed
make: *** [main] Error 1
I've tried reinstalling libpulse0 and made sure pulseaudio was installed, and I can find the libpulsecommon-10.0.so when I search for it on the pi. So I'm not sure what to do from here.
libpulsecommon has a global symbol named table, and your code (probably table.c) also has a public symbol with this name. The symbols are colliding when linking. Rename that variable/function on your code.

How to resolve this libtool linking error

Command used to link:
**libtool --tag=CC --mode=link gcc -I/usr/include/libxml2 -I/home/ovsdpdk/rpmbuild/BUILD/openvswitch-2.4.0.1/openvswitch-2.4.0/include/ -I/home/ovsdpdk/rpmbuild/BUILD/openvswitch-2.4.0.1/openvswitch-2.4.0/lib/ -O3 -lxml2 -lnetconf -lopenvswitch -lovsdb -lpthread -lcrypto -lssl -lrt -laio -avoid-version -module -shared -export-dynamic --mode=link -o ietf-interfaces.la .obj/ietf-interfaces.lo .obj/ovs_mediation.lo -rpath /usr/local/lib**
Error:
libtool: link: gcc -shared -fPIC -DPIC .obj/.libs/ietf-interfaces.o .obj/.libs/ovs_mediation.o -lxml2 -lnetconf -lopenvswitch -lovsdb -lpthread -lcrypto -lssl -lrt -laio -O3 -Wl,-soname -Wl,ietf-interfaces.so -o .libs/ietf-interfaces.so
/usr/bin/ld: /usr/local/lib/libopenvswitch.a(ovsdb-idl.o): relocation R_X86_64_TPOFF32 against `var.7533' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libopenvswitch.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status

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'

QT5.0 Cross compile for AM1808 ARM9

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++.

linking error in gtk2 application in ubuntu 12.04

I've a C GUI application (in GTK+2.0) that I used to link as follows :
gcc -O2 -std=gnu99 -pipe -Wall -lm `pkg-congig gtk+-2.0 `pkg-config --libs gtk+-2.0` -o exec a.o b.o c.o
which eventually converted into :
gcc -O2 -std=gnu99 -pipe -Wall -lm -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64 linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lcairo -lgtk-x11-2.0 -lglib-2.0 -o exec a.o b.o c.o
It was until Ubuntu 12.04.
When I tried to link the files in the same way in Ubuntu 12.04 as well, it showed the following error :
/usr/bin/ld: b.o: undefined reference to symbol 'gdk_color_parse'
/usr/bin/ld: note: 'gdk_color_parse' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libgdk-x11-2.0.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libgdk-x11-2.0.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
If anyone has any idea about this please share.
With newer versions of GCC/binutils, linker flags have to come last because the linker looks ahead only for undefined symbols. Try
gcc -O2 -std=gnu99 -pipe -Wall a.o b.o c.o -lm `pkg-config --libs gtk+-2.0` -o exec
instead.

Resources