关于QT在mips平台上的移植

xiaopohaibebo 2013-05-28 01:03:26
我成功编译完qt源码后

qmake -project
QFileInfo::absolutePath: Constructed with empty filename
root@debian:/home/qttest/helloworld# qmake
root@debian:/home/qttest/helloworld# make

/opt/qt4.5.1/bin/uic widget.ui -o ui_widget.h
mipsel-linux-g++ -c -pipe -mips32 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt4.5.1/mkspecs/qws/linux-mips-g++ -I. -I/opt/qt4.5.1/include/QtCore -I/opt/qt4.5.1/include/QtNetwork -I/opt/qt4.5.1/include/QtGui -I/opt/qt4.5.1/include -I. -I. -I. -o main.o main.cpp
mipsel-linux-g++ -c -pipe -mips32 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt4.5.1/mkspecs/qws/linux-mips-g++ -I. -I/opt/qt4.5.1/include/QtCore -I/opt/qt4.5.1/include/QtNetwork -I/opt/qt4.5.1/include/QtGui -I/opt/qt4.5.1/include -I. -I. -I. -o widget.o widget.cpp
/opt/qt4.5.1/bin/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt4.5.1/mkspecs/qws/linux-mips-g++ -I. -I/opt/qt4.5.1/include/QtCore -I/opt/qt4.5.1/include/QtNetwork -I/opt/qt4.5.1/include/QtGui -I/opt/qt4.5.1/include -I. -I. -I. widget.h -o moc_widget.cpp
mipsel-linux-g++ -c -pipe -mips32 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt4.5.1/mkspecs/qws/linux-mips-g++ -I. -I/opt/qt4.5.1/include/QtCore -I/opt/qt4.5.1/include/QtNetwork -I/opt/qt4.5.1/include/QtGui -I/opt/qt4.5.1/include -I. -I. -I. -o moc_widget.o moc_widget.cpp
mipsel-linux-g++ -Wl,-O1 -Wl,-rpath,/opt/qt4.5.1/lib -o helloworld main.o widget.o moc_widget.o -L/opt/qt4.5.1/lib -lQtGui -L/opt/qt4.5.1/lib -lQtNetwork -lQtCore -lpthread
/home/mips-4.3/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: libz.so.1, needed by /opt/qt4.5.1/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `deflateInit_'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `deflateInit2_'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `compress'
/opt/qt4.5.1/lib/libQtCore.so: undefined reference to `uncompress'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `deflate'
/opt/qt4.5.1/lib/libQtCore.so: undefined reference to `compress2'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `deflateEnd'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `crc32'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `inflate'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `inflateInit2_'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `inflateInit_'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `inflateEnd'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `inflateReset'
/opt/qt4.5.1/lib/libQtGui.so: undefined reference to `deflateReset'
collect2: ld returned 1 exit status
这是怎么回事?
...全文
346 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
帅得不敢出门 2013-05-29
  • 打赏
  • 举报
回复
/home/mips-4.3/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: warning: libz.so.1, needed by /opt/qt4.5.1/lib/libQtGui.so, not found (try using -rpath or -rpath-link) 你首先得交叉编译有zlib库。
xiaopohaibebo 2013-05-29
  • 打赏
  • 举报
回复
对头 。问题已解决了谢谢。

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧