Skip navigation.
Home
The QNX Community Portal

View topic - Photon and phfont problems

Photon and phfont problems

Isn't the name clear?

Photon and phfont problems

Postby elcarras » Fri Mar 16, 2007 10:10 am

Hello,
I need to code a simple script which only run Photon in a CFC.

What libraries and executables I need?

I have an error when I run the script in rc.local:

---------------------
# Inicializacion de aplicaciones
echo Inicializacion de servicios de red
inetd &

echo Depuracion IDE
qconn &

echo Librerias PATH

export HOME=/home
export PHOTON_PATH=/phembed
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/phembed/lib:/lib:/lib/dll/font
export PATH=$PATH:/phembed/bin


echo Starting Photon
##Photon &
##waitfor /dev/photon 10
Photon &
echo Starting Input
devi-hid mouse kbd &
echo Starting Graphics
io-graphics -di810 -v=0x8086 -pphoton hwcursor &

echo Starting Fonts
fontsleuth -d /phembed/font_repository

phfont -d /phembed/font_repository

------------------

I have the followin errors in sloginfo:
----
phfont_init
phfontXX started OK
FatalError
No render engines loade, io-font
Unable to launch Photon Font Server main.
Unable to open font DLL
Process fontsleuth initilized.

----------


Thanks a lot.
elcarras
New Member
 
Posts: 3
Joined: Fri Mar 16, 2007 10:01 am

RE: Photon and phfont problems

Postby mario » Fri Mar 16, 2007 2:12 pm

There is a section in the manual about embedding photon.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: Photon and phfont problems

Postby bedmond » Tue Apr 17, 2007 2:20 am

I am guessing this is QNX 6.3.0 or some derivation of it. Here are a few things:
- Don't start Photon or io-graphics with an "&". They whille put themselves in the background when registered so you should not need a waitfor.
- If you run io-graphics before a font manager it will load a dll for the fonts and you don't need phfont, the dll is called phfont.so. This DLL must be in your CS_LIBPATH (use setconf for this).
- Also I would not run fontsleuth, it is usally there so you can drop fonts in on the fly which you probably won't do.
- As far as the libs for the font's go check out the above doc, but I bet it is the phfont.so.

Brian
bedmond
Active Member
 
Posts: 19
Joined: Tue Apr 17, 2007 2:13 am

Postby elcarras » Tue Apr 24, 2007 6:22 am

Thank you, the problem was that I have to define my libraries in CS_LIBPATH with setconf like you said.

Thanx. :)
elcarras
New Member
 
Posts: 3
Joined: Fri Mar 16, 2007 10:01 am


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest