Hi
I installed QNX in a usb, so i have a build file, and i mounted in it gcc, and it works fine.
but I put some libraries of Matlab on qnx for create the executable file, I use the makefile for compilation, and during the compilation, doesn,t show any message, just appear the message of problem when I execute the executable.
this is my build file, I don’t know if a need modify memory parameters.
thanks
The build file for QNX Neutrino booting on a PC
[virtual=x86,bios +compress] boot = {
# Reserve 64k of video memory to handle multiple video cards
startup-bios -s64k
# PATH is the *safe* path for executables (confstr(_CS_PATH...))
# LD_LIBRARY_PATH is the *safe* path for libraries (confstr(_CS_LIBPATH))
# i.e. This is the path searched for libs in setuid/setgid executables.
PATH=/proc/boot:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll procnto
}
[+script] startup-script = {
# To save memory make everyone use the libc in the boot image!
# For speed (less symbolic lookups) we point to libc.so.3 instead of libc.so
procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2
display_msg " "
# Display message to indicate which kernel I am running
display_msg Welcome to QNX!!
pci-bios
slogger -s32
# Start USB
io-usb -duhci -dohci -dehci
waitfor /dev/io-usb
rshd &
hostname -s QNX_Colibri
# devc-ser8250 -u1 3f8,4 -u2 2f8,3
devc-pty -n 32
pipe
mqueue
random -t
dumper -d /var/dumps
# HID
io-hid -d ps2ser kbd:kbddev:ps2mouse:mousedev -d usb /dev/io-usb/io-usb
#puerto serial
devc-ser8250 -e -b9600 0x1d0003f8,0x23 &
reopen
#start Networking
io-pkt-v4 -de1000 name=en &
if_up -p en0
# ifconfig en0 10.0.0.3 netmask 255.255.255.0
# route add default 10.0.0.1
ifconfig en0 200.12.188.188 netmask 255.255.255.192
route add default 200.12.188.129
waitfor /dev/socket 5
netmanager &
inetd &
# USB media
devb-umass disk name=umass cam pnp
waitfor /dev/umass0t77
mount -t qnx4 /dev/umass0t77 /
mkdir /root
mkdir /bin
mkdir /sbin
mkdir /dev
mkdir /etc/
mkdir /usr/
mkdir /usr/sbin
mkdir /usr/bin
mkdir /usr/lib
mkdir /usr/qnx650/
mkdir /usr/qnx650/host/
mkdir /usr/qnx650/host/qnx6/x86/
mkdir /usr/qnx650/host/qnx6/
mkdir /usr/qnx650/target/
mkdir /usr/qnx650/target/qnx6/
mkdir /home/
mkdir /home/ntuser
#env variables
SYSNAME=nto
# TERM=qans-m
PROCESSOR=x86
# HOME=/root
# PATH=/bin:/bin:/usr/bin:/usr/sbin:.
LD_LIBRARY_PATH=/lib:/lib/dll:/usr/lib:/proc/boot
QNX_HOST=/usr/qnx650/host/qnx6/x86
QNX_TARGET=/usr/qnx650/target/qnx6
display_msg Starting Shell ...
devc-con-hid -n4
waitfor /dev/con1
reopen /dev/con1
[+session] esh
# [+session] HOME=/root/ sh &
# [+session] login -p
}
#Redirect console messages for syslog
#[type=link] /dev/console=/dev/con1
[type=link] /lib=/x86/lib
#[type=link] /tmp=/dev/shmem
[type=link] /dev/console=/dev/ser2
#[type=link] /bin=/x86/bin
#[type=link] /home/ntuser/=/home/ntuser/
#/root/=/root/
Include the current “libc.so”. It will be created as a real file using
its internal “SONAME”, with “libc.so” being a symlink to it. The symlink
will point to the last “libc.so.*” so if an earlier libc is needed
(e.g. libc.so.1) add it before the this line.
libc.so
libc.so.3
libm.so
libz.so
libhiddi.so
libusbdi.so
libsocket.so.3
Include all the files for the default filesystems
libcam.so
io-blk.so
cam-disk.so
#archivos de configuracion
#/etc/hosts.equiv=/etc/hosts.equiv
/etc/termcap=/etc/termcap
/etc/inetd.conf=/etc/inetd.conf
#/etc/ftpusers=/etc/ftpusers
#/etc/net.cfg=/etc/net.cfg
#/etc/passwd=/etc/passwd
/etc/config/ttys=/etc/config/ttys
/etc/group=/etc/group
#/etc/shadow=/etc/shadow
/etc/services=/etc/services
/etc/default/login=/etc/default/login
/etc/rc.d/rc.local=/etc/rc.d/rc.local
/usr/lib/terminfo=/usr/lib/terminfo
/root/.rhosts=/root/.rhosts
#/home/ntuser/.rhosts=/root/.rhosts
Include all the files for the default filesystems
libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
fs-qnx6.so
fs-dos.so
fs-ext2.so
cam-cdrom.so
fs-cd.so
USB for console driver
devu-ehci.so
devu-ohci.so
devu-uhci.so
devh-usb.so
devh-ps2ser.so
#Network drivers
devnp-e1000.so
libexpat.so.2
libwlconfig.so.1
These programs only need to be run once from the boot image.
“data=uip” will waste less memory as the ram from the boot
image will be used directly without making a copy of the data
(i.e. as the default “data=cpy” does). When they have been
run once, they will be unlinked from /proc/boot.
[data=copy]
seedres
pci-bios
devb-eide
devb-umass
devb-ahci
#devb-mvSata
devb-adpu320
devb-aha8
umass-enum
[search=${MKIFS_PATH}:${QNX_TARGET}/etc] umass-enum.cfg
io-usb
io-hid
#diskboot
slogger
fesh
devc-con
devc-con-hid
devc-pty
waitfor
mount
hostname
pipe
mqueue
random
dumper
sleep
ifconfig
io-pkt-v4
netmanager
route
if_up
devc-ser8250
ftp
rsh
rcp
ping
usb
mkdir
export
binaries needed for debugging
/usr/sbin/inetd=/usr/sbin/inetd
/bin/ls=/bin/ls
/bin/cp=/bin/cp
/bin/more=/bin/more
/bin/rm=/bin/rm
/usr/bin/less=/usr/bin/less
/usr/bin/which=/usr/bin/which
pidin
shutdown
slay
#/bin/vi=/bin/vi
#gdb
#/usr/qnx650/host/qnx6/x86/usr/bin/gcc
#env
#echo
#binaries needed for login
#/usr/sbin/ftpd=/usr/sbin/ftpd
/usr/sbin/telnetd=/usr/sbin/telnetd
/usr/sbin/rlogind=/usr/sbin/rlogind
/usr/sbin/rshd=/usr/sbin/rshd
/usr/bin/telnet=/usr/bin/telnet
/usr/bin/rlogin=/usr/bin/rlogin
/bin/login=/bin/login
/bin/logout=/bin/logout
/bin/sh=/bin/sh
/bin/esh=/bin/esh
/bin/su=/bin/su
/etc/hosts.equiv ={
127.0.0.1 +
10.89 +
10.0.0.3 +
}
/etc/passwd={
root::0:0:Superuser:/root:/bin/sh
bin:x:1:1:Binaries Commands and Source:
daemon:x:2:2:System Services:/daemon:
mail:x:8:40:User Mail:/var/spool/mail:
news:x:9:50:Network News:/var/spool/new
uucp:x:12:60:Network News:/var/spool/ne
ftp:x:14:80:FTP User:/home/ftp:
sshd:x:15:6:sshd:/var/chroot/sshd:/bin/
nobody:x:99:99:Nobody:/:
ntuser:x:100:100:Colibri:/home/ntuser:/bin/sh
}
These files will be unlinked after the system has started
to release the memory back to the system. They are only
needed during boot. If needed later on, they will be loaded
from the boot device.
unlink_list={
/proc/boot/devb-*
}
#/** PhEDIT attribute block
#-11:16777215
#0:1364:default:-3:-3:0
#1364:1465:default:-3:-3:4
#1465:5935:default:-3:-3:0
#** PhEDIT attribute block ends (-0000167)**/