blissshu 发表于 2015-11-26 15:03:38

Qt Creator 开发环境搭建与编程

按照手册一步一步执行,编译的时候出现错误



14:53:53: 为项目未命名执行构建步骤 ...
14:53:53: 配置没有改变, 跳过 qmake 步骤.
14:53:53: 正在启动 "/usr/bin/make" -w
{1"?} {2?}
make: Entering directory `/root/桌面/未命名'
/usr/local/arm/qt4.8.5/bin/uic mainwindow.ui -o ui_mainwindow.h
arm-linux-g++ -lts -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/arm/qt4.8.5/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/arm/qt4.8.5/include/QtCore -I/usr/local/arm/qt4.8.5/include/QtNetwork -I/usr/local/arm/qt4.8.5/include/QtGui -I/usr/local/arm/qt4.8.5/include -I. -I. -o main.o main.cpp
arm-linux-g++ -lts -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/arm/qt4.8.5/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/arm/qt4.8.5/include/QtCore -I/usr/local/arm/qt4.8.5/include/QtNetwork -I/usr/local/arm/qt4.8.5/include/QtGui -I/usr/local/arm/qt4.8.5/include -I. -I. -o mainwindow.o mainwindow.cpp
/usr/local/arm/qt4.8.5/bin/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/arm/qt4.8.5/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/arm/qt4.8.5/include/QtCore -I/usr/local/arm/qt4.8.5/include/QtNetwork -I/usr/local/arm/qt4.8.5/include/QtGui -I/usr/local/arm/qt4.8.5/include -I. -I. mainwindow.h -o moc_mainwindow.cpp
arm-linux-g++ -lts -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/arm/qt4.8.5/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/arm/qt4.8.5/include/QtCore -I/usr/local/arm/qt4.8.5/include/QtNetwork -I/usr/local/arm/qt4.8.5/include/QtGui -I/usr/local/arm/qt4.8.5/include -I. -I. -o moc_mainwindow.o moc_mainwindow.cpp
arm-linux-g++ -lts -Wl,-O1 -Wl,-rpath,/usr/local/arm/qt4.8.5/lib -o 未命名 main.o mainwindow.o moc_mainwindow.o    -L/usr/local/arm/qt4.8.5/lib -lQtGui -L/usr/local/arm/tslib/lib -L/usr/local/arm/qt4.8.5/lib -lQtNetwork -lQtCore -lpthread
/usr/local/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lts
collect2: ld returned 1 exit status
make: Leaving directory `/root/桌面/未命名'
make: *** [未命名] Error 1
14:53:55: 进程"/usr/bin/make"退出,退出代码 2 。
构建项目未命名 时发生错误 (目标: 桌面)
当执行构建步骤 'Make'时
页: [1]
查看完整版本: Qt Creator 开发环境搭建与编程