• 10316阅读
  • 2回复

[提问]编译ARM版的qt4.8失败求助 [复制链接]

上一主题 下一主题
离线all.us
 

只看楼主 倒序阅读 楼主  发表于: 2014-05-02
编译qt-everywhere-opensource-src-4.8.6时出现配置错误,弄了好久还是没解决,求帮忙,谢谢

系统环境:Ubuntu 14.04  x86_64
gcc版本:arm-cortex_a8-linux-gnueabi



下面是配置选项:

./configure -prefix /opt/Qt4.85 -shared -release -force-pkg-config -embedded arm -xplatform qws/linux-arm-g++ -qt-libtiff -qt-libmng -qt-mouse-tslib -qt-mouse-pc -no-neon -nomake examples -qt-gfx-transformed -qt-libjpeg -qt-libpng -qt-mouse-linuxinput -no-mmx -qt3support -qt-mouse-linuxtp -no-3dnow -no-sse -no-sse2 -verbose -I/opt/tslib-1.0/include -L/opt/tslib-1.0/lib

输出信息:
Which edition of Qt do you want to use ?

Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.

o

Determining system architecture... (Linux:3.13.0-24-generic:x86_64)
    64-bit AMD 80x86 (x86_64)
    'arm' is supported
    'x86_64' is supported
System architecture: 'arm'
Host architecture: 'x86_64'
Precompiled-headers support enabled.
Symbol visibility control enabled.

This is the Qt for Embedded Linux Open Source Edition.

You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.

Type '3' to view the GNU General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake. Please wait...
make: Nothing to be done for `first'.

You have asked to use pkg-config and are cross-compiling.
Please make sure you have a correctly set-up pkg-config
environment!


Warning: PKG_CONFIG_SYSROOT/PKG_CONFIG_SYSROOT_DIR has not
been set. This means your toolchain's .pc files must contain
the paths to the toolchain's libraries & headers. If configure
tests are failing, please check these files.

floatmath auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o floatmath.o floatmath.cpp
floatmath.cpp:44:5: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
     ^
floatmath.cpp:44:5: warning: unused parameter 'argv' [-Wunused-parameter]
arm-linux-g++ -Wl,-O1 -o floatmath floatmath.o     -L/opt/tslib-1.0/lib
floatmath enabled.
sse3 auto-detection... ()
arm-linux-g++ -c -pipe -msse3 -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o sse3.o sse3.cpp
arm-linux-g++: error: unrecognized command line option '-msse3'
make: *** [sse3.o] Error 1
sse3 disabled.
ssse3 auto-detection... ()
arm-linux-g++ -c -pipe -mssse3 -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o ssse3.o ssse3.cpp
arm-linux-g++: error: unrecognized command line option '-mssse3'
make: *** [ssse3.o] Error 1
ssse3 disabled.
sse4_1 auto-detection... ()
arm-linux-g++ -c -pipe -msse4.1 -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o sse4_1.o sse4_1.cpp
arm-linux-g++: error: unrecognized command line option '-msse4.1'
make: *** [sse4_1.o] Error 1
sse4_1 disabled.
sse4_2 auto-detection... ()
arm-linux-g++ -c -pipe -msse4.2 -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o sse4_2.o sse4_2.cpp
arm-linux-g++: error: unrecognized command line option '-msse4.2'
make: *** [sse4_2.o] Error 1
sse4_2 disabled.
avx auto-detection... ()
arm-linux-g++ -c -pipe -mavx -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o avx.o avx.cpp
arm-linux-g++: error: unrecognized command line option '-mavx'
make: *** [avx.o] Error 1
avx disabled.
ipc_sysv auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o ipc.o ipc.cpp
arm-linux-g++ -Wl,-O1 -o ipc_sysv ipc.o     -L/opt/tslib-1.0/lib
ipc_sysv enabled.
zlib auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o zlib.o zlib.cpp
zlib.cpp:42:18: fatal error: zlib.h: No such file or directory
#include <zlib.h>
                  ^
compilation terminated.
make: *** [zlib.o] Error 1
zlib disabled.
DB2 auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o db2.o db2.cpp
db2.cpp:42:20: fatal error: sqlcli.h: No such file or directory
#include <sqlcli.h>
                    ^
compilation terminated.
make: *** [db2.o] Error 1
DB2 disabled.
InterBase auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o ibase.o ibase.cpp
ibase.cpp:42:19: fatal error: ibase.h: No such file or directory
#include <ibase.h>
                   ^
compilation terminated.
make: *** [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o mysql.o ../mysql/mysql.cpp
../mysql/mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
#include "mysql.h"
                   ^
compilation terminated.
make: *** [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o mysql.o mysql.cpp
mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
#include "mysql.h"
                   ^
compilation terminated.
make: *** [mysql.o] Error 1
MySQL (thread-unsafe) disabled.
OCI auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o oci.o oci.cpp
oci.cpp:42:17: fatal error: oci.h: No such file or directory
#include <oci.h>
                 ^
compilation terminated.
make: *** [oci.o] Error 1
OCI disabled.
ODBC auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o odbc.o odbc.cpp
odbc.cpp:45:17: fatal error: sql.h: No such file or directory
#include <sql.h>
                 ^
compilation terminated.
make: *** [odbc.o] Error 1
ODBC disabled.
iODBC auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o iodbc.o iodbc.cpp
iodbc.cpp:42:17: fatal error: sql.h: No such file or directory
#include <sql.h>
                 ^
compilation terminated.
make: *** [iodbc.o] Error 1
iODBC disabled.
PostgreSQL auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o psql.o psql.cpp
psql.cpp:42:22: fatal error: libpq-fe.h: No such file or directory
#include "libpq-fe.h"
                      ^
compilation terminated.
make: *** [psql.o] Error 1
PostgreSQL disabled.
SQLite2 auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o sqlite2.o sqlite2.cpp
sqlite2.cpp:42:20: fatal error: sqlite.h: No such file or directory
#include <sqlite.h>
                    ^
compilation terminated.
make: *** [sqlite2.o] Error 1
SQLite2 disabled.
unknown SQL driver: sqlite_symbian
unknown SQL driver: symsql
TDS auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o tds.o tds.cpp
tds.cpp:42:22: fatal error: sybfront.h: No such file or directory
#include <sybfront.h>
                      ^
compilation terminated.
make: *** [tds.o] Error 1
TDS disabled.
NIS auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o nis.o nis.cpp
nis.cpp:43:21: fatal error: rpc/rpc.h: No such file or directory
#include <rpc/rpc.h>
                     ^
compilation terminated.
make: *** [nis.o] Error 1
NIS disabled.
Cups auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o cups.o cups.cpp
cups.cpp:42:23: fatal error: cups/cups.h: No such file or directory
#include <cups/cups.h>
                       ^
compilation terminated.
make: *** [cups.o] Error 1
Cups disabled.
D-Bus auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o dbus.o dbus.cpp
dbus.cpp:43:23: fatal error: dbus/dbus.h: No such file or directory
#include <dbus/dbus.h>
                       ^
compilation terminated.
make: *** [dbus.o] Error 1
D-Bus disabled.
Glib auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -o glib.o glib.cpp
glib.cpp: In function 'int main(int, char**)':
glib.cpp:52:9: warning: 'void g_thread_init(gpointer)' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:261) [-Wdeprecated-declarations]
         g_thread_init(NULL);
         ^
glib.cpp:52:27: warning: 'void g_thread_init(gpointer)' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:261) [-Wdeprecated-declarations]
         g_thread_init(NULL);
                           ^
glib.cpp:48:19: warning: variable 'context' set but not used [-Wunused-but-set-variable]
     GMainContext *context;
                   ^
glib.cpp:55:38: warning: 'pollfd' is used uninitialized in this function [-Wuninitialized]
     g_source_add_poll(source, pollfd);
                                      ^
arm-linux-g++ -Wl,-O1 -o glib glib.o     -L/opt/tslib-1.0/lib -pthread -lgthread-2.0 -lglib-2.0
/opt/arm-cross/toolschain/arm-cortex_a8-linux-gnueabi/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.0/../../../../arm-cortex_a8-linux-gnueabi/bin/ld: cannot find -lgthread-2.0
collect2: error: ld returned 1 exit status
make: *** [glib] Error 1
Glib disabled.
ICU auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o icu.o icu.cpp
icu.cpp:42:28: fatal error: unicode/utypes.h: No such file or directory
#include <unicode/utypes.h>
                            ^
compilation terminated.
make: *** [icu.o] Error 1
ICU disabled.
PulseAudio auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o pulseaudio.o pulseaudio.cpp
pulseaudio.cpp:42:30: fatal error: pulse/pulseaudio.h: No such file or directory
#include <pulse/pulseaudio.h>
                              ^
compilation terminated.
make: *** [pulseaudio.o] Error 1
PulseAudio disabled.
tslib auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../tslib-1.0/include -o tslib.o tslib.cpp
arm-linux-g++ -Wl,-O1 -o tslib tslib.o     -L/opt/tslib-1.0/lib -lts
/opt/tslib-1.0/lib/libts.so: file not recognized: File format not recognized
collect2: error: 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
/opt/qt-everywhere-opensource-src-4.8.5/mkspecs/qws/linux-arm-g++.
离线jnny_cn

只看该作者 1楼 发表于: 2014-05-06
估计你的库搜索路径不对,环境变量估计也没弄对
离线sywh

只看该作者 2楼 发表于: 2014-05-07
我最近也在编qt 4.8.5 /embedded,移植求交流
fighting &&
快速回复
限100 字节
 
上一个 下一个