OpenQNX :: The QNX Community Portal

Aug 21, 2008 - 06:22 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 41 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
elcarras
Post subject: Photon and phfont problems  PostPosted: Mar 16, 2007 - 10:10 AM
New Member


Joined: Mar 16, 2007
Posts: 3

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.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Photon and phfont problems  PostPosted: Mar 16, 2007 - 02:12 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2831

There is a section in the manual about embedding photon.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bedmond
Post subject: RE: Photon and phfont problems  PostPosted: Apr 17, 2007 - 02:20 AM
Active Member


Joined: Apr 17, 2007
Posts: 12

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
 
 View user's profile Send private message  
Reply with quote Back to top
elcarras
Post subject:   PostPosted: Apr 24, 2007 - 06:22 AM
New Member


Joined: Mar 16, 2007
Posts: 3

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

Thanx. Smile
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.