bootimage and photon "Unable to start ... (83)"

Hi all,

With QNX (V6.1A)

I try to create a bootimage with a simple “Hello, world” programm made with
Phab.

When I boot I have the message "Unable to start “devc -con” (83) and "Unable
to start “hello_phab” (83)

What must I put into my build file ?

This is my actual buildfile

[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
LD_LIBRARY_PATH=/proc/boot
}
[+script] .script = {
devc-con -e
hello_phab
}
[type=link] /usr/lib/libphexlib.so.2=/proc/boot/libc.so
libc.so.2
[data=c]
devc-con
hello_phab

“Jeff Hoffmeyer” <jean-francois.hoffmeyer@schiller.fr> wrote in message
news:9tlshm$1mc$1@nntp.qnx.com

Hi all,

With QNX (V6.1A)

I try to create a bootimage with a simple “Hello, world” programm made
with
Phab.

When I boot I have the message "Unable to start “devc -con” (83) and
"Unable
to start “hello_phab” (83)

What must I put into my build file ?

This is my actual buildfile

[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
LD_LIBRARY_PATH=/proc/boot

From memory,should be

PATH=/proc/boot LD_LIBRARY_PATH= /proc/bootprocnto

you are setting LD_LIBRARY_PATH after procnto is start, thus
I beleive procnto doesn’t know where to look for share object.
Error 83 (as defined in errno.h) says" Can’t access shared library"

And you also need to define:

procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2

If hello_phab is a Photon application, you need a LOT more
stuff. You need to start Photon itself, the graphics driver,
fonts, maybe some input device. There is a section about
embedding Photon in the online documentation.

}
[+script] .script = {
devc-con -e
hello_phab
}
[type=link] /usr/lib/libphexlib.so.2=/proc/boot/libc.so
libc.so.2
[data=c]
devc-con
hello_phab
\

“Mario Charest” <mcharest@clipzinformatic.com> wrote in message
news:9tlvd7$mrn$1@inn.qnx.com

From memory,should be

PATH=/proc/boot LD_LIBRARY_PATH= /proc/bootprocnto

you are setting LD_LIBRARY_PATH after procnto is start, thus
I beleive procnto doesn’t know where to look for share object.
Error 83 (as defined in errno.h) says" Can’t access shared library"

This isn’t even a before/after issue. PATH and LD_LIBRARY_PATH must be on

the same line as procnto.

In the script file they canb come before.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net