Photon and bitmaps

I’m building the Photon system from scratch on an embedded PC with a VGA
display connected to it. I’ve got it so far that I can use the photon
file-manager and other applications without problems. The colours,
appearance seems to be ok. The problem I have is that I’m not able set
background image.

I made a test bmp, jpg and gif images on my host and tried to set them as a
backround image on the target. This however fails and the “Size” box state
in the Appearance->background window states “Error”. After pressing the
apply button the bkgdmgr is running but nothing else happens.

I am able to view the bmp and gif images (not jpg) with the pv utility and
to make a screenshot bmp file with the snapshot utility.

Am I missing some libraries/utilities or what could be the cause? What could
be the reason that I cant view jpg images with the pv utility?

Here’s a part my environment:

LD_LIBRARY_PATH=/proc/boot:/lib/dll:/usr/lib:/lib:/usr/photon/dll
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin:/usr/photon/bin

ls /usr/photon/dll/

audiocd.so mpegvideo.so pi_io_pcx.so vgr_javanpl.so
extproc.so pi_io_bmp.so pi_io_png.so
mpegaudio.so pi_io_gif.so shelf
mpegsystem.so pi_io_jpeg.so soundfile.so

ls /usr/photon/bin/

Photon hicosh4-ps2 ph~ shelf
bench_g io-graphics pterm snapshot
bkgdmgr pfm pv
devi-hirun ph pwm
devi-hirun_g phgrafx pwmopts

\

  • Martin



    BTW, when saving an image with the pv utility, running out disk space gives
    error: " bmp file format does not support the 640x480x8-Bit Color graphics
    settings Please change your graphics mode or select an alternative format to
    save" ???

Ok, solved the problem myself. I was missing libphimg.so. I had
libphimg.so.2 but that was apparently not what the program wanted and it
didn’t bother to mention about it.

A tip to people using DL_DEBUG: Be careful how you interpret the output. In
my case for example removing of libdisputil.so.2 gives error message of
“dlopen(”/lib/dll/devg-S1D13806.so") failed: Library cannot be found", which
points to my graphics driver.

I was also missing libjpeg.so.2 and libz.so.2

“Martin Nylund” <mnylund@emtrion.de> schrieb im Newsbeitrag
news:bu1ahr$8gk$1@inn.qnx.com

I’m building the Photon system from scratch on an embedded PC with a VGA
display connected to it. I’ve got it so far that I can use the photon
file-manager and other applications without problems. The colours,
appearance seems to be ok. The problem I have is that I’m not able set
background image.

I made a test bmp, jpg and gif images on my host and tried to set them as
a
backround image on the target. This however fails and the “Size” box state
in the Appearance->background window states “Error”. After pressing the
apply button the bkgdmgr is running but nothing else happens.

I am able to view the bmp and gif images (not jpg) with the pv utility and
to make a screenshot bmp file with the snapshot utility.

Am I missing some libraries/utilities or what could be the cause? What
could
be the reason that I cant view jpg images with the pv utility?

Here’s a part my environment:

LD_LIBRARY_PATH=/proc/boot:/lib/dll:/usr/lib:/lib:/usr/photon/dll
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin:/usr/photon/bin

ls /usr/photon/dll/

audiocd.so mpegvideo.so pi_io_pcx.so vgr_javanpl.so
extproc.so pi_io_bmp.so pi_io_png.so
mpegaudio.so pi_io_gif.so shelf
mpegsystem.so pi_io_jpeg.so soundfile.so

ls /usr/photon/bin/

Photon hicosh4-ps2 ph~ shelf
bench_g io-graphics pterm snapshot
bkgdmgr pfm pv
devi-hirun ph pwm
devi-hirun_g phgrafx pwmopts

\

  • Martin



    BTW, when saving an image with the pv utility, running out disk space
    gives
    error: " bmp file format does not support the 640x480x8-Bit Color graphics
    settings Please change your graphics mode or select an alternative format
    to
    save" ???