2017-05-25 185 views
1

Qt Creator的是給這個庫錯誤:交叉編譯錯誤在Ubuntu 14

11:13:12: Running steps for project qtConsoleTest... 
11:13:12: Starting: "/usr/bin/make" clean 
rm -f main.o 
rm -f *~ core *.core 
11:13:12: The process "/usr/bin/make" exited normally. 
11:13:12: Configuration unchanged, skipping qmake step. 
11:13:12: Starting: "/usr/bin/make" 
g++ -c -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_CORE_LIB -I../qtConsoleTest -I. -isystem /opt/fsl-imx-x11/4.1.15-2.0.1/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/include/qt5 -isystem /opt/fsl-imx-x11/4.1.15-2.0.1/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I/opt/fsl-imx-x11/4.1.15-2.0.1/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-g++ -o main.o ../qtConsoleTest/main.cpp 
g++ -o qtConsoleTest main.o -lQt5Core -lpthread 
/usr/bin/ld: cannot find -lQt5Core 
collect2: error: ld returned 1 exit status 
make: *** [qtConsoleTest] Error 1 
11:13:13: The process "/usr/bin/make" exited with code 2. 
Error while building/deploying project qtConsoleTest (kit: ce3TunnelBoard) 
When executing step "Make" 
11:13:13: Elapsed time: 00:01. 

在此基礎上Question,我想我的問題是,在Qt的版本QMAKE_SPEC和QMAKE_XSPEC應該顯示linux-oe-g ++(而不是linux-g ++),但我不知道如何改變它。我錯過了任何步驟?

source /opt/fsl-imx-x11/4.1.15-2.0.1/environment-setup-cortexa7hf-neon-poky-linux-gnueabi 

我bitbaked QT5 SDK,我也加入這個頂部來源的 「/opt/Qt5.8.0/Tools/QtCreator/bin/qtcreator.sh」 環境

,並且被配置如下選項調試下,分別編譯器& Qt的版本:

/opt/fsl-imx-x11/4.1.15-2.0.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb 
/opt/fsl-imx-x11/4.1.15-2.0.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ 
/opt/fsl-imx-x11/4.1.15-2.0.1/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake 

這些是屏幕截圖,以防萬一。

I'd appreciate任何幫助。

回答

1

您上次的屏幕截圖顯示標有Qt mkspec的文本條目。這是您應該輸入linux-oe-g++以覆蓋c3TunnelBoard套件默認值linux-g++的位置。有關如何設置QtCreator與Yocto工具鏈一起使用的更多信息,請參見this link