查看完整版本: [-- Qt 源码编译库文件出错请教! --]

QTCN开发网 -> Qt嵌入式开发 -> Qt 源码编译库文件出错请教! [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

ygw982901730 2017-06-23 11:36

Qt 源码编译库文件出错请教!


麻烦大神们帮忙看一下,我的Qt 编译出现的错误信息

Determining system architecture... (Linux:3.13.0-116-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.

You have already accepted the terms of the  license.

Creating qmake. Please wait...
make: 没有什么可以做的为 `first'。

You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies

floatmath auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o floatmath.o floatmath.cpp
floatmath.cpp: In function 'int main(int, char**)':
floatmath.cpp:44:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
              ^~~~
floatmath.cpp:44:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
                           ^~~~
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o floatmath floatmath.o      
floatmath enabled.
neon auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -mfpu=neon -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o neon.o neon.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o neon neon.o     -mfpu=neon
neon enabled.
ipc_sysv auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o ipc.o ipc.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o ipc_sysv ipc.o      
ipc_sysv enabled.
unknown SQL driver: sqlite_symbian
unknown SQL driver: symsql
NIS auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o nis.o nis.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o nis nis.o     -lnsl
NIS enabled.
PulseAudio auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -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] 错误 1
PulseAudio disabled.
sound auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o sound.o sound.cpp
sound.cpp: In function 'int main(int, char**)':
sound.cpp:46:20: warning: unused variable 'info' [-Wunused-variable]
     audio_buf_info info;
                    ^~~~
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o sound sound.o      
sound enabled.
Determining floating point  word-order... (/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/qt-everywhere-opensource-src-4.8.6/mkspecs/qws/linux-arm-gnueabi-g++ yes /home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/qt-everywhere-opensource-src-4.8.6 /home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/qt-everywhere-opensource-src-4.8.6)
make: 没有什么可以做的为 `first'。
     Normal little endian format
Using little endian.
STL auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o stltest.o stltest.cpp
stltest.cpp: In function 'int main()':
stltest.cpp:135:13: warning: variable 'first' set but not used [-Wunused-but-set-variable]
         int first = (*m1it).first;
             ^~~~~
stltest.cpp:137:16: warning: variable 'second' set but not used [-Wunused-but-set-variable]
         double second = (*m1it).second;
                ^~~~~~
stltest.cpp:108:9: warning: variable 'v1size' set but not used [-Wunused-but-set-variable]
     int v1size = v1.size();
         ^~~~~~
stltest.cpp:110:9: warning: variable 'v1capacity' set but not used [-Wunused-but-set-variable]
     int v1capacity = v1.capacity();
         ^~~~~~~~~~
stltest.cpp:114:10: warning: variable 'v1notfound' set but not used [-Wunused-but-set-variable]
     bool v1notfound = (v1it == v1.end());
          ^~~~~~~~~~
stltest.cpp:118:10: warning: variable 'v1found' set but not used [-Wunused-but-set-variable]
     bool v1found = (v1it != v1.end());
          ^~~~~~~
stltest.cpp:123:9: warning: variable 'v2size' set but not used [-Wunused-but-set-variable]
     int v2size = v2.size();
         ^~~~~~
stltest.cpp:131:9: warning: variable 'm1size' set but not used [-Wunused-but-set-variable]
     int m1size = m1.size();
         ^~~~~~
stltest.cpp:141:9: warning: variable 'm2size' set but not used [-Wunused-but-set-variable]
     int m2size = m2.size();
         ^~~~~~
stltest.cpp:145:9: warning: unused variable 'n' [-Wunused-variable]
     int n = std::distance(it1, it2);
         ^
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o stl stltest.o      
STL enabled.
IPv6 auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o ipv6test.o ipv6test.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o ipv6 ipv6test.o      
IPv6 enabled.
POSIX clock_gettime() auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o clock-gettime.o clock-gettime.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o clock-gettime clock-gettime.o      -lrt
POSIX clock_gettime() enabled.
POSIX Monotonic Clock auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o clock-monotonic.o clock-monotonic.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o clock-monotonic clock-monotonic.o      -lrt
POSIX Monotonic Clock enabled.
mremap auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o mremap.o mremap.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o mremap mremap.o      
mremap enabled.
getaddrinfo auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o getaddrinfotest.o getaddrinfotest.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o getaddrinfo getaddrinfotest.o      
getaddrinfo enabled.
inotify auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o inotifytest.o inotifytest.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o inotify inotifytest.o      
inotify enabled.
IPv6 interface name auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o ipv6ifname.o ipv6ifname.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o ipv6ifname ipv6ifname.o      
IPv6 interface name enabled.
getifaddrs auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o getifaddrs.o getifaddrs.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o getifaddrs getifaddrs.o      
getifaddrs enabled.
alsa auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o alsatest.o alsatest.cpp
alsatest.cpp:42:28: fatal error: alsa/asoundlib.h: No such file or directory
#include <alsa/asoundlib.h>
                            ^
compilation terminated.
make: *** [alsatest.o] 错误 1
alsa disabled.
javascriptcore-jit auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o hwcap_test.o hwcap_test.cpp
hwcap_test.cpp: In function 'int main(int, char**)':
hwcap_test.cpp:43:15: warning: unused parameter 'argc' [-Wunused-parameter]
int main (int argc, char **argv)
               ^~~~
hwcap_test.cpp:43:28: warning: unused parameter 'argv' [-Wunused-parameter]
int main (int argc, char **argv)
                            ^~~~
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o javascriptcore-jit hwcap_test.o      
javascriptcore-jit enabled.
Stdint auto-detection... ()
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -o main.o main.cpp
arm-linux-gnueabihf-g++ -Wl,-O1 -Wl,-rpath,/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/install/lib -o stdint main.o      
Stdint enabled.
Testing size of pointers ... (/home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/qt-everywhere-opensource-src-4.8.6/mkspecs/qws/linux-arm-gnueabi-g++ yes /home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/qt-everywhere-opensource-src-4.8.6 /home/vmware/project/imx6ul-box/module_test/build/half/qteverywhere/qt-everywhere-opensource-src-4.8.6)
rm -f ptrsizetest.o
rm -f *~ core *.core
arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/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>'
     return QPointerSizeTest<sizeof(void*)>::PointerSize;
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [ptrsizetest.o] 错误 1
Pointer size: 4

Building on:   qws/linux-x86_64-g++
Building for:  qws/linux-arm-gnueabi-g++
Architecture:  arm
Host architecture: x86_64

qmake vars .......... cat: .qmake.vars: 没有那个文件或目录
qmake switches .........
Build ..................  examples tools docs libs translations
Configuration ..........  cross_compile release embedded largefile stl precompile_header neon exceptions_off  minimal-config small-config medium-config large-config full-config no-pkg-config qt3support accessibility shared embedded reduce_exports ipv6 clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify png freetype zlib nis concurrent multimedia audio-backend svg script scripttools declarative release
Debug .................. no
Qt 3 compatibility ..... yes
QtDBus module .......... no
QtConcurrent code ...... yes
QtGui module ........... yes
QtScript module ........ yes
QtScriptTools module ... yes
QtXmlPatterns module ... no
Phonon module .......... no
Multimedia module ...... yes
SVG module ............. yes
WebKit module .......... no
JavaScriptCore JIT ..... To be decided by JavaScriptCore
Declarative module ..... yes
Declarative debugging ...yes
Support for S60 ........ no
Symbian DEF files ...... no
STL support ............ yes
PCH support ............ yes
MMX/3DNOW/SSE/SSE2/SSE3. no/no/no/no/no
SSSE3/SSE4.1/SSE4.2..... no/no/no
AVX..................... no
iWMMXt support ......... no
NEON support ........... yes
IPv6 support ........... yes
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... no
Iconv support .......... no
Glib support ........... no
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
TIFF support ........... plugin (qt)
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
MNG support ............ plugin (qt)
zlib support ........... yes
Session management ..... no
Embedded support ....... arm
Freetype2 support ...... yes
Graphics (qt) .......... linuxfb multiscreen
Graphics (plugin) ......
Decorations (qt) ....... styled windows default
Decorations (plugin) ...
Keyboard driver (qt) ... tty
Keyboard driver (plugin) ..
Mouse driver (qt) ...... pc linuxtp
Mouse driver (plugin) ..
OpenGL support ......... no
OpenVG support ......... no
SQLite support ......... qt (qt)
OpenSSL support ........ no
Alsa support ........... no
ICD support ............ no
libICU support ......... no
Use system proxies ..... no

配置:

./configure -embedded arm -xplatform qws/linux-arm-gnueabi-g++ -opensource -confirm-license \
-depths all -release  -shared  -optimized-qmake -qt-sql-sqlite -qt-zlib \                                                                                                                                                                            
-qt-libpng -qt-libtiff -qt-libmng -qt-libjpeg -host-little-endian -little-endian -no-3dnow \
-no-glib -no-dbus -no-cups -no-icu -no-sse -no-sse2 -no-sse3 -no-sql-odbc  -no-sql-db2 -no-sql-mysql \
-no-sql-psql -no-sql-oci  -no-sql-sqlite2 -no-sql-tds \
-no-sql-ibase  -qt-freetype -no-openvg -no-mmx  -make examples  -make tools \
-make docs -make libs  -make translations -no-openssl  -stl  -multimedia 3>&1 2>&1 1>&1 | tee logfile.log

版本: arm-linux-gnueabihf-gcc 6.2.1 qt-everywhere-opensource-src-4.8.6



编译的过程中会出现 error: 'std::tr1' has not been declared这种错误

../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:173:69: error: 'std::tr1' has not been declared
     template<typename T> struct HasTrivialConstructor : public std::tr1::has_trivial_constructor<T> { };
                                                                     ^~~
../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:173:74: error: expected '{' before 'has_trivial_constructor'
     template<typename T> struct HasTrivialConstructor : public std::tr1::has_trivial_constructor<T> { };
                                                                          ^~~~~~~~~~~~~~~~~~~~~~~
../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:174:68: error: 'std::tr1' has not been declared
     template<typename T> struct HasTrivialDestructor : public std::tr1::has_trivial_destructor<T> { };
                                                                    ^~~
../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:174:73: error: expected '{' before 'has_trivial_destructor'
     template<typename T> struct HasTrivialDestructor : public std::tr1::has_trivial_destructor<T> { };
                                                                         ^~~~~~~~~~~~~~~~~~~~~~




ygw982901730 2017-06-23 11:37
麻烦各位大神帮忙看看!


查看完整版本: [-- Qt 源码编译库文件出错请教! --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled