Hello
Does anybody know where I can find information on using the PtFlash widget
in PhAB. I have created a very simple application with just the PtFlash
widget however when I build the application in PhAB I receive the error
below. Any ideas as to where I can find information on using PtFlash? I
can’t find any documentation whatsoever.
Cheers
Malcolm
for i in gcc_ntox86 ; do (cd $i; make shr) ; done
make[1]: Entering directory /home/mal/ITV/src/gcc_ntox86' qcc -Vgcc_ntox86 -w5 -Wc,-O3 -fomit-frame-pointer -Wl,-O3 -fomit-frame-poin ter -I. -c ../abmain.c -o abmain.o qcc abmain.o -Vgcc_ntox86 -Wc,-O3 -fomit-frame-pointer -Wl,-O3 -fomit -frame-pointer -l Ap -l phexlib -l ph -l phrender -Bstatic -l ph -Bdynamic -l m -M -o ITV abmain.o(.rodata+0xa8): undefined reference to
PtFlash’
cc: /usr/bin/ld error 1
In qdn.public.qnxrtp.devtools Malcolm Adams <mal_adams@bigpond.com> wrote:
: Hello
: Does anybody know where I can find information on using the PtFlash widget
: in PhAB. I have created a very simple application with just the PtFlash
: widget however when I build the application in PhAB I receive the error
: below. Any ideas as to where I can find information on using PtFlash? I
: can’t find any documentation whatsoever.
It’s now documented here. There’s just one resource:
Pt_ARG_FLASH_FILE
C type Pt type Default
char * String NULL
The full path of the Shockwave Flash file (extension .swf or .SWF) to
display. The file starts to play as soon as you set this resource.
Note: The file must exist on your filesystem; PtFlash doesn’t
support http://… URLs.
Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems
In qdn.public.qnxrtp.os Malcolm Adams <mal_adams@bigpond.com> wrote:
…
abmain.o(.rodata+0xa8): undefined reference to `PtFlash’
cc: /usr/bin/ld error 1
You need to add “-l PtFlash” to the linker options (LDFLAGS/SDFLAGS in a
PhAB Makefile). The next version of PhAB will do that for you. (But
you’ll have to remove your Makefile to let PhAB generate a new one –
PhAB never modifies an existing Makefile.)
\
Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.
I found you also need to add “-l asound” as well as the “-l PtFlash” in the
linker options of the Makefile and have a correctly installed audio driver
for the flash file to play.
Malcolm
“Wojtek Lerch” <wojtek@qnx.com> wrote in message
news:8urjiq$3cs$1@nntp.qnx.com…
In qdn.public.qnxrtp.os Malcolm Adams <> mal_adams@bigpond.com> > wrote:
…
abmain.o(.rodata+0xa8): undefined reference to `PtFlash’
cc: /usr/bin/ld error 1
You need to add “-l PtFlash” to the linker options (LDFLAGS/SDFLAGS in a
PhAB Makefile). The next version of PhAB will do that for you. (But
you’ll have to remove your Makefile to let PhAB generate a new one –
PhAB never modifies an existing Makefile.)
\
Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.