View topic - Error using PtFlash

Error using PtFlash

Discussion about the general applications that run on QNX6

Error using PtFlash

Postby lukmantalibo » Thu Dec 11, 2008 4:08 am

I am trying to use PtFlash widget to show my simple flash (Macromedia Flash 4 object).
I have a Windows host, x86 QNX target, and QNX Momentics IDE 6.3.0 SP3.

the content of indLfiles:
MYLIB = /cygdrive/c/QNX630/target/qnx6/x86/lib/libsocket.so phexlib ph
-----------------------------------------------------------------------

the content of abLfiles:
include $(PROJECT_ROOT)/src/indLfiles
ABLIB = $(MYLIB) -l PtFlash -l asound -l Ap -l ph -l m
-----------------------------------------------------------------------

the console window shows:
make -k all --file=C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/QMakefile20477.tmp
make -j 1 -Csrc -fMakefile all
make[1]: Entering directory `C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/src'
make[1]: `all' is up to date.
make[1]: Leaving directory `C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/src'
make -j 1 -Cx86 -fMakefile all
make[1]: Entering directory `C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86'
make -j 1 -Co -fMakefile all
make[2]: Entering directory `C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o'
C:/QNX630/host/win32/x86/usr/bin/rm -f C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o/GTO-TOUCH-EXIT-V1.0a
C:/QNX630/host/win32/x86/usr/bin/qcc -Vgcc_ntox86 -oC:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o/GTO-TOUCH-EXIT-V1.0a abmain.o cdp.o checkkeys.o com.o console.o crc.o csd.o csdpack.o cst.o cstpack.o device.o dlgerror.o frmkhusus.o frmloginmaint.o frmloginperioda.o frmmain.o frmperioda.o frmrutin.o iol.o khusus.o lpr.o lprdisk.o lprpack.o lprproto.o pcs.o pcsbcd.o pcsdisk.o pcspack.o pcsutil.o prdutil.o rfs.o rts.o thread.o -L. -LC:/QNX630/target/qnx6/x86/lib -LC:/QNX630/target/qnx6/x86/usr/lib -l/cygdrive/c/QNX630/target/qnx6/x86/lib/libsocket.so -lphexlib -lph -lPtFlash -lasound -lAp -lphexlib -lph -lm -l/cygdrive/c/QNX630/target/qnx6/x86/lib/libsocket.so -lphexlib -lph -lPtFlash -lasound -lAp -lphexlib -lph -lm
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phcommon.o): In function `PlayerWnd::Resize(int, int)':
phcommon.o(.text+0x41b): undefined reference to `PgFlush'
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phcommon.o): In function `changeRegionFlags(Pt_widget *)':
phcommon.o(.text+0x13b2): undefined reference to `PhRegionQuery'
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phimage.o): In function `XPutImage(int *, Pt_widget *, Ph_gc *, XImage *, int, int, int, int, int, int)':
phimage.o(.text+0xa4): undefined reference to `PgSetRegion'
phimage.o(.text+0xbc): undefined reference to `PgDrawImagemx'
phimage.o(.text+0xc4): undefined reference to `PgFlush'
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phimage.o): In function `PlayerWnd::DestroyXImage(void)':
phimage.o(.text+0x450): undefined reference to `PgFlush'
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phtimer.o): In function `PlayerWnd::OnTimer(void)':
phtimer.o(.text+0x160): undefined reference to `PgFlush'
cc: C:/QNX630/host/win32/x86/usr/bin/ntox86-ld caught signal 1
make[2]: *** [C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o/GTO-TOUCH-EXIT-V1.0a] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o'
make -j 1 -Co-g -fMakefile all
make[1]: [all] Error 2 (ignored)
make[2]: Entering directory `C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o-g'
C:/QNX630/host/win32/x86/usr/bin/rm -f C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o-g/GTO-TOUCH-EXIT-V1.0a_g
C:/QNX630/host/win32/x86/usr/bin/qcc -Vgcc_ntox86 -oC:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o-g/GTO-TOUCH-EXIT-V1.0a_g abmain.o cdp.o checkkeys.o com.o console.o crc.o csd.o csdpack.o cst.o cstpack.o device.o dlgerror.o frmkhusus.o frmloginmaint.o frmloginperioda.o frmmain.o frmperioda.o frmrutin.o iol.o khusus.o lpr.o lprdisk.o lprpack.o lprproto.o pcs.o pcsbcd.o pcsdisk.o pcspack.o pcsutil.o prdutil.o rfs.o rts.o thread.o -L. -LC:/QNX630/target/qnx6/x86/lib -LC:/QNX630/target/qnx6/x86/usr/lib -l/cygdrive/c/QNX630/target/qnx6/x86/lib/libsocket.so -lphexlib -lph -lPtFlash -lasound -lAp -lphexlib -lph -lm -l/cygdrive/c/QNX630/target/qnx6/x86/lib/libsocket.so -lphexlib -lph -lPtFlash -lasound -lAp -lphexlib -lph -lm -g
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phcommon.o): In function `PlayerWnd::Resize(int, int)':
phcommon.o(.text+0x41b): undefined reference to `PgFlush'
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phcommon.o): In function `changeRegionFlags(Pt_widget *)':
phcommon.o(.text+0x13b2): undefined reference to `PhRegionQuery'
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phimage.o): In function `XPutImage(int *, Pt_widget *, Ph_gc *, XImage *, int, int, int, int, int, int)':
phimage.o(.text+0xa4): undefined reference to `PgSetRegion'
phimage.o(.text+0xbc): undefined reference to `PgDrawImagemx'
phimage.o(.text+0xc4): undefined reference to `PgFlush'
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phimage.o): In function `PlayerWnd::DestroyXImage(void)':
phimage.o(.text+0x450): undefined reference to `PgFlush'
C:/QNX630/target/qnx6/x86/usr/lib/libPtFlash.a(phtimer.o): In function `PlayerWnd::OnTimer(void)':
phtimer.o(.text+0x160): undefined reference to `PgFlush'
cc: C:/QNX630/host/win32/x86/usr/bin/ntox86-ld caught signal 1
make[2]: *** [C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o-g/GTO-TOUCH-EXIT-V1.0a_g] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86/o-g'
make[1]: Leaving directory `C:/QNX630/workspace/GTO-TOUCH-EXIT-V1.0a/x86'
make[1]: [all] Error 2 (ignored)
-----------------------------------------------------------------------------------------

I am stuck. What am I doing wrong?

Regards,
Lukman Talibo
lukmantalibo
New Member
 
Posts: 2
Joined: Thu Dec 11, 2008 4:04 am

RE: Error using PtFlash

Postby micro » Thu Dec 11, 2008 11:09 am

include <ph.h>

and

qcc ... -lph ...

included?
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm

RE: Error using PtFlash

Postby lukmantalibo » Thu Dec 11, 2008 2:38 pm

Thanks Micro,

Yes, I have include <ph.h> to header session in ablibs.h file.
I have add -lph to linker option too.
Unfotunately, I have same error report.

Any other suggestions?
lukmantalibo
New Member
 
Posts: 2
Joined: Thu Dec 11, 2008 4:04 am

RE: Error using PtFlash

Postby micro » Thu Dec 11, 2008 4:30 pm

You have to include
"include <ph.h>"
in your source file.

Did you check in your real compiliation if your ablibs.h or similar are read and used?

Is your compiler really called with -lph?
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm


Return to QNX6 - Applications

Who is online

Users browsing this forum: No registered users and 2 guests

cron