在Qt Creator中配置QNX编译工具链
2015-09-21 12:01
218 查看
Configuring a toolchain in Qt Creator
After defining a QNX device to represent your target system, you must set up a toolchain in Qt Creator. The toolchain defines the build and run environment based on the QNX QDF installation and the compiler, debugger, and target device configurations.
To configure a toolchain in Qt Creator:
In the IDE, select the Tools menu, then click Options to open
the Options dialog.
Choose Build & Run in the left-side menu, click the Qt Versions tab
in the main viewing area, then click the Add... button on the right side.
The IDE opens a file selector.
In the file selector, either navigate to C:\QtQNX\Qt520\bin and select qmake.exe (on
Windows) or navigate to /base/qt5-5.2/bin and select qmake (on Linux), then click Open.
The Options dialog displays additional fields for configuring the selected Qt version.
At the bottom of the dialog, on the line that reads QNX Software Development Platform, click Browse....
The IDE opens another file selector.
Navigate to DEFAULT_SDP_PATH and click Select Folder.
The QNX Software Development field now lists the directory containing the QNX SDP 6.6 installation on your host
system.
Click the Compilers tab, click the Add button on the right side,
then select QCC from the dropdown list.
The Options dialog displays additional fields at the bottom for configuring the newly added compiler.
Fill in the compiler fields:
In the Name field, enter QNX SDP 6.6 QCC.
On the Compiler path line, click Browse... to open the file selector.
On Windows, navigate toDEFAULT_SDP_PATH\host\win32\x86\usr\bin and choose qcc.exe.
On Linux, navigate to DEFAULT_SDP_PATH/host/linux/x86/usr/binand choose qcc.
Click Select Folder to confirm the setting.
On the NDK/SDP path line, click Browse... to open the file selector,
navigate to DEFAULT_SDP_PATH, then click Select Folder.
In the dropdown list for ABI, select arm-linux-generic-elf-32bit.
Click the Apply button in the bottom right corner to save these settings.
Click the Debuggers tab, then click the Add button on the right
side.
The Options dialog displays additional fields at the bottom for configuring a new debugger.
Fill in the debugger fields:
In the Name field, enter QNX SDP 6.6 GDB.
On the Path line, click Browse... to open the file selector.
On Windows, navigate to DEFAULT_SDP_PATH\host\win32\x86\usr\bin and choose ntoarmv7-gdb.exe.
On Linux, navigate to DEFAULT_SDP_PATH/host/linux/x86/usr/bin and choose ntoarmv7-gdb.
Click Select Folder to confirm the setting.
Click the Apply button in the bottom right corner to save these settings.
Click the Kits tab, then click the Add button on the right side.
The Options dialog displays additional fields at the bottom for configuring a new kit.
Fill in the kits fields:
Name the kit something meaningful, like QNX SDP 6.6 – OMAP5432.
In the Device Type dropdown list, select QNX Device.
In the Device dropdown list, select the device configured earlier (e.g., OMAP5432).
In the Compiler dropdown list, select QNX SDP 6.6 QCC.
In the Debugger dropdown list, select QNX SDP 6.6 GDB.
In the Qt version dropdown list, select Qt 5.2.0 (Qt520).
Click the OK button in the bottom right corner to save all the Build
& Run settings.
After you've configured a QNX device and a toolchain, you can begin developing Qt apps for QNX CAR 2.1! When creating Qt apps, you can select your Build & Run Kit in the New
Project wizard to use the build and run settings that you configured earlier.
Parent topic: Preparing
your host system for Qt development
相关文章推荐
- Qt getOpenFileName函数使用详解
- qt使用gsoap调用webservice接口
- Qt Creater error: LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- Ubuntu Server下Qt的MySql驱动问题
- ubuntu server开机运行Qt图形界面程序
- qt开发----小白的成长伊始
- Qt简略总结
- QT多线程详解
- QT 与 MFC 的区别
- QT 打开文件对话框汇总
- PyQt5资料
- 在树莓派上安装PyQt4
- Qt Creator OPenGL实例
- qt
- QT对话框中show和exec的区别
- pyqt在控件上创建图片
- QT获取文件信息
- 中值滤波 Qt代码 内含OpenCV类
- Qt打开目录
- Qt下载地址收藏