1,网络配置
一,虚拟机网络设置为桥接模式
二,在Ubuntu网络中,添加一个网络,比喻“有限连接1”
克隆MAC地址:D4:3D:7E:F4:00:77
三,在QtCreator,项目-管理构建插件-选项-设备,中,输入要连接设备的ip
4,在QtCreator,项目-构建,中输入构建环境变量
INCLUDE=/home/joshua/qt_mentor_sdk/sysroots/cortexa9hf-vfp-neon-mel-linux-gnueabi/usr/include
INCLUDEPATH=/home/joshua/qt_mentor_sdk/sysroots/cortexa9hf-vfp-neon-mel-linux-gnueabi/usr/includeLIB=/home/joshua/qt_mentor_sdk/sysroots/cortexa9hf-vfp-neon-mel-linux-gnueabi/usr/libLM_LICENSE_FILE=/home/joshua/work/license.txtMGLS_LICENSE_FILE=/home/joshua/work/license.txtOE_QMAKE_CC=/home/joshua/work/MentorGraphics/Sourcery_CodeBench_for_ARM_Embedded/bin/arm-none-linux-gnueabi-gccOE_QMAKE_CXX=/home/joshua/work/MentorGraphics/Sourcery_CodeBench_for_ARM_Embedded/bin/arm-none-linux-gnueabi-g++OE_QMAKE_LDFLAGS=-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9OE_QMAKE_LINK=/home/joshua/work/MentorGraphics/Sourcery_CodeBench_for_ARM_Embedded/bin/arm-none-linux-gnueabi-g++SUBLIBS=SYSROOT_DIR=/home/joshua/qt_mentor_sdk/sysroots/cortexa9hf-vfp-neon-mel-linux-gnueabi
5,在QtCreator,项目-运行中
一:出现布署失败时,请使用以下命令配置布署选项。
killall HMI | echo waiting kill HMI ; sleep 1sync; chmod 777 /usr/app/HMI二:Ctrl+R:直接保存所有文件、构建、布署、运行设置
工具-选项-构建和运行:构建和运行如下勾选即可三:车机与pc机使用usb网卡直接连接,且ip设置为同一个网段
四:项目布署,运行参数设置
五: 运行参数配置
5.1 先配置运行命令 5.2 设备上备用执行档:/usr/app/startHMI.sh5.2 再配置运行参数,把以下参数复制进去。结果如下图
FB_MULTI_BUFFER=3LD_LIBRARY_PATH=/usr/app/libLANG=zh_CN.utf8ROOT_MEDIA_PATH=/media/diskVIDEO_FORMAT=.mp4,.avi,.wmv,.mpg,.mkv,.mpeg,.vob,.3gp,.mov,.asf,.m4v,.divx,.ts,.MP4,.AVI,.WMV,.MPG,.MKV,.MPEG,.VOB,.3GP,.MOV,.ASF,.M4V,.DIVX,.TSMUSIC_FORMAT=.wma,.mp3,.flac,.mp2,.m4a,.wav,.aac,.ac3,.ogg,.WMA,.MP3,.FLAC,.MP2,.M4A,.WAV,.AAC,.AC3,.OGGDBUS_SESSION_BUS_ADDRESS="unix:path=/run/dbus/session_bus_help"TSLIB_TSDEVICE=/dev/input/touchscreen0TSLIB_CALIBFILE=/etc/pointercalHOME=/home/rootTSLIB_PLUGINDIR=/lib/tsBT_AUTO_BROWSE_PB=offBT_CHECK_ALIVE=offBT_DATA_SAVE=shmBT_PAIRING_REQUEST=onBT_PROJECT_NAME=GP53BT_UART_DEBUG=onBT_VISIBLE_CONFIG=onBT_NAME="GP53"UPDATE_PATH_PREFIX=/media/diskNAVI_PATH=/media/sd-mmcblk1p1/FDNaviNAVI_PROCESS=FDNaviDEVICE_MONITOR_IDLE_TIME=6000SD_PATH=/media/sd-mmcblk1p1SD_TOUCH_PATH=/tmp/.automount-sdBACKGROUNDPATH=/usr/app/backgrounds720pCN210MNAVIHELPPICPATH=/usr/app/help/210M_NAVIUSE_CARPLAY_MODULE=0