加载中…
加载中…
加载中…
加载中…
1
2
2.1
2.2
2.3
3
3.1
3.2
3.3
3.3.1
3.3.2
3.3.3
3.3.4
4
5

图1 QNX image file的产生
1
在一工控屏上放了一个ptclock显示系统时间,大概界面如下:
Transparent时,会出现闪屏现象,
解决方法:把ptclock放在PtOSContainer下,并设置ptclock的fill color属性为Transparent
QNX 关于ptclock的帮助:
An analog, digital, or LED clock
1).安装srcversion-patch-6.4.0.tar,
在dos 命令行下,把srcversion-patch-6.4.0放在D:\QNX641(此为QNX641安装目录),
# cd
QNX641
# D:\QNX641> tar -xpf srcversion-patch-6.4.0.tar
2).执行make CPULIST=x86 VARIANTLIST=le OSLIST=nto hinstall
按照下面附2的要求,把hardware/devi/private/sys/拷到/usr/include/sys下,我要拷进的目录就是D:\QNX641\target\qnx6\usr\include\sys
回到trunk目录下,如下:
# D:\svn\test\graphics\trunk\ make CPULIST=x86 VARIANTLIST=le
OSLIST=nto hinstall
注意:
下载完graphics源码后,直接在windows的CMD命令行下编译,装了IDE就能编,在开始菜单里,QNX
software..里的configuration也要配置,如果装了632和641的话,一定要注意安装目录和编译的目录版本!
附1:
--------------------------------------------------------------------------------
Understanding the Neutrino Build Process
Background
The Neutrino build process uses
QNX Memory fault(core dumped)问题与解决
按钮闪烁timer,PtSetResource设置的控件都在ABM_Window_SettingsF2这个dialog中,采用internal
links方法切换界面,
初衷:切换到ABM_Window_SettingsF2这个界面时,想通过上选和下选键对所选择的按钮或文本,并且闪烁所选中的对象;
考虑用timer来实现,在setup函数里没有ApCreateModule( ABM_Window_SettingsF2 ,
NULL, NULL );这一行时,程序编译没有错误,运行时跳出:
QNX Memory fault(core dumped)!
原因:
timer中对一些控件的属性进行了设置,但这些控件还没有连接(或是建立这个控件)到主进程中,在setup函数中先连接要刷新的控件。
另外:
timer控件放在其它dialog窗体下,也会出现QNX Memory fault(core dumped)!的错误!
目录树如下:
window:base
......
Dialog:Window_SettingF2
...
附1
setup:启动后做的第一件事,可以获得图形参数的传递
init:启动前做,不可获得图形参数
也可以在init function里加一些数组或是其它大数据的初始化!
如:
usleep() 十的负六次方
Suspend a thread for a given number of microseconds
useconds
The number of microseconds that you want to process to sleep for.
This must be less than 1,000,000.
sleep
Description:
The sleep utility suspends execution for at least the integral
number of seconds specified by the time operand.