查看完整版本: [-- Qtcreator2.8.1远程调试Embedded linux遇到问题 --]

QTCN开发网 -> Qt嵌入式开发 -> Qtcreator2.8.1远程调试Embedded linux遇到问题 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

steve90 2017-06-09 17:56

Qtcreator2.8.1远程调试Embedded linux遇到问题

今天用Qtcreator2.8.1远程调试友善之臂的Smart4418开发板,遇到一些问题,特来求救
kits配置如下
[attachment=17236]
build正常,结果如下

02:58:39: Running steps for project anpu...
02:58:39: Starting: "/usr/local/Trolltech/QtEmbedded-4.8.6-arm/bin/qmake" /work/anpu/anpu/anpu.pro -r -spec qws/linux-armv7-g++ CONFIG+=debug CONFIG+=declarative_debug
02:58:39: The process "/usr/local/Trolltech/QtEmbedded-4.8.6-arm/bin/qmake" exited normally.
02:58:39: Starting: "/usr/bin/make"
/usr/local/Trolltech/QtEmbedded-4.8.6-arm/bin/uic ../anpu/widget.ui -o ui_widget.h
arm-linux-g++ -c -pipe -march=armv7-a -mtune=cortex-a9 -mfloat-abi=hard -mfpu=vfpv3 -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/mkspecs/qws/linux-armv7-g++ -I../anpu -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include -I../anpu -I. -I. -I/tmp/FriendlyARM/nanopi2/libs/usr/include -I. -o main.o ../anpu/main.cpp
arm-linux-g++ -c -pipe -march=armv7-a -mtune=cortex-a9 -mfloat-abi=hard -mfpu=vfpv3 -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/mkspecs/qws/linux-armv7-g++ -I../anpu -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include -I../anpu -I. -I. -I/tmp/FriendlyARM/nanopi2/libs/usr/include -I. -o widget.o ../anpu/widget.cpp
/usr/local/Trolltech/QtEmbedded-4.8.6-arm/bin/moc -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/mkspecs/qws/linux-armv7-g++ -I../anpu -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include -I../anpu -I. -I. -I/tmp/FriendlyARM/nanopi2/libs/usr/include -I. ../anpu/widget.h -o moc_widget.cpp
arm-linux-g++ -c -pipe -march=armv7-a -mtune=cortex-a9 -mfloat-abi=hard -mfpu=vfpv3 -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/mkspecs/qws/linux-armv7-g++ -I../anpu -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.8.6-arm/include -I../anpu -I. -I. -I/tmp/FriendlyARM/nanopi2/libs/usr/include -I. -o moc_widget.o moc_widget.cpp
arm-linux-g++ -Wl,-rpath-link,/tmp/FriendlyARM/nanopi2/libs/usr/lib -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.8.6-arm/lib -o anpu main.o widget.o moc_widget.o    -L/tmp/FriendlyARM/nanopi2/libs/usr/lib -L/usr/local/Trolltech/QtEmbedded-4.8.6-arm/lib -lQtGui -L/usr/local/Trolltech/QtEmbedded-4.8.6-arm/lib -L/tmp/FriendlyARM/nanopi2/libs/usr/lib -lQtNetwork -lQtCore -lpthread
02:58:40: The process "/usr/bin/make" exited normally.
02:58:40: Elapsed time: 00:02.

可以看出build是没有问题的,此时我将生成的可执行文件用u盘拷到开发板可以正常执行。

当我点击run时,出现提示mesg: ttyname failed: Invalid argument,但是开发板上程序可以正常执行,查了一些资料,这里可能是一个bug,暂时忽略
[attachment=17237]

当我点击debug,弹出对话框提示如下
[attachment=17238]

同时输出信息如下:
Debugging starts
mesg: ttyname failed: Invalid argument
Process /opt/qt_deploy/anpu created; pid = 997
Listening on port 10000
Debugging has finished
根据上述信息说明远端的gdbserver是正常启动了的,请问有朋友遇到类似的问题吗?


uidab 2017-06-12 08:43
你在第一张图的Devices里面设置一下,然后可以点击Test,测试一下看看.


查看完整版本: [-- Qtcreator2.8.1远程调试Embedded linux遇到问题 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled