标题:怎样解决try using -rpath or -rpath-link
作者:liyayao
日期:2010-12-20 16:44
内容:
我编译了ARM的QT4.7.然后我测试能不能有没有编译好,就写了一个简单的程序。然后编译,出现了问题:
Running build steps for project hello...
Starting: "/YY/qt4.7bet2/bin/qmake" /root/hello/hello.pro -r -spec qws/linux-arm-g++
The process "/YY/qt4.7bet2/bin/qmake" exited normally.
Starting: "/usr/bin/make" -w
make: Entering directory `/root/hello'
/YY/qt4.7bet2/bin/uic mainwindow.ui -o ui_mainwindow.h
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/YY/qt4.7bet2/mkspecs/qws/linux-arm-g++ -I. -I/YY/qt4.7bet2/include/QtCore -I/YY/qt4.7bet2/include/QtNetwork -I/YY/qt4.7bet2/include/QtGui -I/YY/qt4.7bet2/include -I. -I. -o main.o main.cpp
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/YY/qt4.7bet2/mkspecs/qws/linux-arm-g++ -I. -I/YY/qt4.7bet2/include/QtCore -I/YY/qt4.7bet2/include/QtNetwork -I/YY/qt4.7bet2/include/QtGui -I/YY/qt4.7bet2/include -I. -I. -o mainwindow.o mainwindow.cpp
/YY/qt4.7bet2/bin/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/YY/qt4.7bet2/mkspecs/qws/linux-arm-g++ -I. -I/YY/qt4.7bet2/include/QtCore -I/YY/qt4.7bet2/include/QtNetwork -I/YY/qt4.7bet2/include/QtGui -I/YY/qt4.7bet2/include -I. -I. mainwindow.h -o moc_mainwindow.cpp
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/YY/qt4.7bet2/mkspecs/qws/linux-arm-g++ -I. -I/YY/qt4.7bet2/include/QtCore -I/YY/qt4.7bet2/include/QtNetwork -I/YY/qt4.7bet2/include/QtGui -I/YY/qt4.7bet2/include -I. -I. -o moc_mainwindow.o moc_mainwindow.cpp
arm-linux-g++ -Wl,-O1 -Wl,-rpath,/YY/qt4.7bet2/lib -o hello main.o mainwindow.o moc_mainwindow.o-L/YY/qt4.7bet2/lib -lQtGui -L/myrootfs/usr/lib -L/YY/qt4.7bet2/lib -lQtNetwork -lQtCore -lpthread
make: Leaving directory `/root/hello'
/opt/FriendlyARM/toolschain/4.4.3/lib/gcc ..
#1 [wangqin0919 09-24 14:25]
楼主,你的这个问题解决了没有啊,是怎么解决的啊,能不能告诉小妹啊
#2 [yanzi1225627 04-26 22:32]
我也遇到了类似的问题,泪奔啊!!!! 谁解决了 告诉我一下啊 我的QQ1603944332
#3 [yanzi1225627 04-27 15:03]
其实我的也是这个问题啊 没办法解决吗??