jthemis
Posts: 2
Joined: Thu May 23, 2019 7:12 pm

Cross Compiling ncurses 6.1 for RPI

Thu May 23, 2019 7:25 pm

I have searched the forums and the web but have not found a similar problem.

Problem: make install fails for the ncurses.
Error:

Code: Select all

make[1]: Leaving directory '/home/jthe/sandbox/ncurses-6.1/ncurses'
cd progs && make DESTDIR="" RPATH_LIST="/home/jthe/lib/lib" install
make[1]: Entering directory '/home/jthe/sandbox/ncurses-6.1/progs'
/usr/bin/install -c -s tic     /home/jthe/lib/bin/`echo tic|       sed 's/$//'|sed 's,x,x,'|sed 's/$//'`
strip: Unable to recognise the format of the input file `/home/jthe/lib/bin/tic'
/usr/bin/install: strip process terminated abnormally
Makefile:201: recipe for target 'install.progs' failed
make[1]: *** [install.progs] Error 1
make[1]: Leaving directory '/home/jthe/sandbox/ncurses-6.1/progs'
Makefile:113: recipe for target 'install' failed
make: *** [install] Error 2
In the Install documentation, it mentions that tic needs to be built with the host compiler to be used during the make install. I am a bit confused on where the tic tool is built for the host and where it is built for the target. I see one tic binary in the ./progs directory which was build using the cross-compiler.

Set-up:

Host: Ubuntu
linux: 4.18.0-18-generic

Target: Raspberry Pi 3

Here are the commands I executed to configure and build ncurses. I am relatively new to using the autoconf/configure tools and less familiar with ncurses. I am trying to improve my ASCII art menus :)

Code: Select all

./configure --host=arm-linux-gnueabihf --build=i686-pc-linux-gnu --with-build-cc=gcc --without-shared --prefix=/some/install/path
make
make install
The final result is that I have a static ncurses library. I haven't tried to use it yet on my target because the error is frustrating me.

Any help is appreciated. Please let me know if you need more info.

Thanks,
Jim

jthemis
Posts: 2
Joined: Thu May 23, 2019 7:12 pm

Re: Cross Compiling ncurses 6.1 for RPI

Thu May 30, 2019 1:58 pm

While I never resolved my issue with 6.1, I dropped down to 5.9 and the issue does not exist.

jahboater
Posts: 4477
Joined: Wed Feb 04, 2015 6:38 pm

Re: Cross Compiling ncurses 6.1 for RPI

Thu May 30, 2019 3:33 pm

Just curious, what in 6.1 did you need?

All Linux's have ncurses included, which have always worked fine for me.

Return to “C/C++”