Hi,
You can generate ncurses 5.0 for qnx6.1 by following these steps:
it will create a ncurses-5.0 directory tree.
- edit configure file and at line 773, after the lines:
after the lines:
Checks for programs.
Extract the first word of “gcc”, so it can be a program name with
args.
case $cf_cv_system_name in
nto-qnx) CC=qcc;;
esac
and then, after the lines (toward line 2589):
case $cf_cv_system_name in
nto-qnx*)
tested with QNX 6.1.
CC_SHARED_OPTS=’-fPIC’
MK_SHARED_LIB=’$(CC) -shared -Wl,-hbasename $@.$(REL_VERSION)
-o $@’
;;
-
at the shell prompt, type:
$ cd ncurses-5.0
$ cp /usr/share/libtool/config.guess .
$ cp /usr/share/libtool/config.sub .
-
then you have two possibilities:
-
If you want to make a default installation (/usr/local) just type:
$ ./configure --with-shared --without-cxx-binding --without-ada
-
If you want to make a ‘pseudo’ install to make a QNX package, type
$ ./configure --with-shared --without-cxx-binding --without-ada
–prefix=/opt/ncurses-5.0/usr --exec-prefix=/opt/ncurses-5.0/x86/usr
- then continue normally:
$ make
$ su root
make install
enjoy it*! or:
- maybe you can encounter a problem a boot time. See at the end of this
file.
If you have decided to make a QNX package:
cd /opt
Before making your package, due to a packager limitation, you cannot
keep all
the terminfo definitions. You have to choose which ones will be usefull
for you.
I’ve decided to keep the same definition as you can find in the original
QNX
curses package (included in the os package). This is:
terminfo/a
terminfo/q
terminfo/t
terminfo/v
terminfo/x
The terminfo/q directory is not complete.
- add the /usr/lib/terminfo/q/* files in it.
cp /usr/lib/terminfo/q/* ncurses-5.0/usr/share/terminfo/q/
-
eventually add a terminfo source file.
Either the ‘ncurses’ one, you can find it in the ‘misc’ directory, or
the
QNX one which you can find in /usr/lib/terminfo.
#cp /usr/lib/terminfo/terminfo.src ncurses-5.0/usr/share/terminfo/
-
Now two possibilities:
- you want to completely build the package by yourself:
packager ncurses-5.0
- you prefere to use the package.qpg file that I’ve prepared. You can
find it
in sysdeps/qnx/qnx6.1. It will ask In that case, do:
packager
-
Anyway, packager will complain about a conflict with the ‘os*’
packages, and
ask you how does it have to install your package. Answer ‘Over’ (‘o’).
-
install your package. Packager will create a qpr file which is an
archive of
qpm and qpk files.
There is two possibilities:
- use the qpr file directly:
pkg-installer -u libncurses_x86-5.0-x86-public.qpr
- or untar the qpr into qpm and qpk
tar -xf libncurses_x86-5.0-x86-public.qpr
cp *.qpm *.qpk /a_reposisotory_known_by_pkg-installer
pkg-installer
That’s all!
Just one word about installation directories. QNX provide a ncurses
package
(without shared librairies sic!) and unfortunately they decided to put
directly
the terminfo directory to /usr/lib instead of putting it in /usr/share
with a
link in /usr/lib.
If you choose to do as the ‘normal’ installation, fs-pkg will complain
at boot
time with a ‘leaves and directories cannot overlap’. ( don’t
understand this
message! So, my package.qpg takes care of that and also install terminfo
in
/usr/lib.
Alain Bonnefoy wrote:
Hi,
You can generate ncurses 5.0 for qnx6.1 by following these steps:
Does it work also for ncurses 5.2 ??
Armin
it will create a ncurses-5.0 directory tree.
- edit configure file and at line 773, after the lines:
after the lines:
Checks for programs.
Extract the first word of “gcc”, so it can be a program name with
args.
case $cf_cv_system_name in
nto-qnx) CC=qcc;;
esac
and then, after the lines (toward line 2589):
case $cf_cv_system_name in
nto-qnx*)
tested with QNX 6.1.
CC_SHARED_OPTS=’-fPIC’
MK_SHARED_LIB=’$(CC) -shared -Wl,-hbasename $@.$(REL_VERSION)
-o $@’
;;
-
at the shell prompt, type:
$ cd ncurses-5.0
$ cp /usr/share/libtool/config.guess .
$ cp /usr/share/libtool/config.sub .
-
then you have two possibilities:
-
If you want to make a default installation (/usr/local) just type:
$ ./configure --with-shared --without-cxx-binding --without-ada
-
If you want to make a ‘pseudo’ install to make a QNX package, type
$ ./configure --with-shared --without-cxx-binding --without-ada
–prefix=/opt/ncurses-5.0/usr --exec-prefix=/opt/ncurses-5.0/x86/usr
- then continue normally:
$ make
$ su root
make install
enjoy it*! or:
- maybe you can encounter a problem a boot time. See at the end of this
file.
If you have decided to make a QNX package:
cd /opt
Before making your package, due to a packager limitation, you cannot
keep all
the terminfo definitions. You have to choose which ones will be usefull
for you.
I’ve decided to keep the same definition as you can find in the original
QNX
curses package (included in the os package). This is:
terminfo/a
terminfo/q
terminfo/t
terminfo/v
terminfo/x
The terminfo/q directory is not complete.
- add the /usr/lib/terminfo/q/* files in it.
cp /usr/lib/terminfo/q/* ncurses-5.0/usr/share/terminfo/q/
-
eventually add a terminfo source file.
Either the ‘ncurses’ one, you can find it in the ‘misc’ directory, or
the
QNX one which you can find in /usr/lib/terminfo.
#cp /usr/lib/terminfo/terminfo.src ncurses-5.0/usr/share/terminfo/
-
Now two possibilities:
- you want to completely build the package by yourself:
packager ncurses-5.0
- you prefere to use the package.qpg file that I’ve prepared. You can
find it
in sysdeps/qnx/qnx6.1. It will ask In that case, do:
packager
-
Anyway, packager will complain about a conflict with the ‘os*’
packages, and
ask you how does it have to install your package. Answer ‘Over’ (‘o’).
-
install your package. Packager will create a qpr file which is an
archive of
qpm and qpk files.
There is two possibilities:
- use the qpr file directly:
pkg-installer -u libncurses_x86-5.0-x86-public.qpr
- or untar the qpr into qpm and qpk
tar -xf libncurses_x86-5.0-x86-public.qpr
cp *.qpm *.qpk /a_reposisotory_known_by_pkg-installer
pkg-installer
That’s all!
Just one word about installation directories. QNX provide a ncurses
package
(without shared librairies sic!) and unfortunately they decided to put
directly
the terminfo directory to /usr/lib instead of putting it in /usr/share
with a
link in /usr/lib.
If you choose to do as the ‘normal’ installation, fs-pkg will complain
at boot
time with a ‘leaves and directories cannot overlap’. > > ( don’t
understand this
message! So, my package.qpg takes care of that and also install terminfo
in
/usr/lib.
Armin Steinhoff wrote:
Alain Bonnefoy wrote:
Hi,
You can generate ncurses 5.0 for qnx6.1 by following these steps:
Does it work also for ncurses 5.2 ??
Armin
it will create a ncurses-5.0 directory tree.
- edit configure file and at line 773, after the lines:
after the lines:
Checks for programs.
Extract the first word of “gcc”, so it can be a program name with
args.
case $cf_cv_system_name in
nto-qnx) CC=qcc;;
esac
and then, after the lines (toward line 2589):
case $cf_cv_system_name in
nto-qnx*)
tested with QNX 6.1.
CC_SHARED_OPTS=’-fPIC’
MK_SHARED_LIB=’$(CC) -shared -Wl,-hbasename $@.$(REL_VERSION)
-o $@’
;;
-
at the shell prompt, type:
$ cd ncurses-5.0
$ cp /usr/share/libtool/config.guess .
$ cp /usr/share/libtool/config.sub .
-
then you have two possibilities:
-
If you want to make a default installation (/usr/local) just type:
$ ./configure --with-shared --without-cxx-binding --without-ada
-
If you want to make a ‘pseudo’ install to make a QNX package, type
$ ./configure --with-shared --without-cxx-binding --without-ada
–prefix=/opt/ncurses-5.0/usr --exec-prefix=/opt/ncurses-5.0/x86/usr
- then continue normally:
$ make
$ su root
make install
enjoy it*! or:
- maybe you can encounter a problem a boot time. See at the end of this
file.
If you have decided to make a QNX package:
cd /opt
Before making your package, due to a packager limitation, you cannot
keep all
the terminfo definitions. You have to choose which ones will be usefull
for you.
I’ve decided to keep the same definition as you can find in the original
QNX
curses package (included in the os package). This is:
terminfo/a
terminfo/q
terminfo/t
terminfo/v
terminfo/x
The terminfo/q directory is not complete.
- add the /usr/lib/terminfo/q/* files in it.
cp /usr/lib/terminfo/q/* ncurses-5.0/usr/share/terminfo/q/
-
eventually add a terminfo source file.
Either the ‘ncurses’ one, you can find it in the ‘misc’ directory, or
the
QNX one which you can find in /usr/lib/terminfo.
#cp /usr/lib/terminfo/terminfo.src ncurses-5.0/usr/share/terminfo/
-
Now two possibilities:
- you want to completely build the package by yourself:
packager ncurses-5.0
- you prefere to use the package.qpg file that I’ve prepared. You can
find it
in sysdeps/qnx/qnx6.1. It will ask In that case, do:
packager
-
Anyway, packager will complain about a conflict with the ‘os*’
packages, and
ask you how does it have to install your package. Answer ‘Over’ (‘o’).
-
install your package. Packager will create a qpr file which is an
archive of
qpm and qpk files.
There is two possibilities:
- use the qpr file directly:
pkg-installer -u libncurses_x86-5.0-x86-public.qpr
- or untar the qpr into qpm and qpk
tar -xf libncurses_x86-5.0-x86-public.qpr
cp *.qpm *.qpk /a_reposisotory_known_by_pkg-installer
pkg-installer
That’s all!
Just one word about installation directories. QNX provide a ncurses
package
(without shared librairies sic!) and unfortunately they decided to put
directly
the terminfo directory to /usr/lib instead of putting it in /usr/share
with a
link in /usr/lib.
If you choose to do as the ‘normal’ installation, fs-pkg will complain
at boot
time with a ‘leaves and directories cannot overlap’. > > ( don’t
understand this
message! So, my package.qpg takes care of that and also install terminfo
in
/usr/lib.
Oups, sorry for the delay Armin.
Unfortunately, I didn’t try for more recent version.
I don’t have lot of time now, but I will try as soon as possible.
regards,
Alain.