flash widget problems

Im having some problems with the ptflash widget… all ive done is create a new project and drop a ptflash widget into it … then i edit the flash filename property and generate/build… when i try that i get

abmain.o(.rodata+0xa0): undefined reference to PtFlash' cc: /usr/bin/ld error 1 make[1]: *** [shr] Error 1 make[1]: Leaving directory /root/devel/flashtest/src/gcc_ntox86’
make: *** [shr] Error 2

i cant find any documentation for this widget in the help file, but i assume im probbly missing some critical init task…

vince

vince <lab-101@usa.net> wrote:

Im having some problems with the ptflash widget… all ive done
is create a new project and drop a ptflash widget into it … then
i edit the flash filename property and generate/build… when i
try that i get

abmain.o(.rodata+0xa0): undefined reference to PtFlash' cc: /usr/bin/ld error 1 make[1]: *** [shr] Error 1 make[1]: Leaving directory /root/devel/flashtest/src/gcc_ntox86’
make: *** [shr] Error 2

i cant find any documentation for this widget in the help file,
but i assume im probbly missing some critical init task…

Hmmm. Seems to be here in the online version, which is probably
newer than what’s packaged in the released beta of RTP.

Here’s a snippet:

***************** begins ****************************
PtFlash
A container that displays Macromedia Flash 4 animation
Class hierarchy:
PtWidget → PtBasic → PtContainer → PtFlash
For more information, see the diagram of the widget hierarchy.
PhAB icon:

Public header:
<photon/PtFlash.h>
Description:

PtFlash is a container widget that displays Macromedia Flash 4
animation.

New resources:
Resource C type Pt type Default

Pt_ARG_FLASH_FILE 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.

The file must exist on your filesystem; PtFlash doesn’t
support http://… URLs.

****************** ends *****************************

From the error you see, I’d guess you aren’t including
<photon/PtFlash.h>

Hope that helps.


Norbert Black
QSSL Training Services

vince <lab-101@usa.net> wrote:

Im having some problems with the ptflash widget… all ive done is create a new project and drop a ptflash widget into it … then i edit the flash filename property and generate/build… when i try that i get

abmain.o(.rodata+0xa0): undefined reference to PtFlash' cc: /usr/bin/ld error 1 make[1]: *** [shr] Error 1 make[1]: Leaving directory /root/devel/flashtest/src/gcc_ntox86’
make: *** [shr] Error 2

i cant find any documentation for this widget in the help file, but i assume im probbly missing some critical init task…

You need to add “-l PtFlash” to your LDFLAGS (and SDFLAGS if you ever
link static). The next version of PhAB will do that for you, but only
if you remove the old Makefile and let PhAB generate a new one: PhAB
never modifies an existing Makefile.

\

Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

i tried adding -l PtFlash… now i get:



qcc abmain.o -Vgcc_ntox86 -Bstatic -Wc,-O3 -fomit-frame-pointer -Wl,-O3 -fomit-frame-pointer -l Ap -l phexlib -l ph -l phrender -l PtFlash -Bdynamic -l m -M -o flashtest
/x86/usr/lib/libPtFlash.a(phtimer.o): In function PlayerWnd::UpdateTimer(void)': phtimer.o(.text+0x205): undefined reference to PtTimerArm’
/x86/usr/lib/libPtFlash.a(phtimer.o): In function PlayerWnd::StopTimer(void)': phtimer.o(.text+0x30c): undefined reference to PtTimerArm’
/x86/usr/lib/libPtFlash.a(phtimer.o): In function createTimer(void)': phtimer.o(.text+0x57a): undefined reference to PtTimer’
/x86/usr/lib/libPtFlash.a(audio.o): In function AudioDevice::Sync(void)': audio.o(.text+0x159): undefined reference to snd_pcm_plugin_flush’


this continues on for about 3 pages of errors…

any ideas??

vince

ps. when IS the next verson of phab due to be out?


Previously, Wojtek Lerch wrote in qdn.public.qnxrtp.photon:

vince <> lab-101@usa.net> > wrote:
Im having some problems with the ptflash widget… all ive done is create a new project and drop a ptflash widget into it … then i edit the flash filename property and generate/build… when i try that i get

abmain.o(.rodata+0xa0): undefined reference to PtFlash' cc: /usr/bin/ld error 1 make[1]: *** [shr] Error 1 make[1]: Leaving directory /root/devel/flashtest/src/gcc_ntox86’
make: *** [shr] Error 2

i cant find any documentation for this widget in the help file, but i assume im probbly missing some critical init task…

You need to add “-l PtFlash” to your LDFLAGS (and SDFLAGS if you ever
link static). The next version of PhAB will do that for you, but only
if you remove the old Makefile and let PhAB generate a new one: PhAB
never modifies an existing Makefile.

\

Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.

I had a similar problem.
I found this post in the qdn.public.qnxrtp.devtools newsgroup

"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"

I didn’t see those phtimer problems that you have though.

Sylvain
vince <lab-101@usa.net> wrote in message
news:Voyager.010108110946.1032229C@draco…

i tried adding -l PtFlash… now i get:



qcc
abmain.o -Vgcc_ntox86 -Bstatic -Wc,-O3 -fomit-frame-pointer -Wl,-O3 -fomit

-frame-pointer -l Ap -l phexlib -l ph -l phrender -l PtFlash -Bdynamic -l
m -M -o flashtest

/x86/usr/lib/libPtFlash.a(phtimer.o): In function
PlayerWnd::UpdateTimer(void)': phtimer.o(.text+0x205): undefined reference to PtTimerArm’
/x86/usr/lib/libPtFlash.a(phtimer.o): In function
PlayerWnd::StopTimer(void)': phtimer.o(.text+0x30c): undefined reference to PtTimerArm’
/x86/usr/lib/libPtFlash.a(phtimer.o): In function createTimer(void)': phtimer.o(.text+0x57a): undefined reference to PtTimer’
/x86/usr/lib/libPtFlash.a(audio.o): In function AudioDevice::Sync(void)': audio.o(.text+0x159): undefined reference to snd_pcm_plugin_flush’


this continues on for about 3 pages of errors…

any ideas??

vince

ps. when IS the next verson of phab due to be out?


Previously, Wojtek Lerch wrote in qdn.public.qnxrtp.photon:
vince <> lab-101@usa.net> > wrote:
Im having some problems with the ptflash widget… all ive done is
create a new project and drop a ptflash widget into it … then i edit the

flash filename property and generate/build… when i try that i get

abmain.o(.rodata+0xa0): undefined reference to PtFlash' cc: /usr/bin/ld error 1 make[1]: *** [shr] Error 1 make[1]: Leaving directory /root/devel/flashtest/src/gcc_ntox86’
make: *** [shr] Error 2

i cant find any documentation for this widget in the help file, but i
assume im probbly missing some critical init task…

You need to add “-l PtFlash” to your LDFLAGS (and SDFLAGS if you ever
link static). The next version of PhAB will do that for you, but only
if you remove the old Makefile and let PhAB generate a new one: PhAB
never modifies an existing Makefile.

\

Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.