Page tree
Skip to end of metadata
Go to start of metadata

QtCreator安装包是一个二进制程序,直接执行就可以完成安装。

cd $DEV_ROOT
chmod a+x qt-creator-opensource-linux-x86_64-4.5.1.run
sudo ./qt-creator-opensource-linux-x86_64-4.5.1.run


执行安装程序后,一直点击下一步即可完成。默认安装目录在"/opt/qtcreator-4.5.1"。

安装完成后,为了让QtCreator使用Yocto的SDK工具,需要对QtCreator加入环境变量。修改"/opt/qtcreator-4.5.1/bin/qtcreator.sh"文件,在"#! /bin/sh"前加入Yocto的环境配置即可,参考如 下:

source /opt/i2SOM-yocto-qt/2.2-r0/environment-setup-cortexa7hf-neon-i2som-linux-gnueabi
#! /bin/sh
# Use this script if you add paths to LD_LIBRARY_PATH
# that contain libraries that conflict with the
# libraries that Qt Creator depends on.


使用QtCreator时,请从终端执行"qtcreator.sh"来启动QtCreator,参考如下:

/opt/qtcreator-4.5.1/bin/qtcreator.sh &
  • No labels
Write a comment…