天嵌 ARM开发社区

 找回密码
 注册
查看: 3038|回复: 7

Qt编译错误

[复制链接]
Berton 发表于 2010-4-28 14:01:18 | 显示全部楼层 |阅读模式
想用嵌入式版本编译,添加了bin和include目录。
编译后出现一下错误:
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `syscall@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `strdup@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `backtrace_symbols@GLIBC_2.1'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `clearerr@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `usleep@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `access@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `sleep@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `fgets@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `fstatfs@GLIBC_2.0'
make[1]: Leaving directory `/root/workspace/VVR4'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `tolower@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `nanosleep@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtNetwork.so: undefined reference to `gai_strerror@GLIBC_2.1'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `strlen@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `atan2@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `isascii@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `memcmp@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `closedir@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `putenv@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `tzname@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `pthread_cond_init@GLIBC_2.3.2'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `memcpy@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `memchr@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `ftok@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtNetwork.so: undefined reference to `getaddrinfo@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `tcflush@GLIBC_2.0'
求能给一个解答?在线等,谢谢!
 楼主| Berton 发表于 2010-4-28 14:25:58 | 显示全部楼层
make debug
make -f Makefile.Debug
make[1]: Entering directory `/root/workspace/VVR4'
/opt/EmbedSky/qt-4.5/__install/arm/bin/uic vvr4.ui -o ui_vvr4.h
arm-linux-g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/EmbedSky/qt-4.5/__install/arm/mkspecs/default -I. -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtCore -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtNetwork -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtGui -I/opt/EmbedSky/qt-4.5/__install/arm/include -Idebug -I. -o debug/main.o main.cpp
arm-linux-g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/EmbedSky/qt-4.5/__install/arm/mkspecs/default -I. -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtCore -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtNetwork -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtGui -I/opt/EmbedSky/qt-4.5/__install/arm/include -Idebug -I. -o debug/vvr4.o vvr4.cpp
/opt/EmbedSky/qt-4.5/__install/arm//bin/moc -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/EmbedSky/qt-4.5/__install/arm/mkspecs/default -I. -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtCore -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtNetwork -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtGui -I/opt/EmbedSky/qt-4.5/__install/arm/include -Idebug -I. vvr4.h -o debug/moc_vvr4.cpp
arm-linux-g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/EmbedSky/qt-4.5/__install/arm/mkspecs/default -I. -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtCore -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtNetwork -I/opt/EmbedSky/qt-4.5/__install/arm/include/QtGui -I/opt/EmbedSky/qt-4.5/__install/arm/include -Idebug -I. -o debug/moc_vvr4.o debug/moc_vvr4.cpp
arm-linux-g++ -Wl,-rpath,/opt/EmbedSky/qt-4.5/__install/arm/lib -o VVR4 debug/main.o debug/vvr4.o debug/moc_vvr4.o    -L/opt/EmbedSky/qt-4.5/__install/arm//lib -lQtGui -L/tslib-1.4/lib -L/opt/EmbedSky/qt-4.5/__install/arm//lib -lts -lQtNetwork -lQtCore -lm -lrt -ldl -lpthread
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `syscall@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `strdup@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `backtrace_symbols@GLIBC_2.1'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `clearerr@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `usleep@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `access@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `sleep@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `fgets@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `fstatfs@GLIBC_2.0'
make[1]: Leaving directory `/root/workspace/VVR4'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `tolower@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `nanosleep@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtNetwork.so: undefined reference to `gai_strerror@GLIBC_2.1'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `strlen@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `atan2@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `isascii@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `memcmp@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `closedir@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `putenv@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `tzname@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `pthread_cond_init@GLIBC_2.3.2'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `memcpy@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `memchr@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/

在X86的版本是可以通过的!
回复

使用道具 举报

 楼主| Berton 发表于 2010-4-29 17:06:03 | 显示全部楼层
已经解决,估计是之前没有选择交叉编译环境。
回复

使用道具 举报

亚瑟王 发表于 2010-5-8 20:28:40 | 显示全部楼层
应该是你的交叉编译器的库没有生效导致的。
回复

使用道具 举报

时代海豚 发表于 2011-4-2 17:16:34 | 显示全部楼层
同样的错误,在X86的版本是可以通过的,求解决方案,如何让交叉编译器的库生效
回复

使用道具 举报

时代海豚 发表于 2011-4-2 17:19:51 | 显示全部楼层
arm-linux-g++ -Wl,-O1 -Wl,-rpath,/opt/EmbedSky/qt-4.5/__install/arm/lib -o hello main.o hello.o moc_hello.o -L/opt/EmbedSky/qt-4.5/__install/arm//lib -lQtGui -L/tslib-1.4/lib -L/opt/EmbedSky/qt-4.5/__install/arm//lib -lts -lQtNetwork -lQtCore -lm -lrt -ldl -lpthread
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `syscall@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `strdup@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `backtrace_symbols@GLIBC_2.1'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtCore.so: undefined reference to `clearerr@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `usleep@GLIBC_2.0'
/opt/EmbedSky/qt-4.5/__install/arm//lib/libQtGui.so: undefined reference to `access@GLIBC_2.0'
回复

使用道具 举报

WTW11897 发表于 2011-4-17 10:01:55 | 显示全部楼层
armSetEnv 好像有这个
回复

使用道具 举报

wendycandy 发表于 2011-4-17 19:34:47 | 显示全部楼层
编译arm_qt4.5_build是不是还要arm-linux-gcc呢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-5-3 22:17 , Processed in 2.056120 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表