View Single Post
Old 08-03-2016, 04:05 AM   #11
Hanspeter
Connoisseur
Hanspeter doesn't litterHanspeter doesn't litter
 
Posts: 77
Karma: 150
Join Date: Jul 2014
Device: Kindel PW1, Voyager
I need some help to compile xmahjongg. To complile it it fo ubuntu I need to do the following:
Quote:
export LDFLAGS="-lpthread -lX11"
./conigure
make
The compiler do not find the x11 header files without the LDFLAGS statement.
../include/lcdfgif/gifx.h:22:22: fatal error: X11/Xlib.h: No such file or directory

Now I set up the tool-chain as described here: https://www.mobileread.com/forums/sho...d.php?t=276410 worked without problems.

Now to compile it for the kindle I used:
Quote:
export PATH=$PATH:$HOME/x-tools/arm-kindle5-linux-gnueabi/bin
export LDFLAGS="-lpthread -lX11"
CC=arm-kindle5-linux-gnueabi-gcc ./configure --host=arm-kindle5-linux-gnueabi
and receive the following error:
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

config.log:
Quote:
gcc version 5.4.1 20160606 (crosstool-NG crosstool-ng-1.22.0-195-g17658f4)
configure:2089: $? = 0
configure:2091: arm-kindle5-linux-gnueabi-gcc -V </dev/null >&5
arm-kindle5-linux-gnueabi-gcc: error: unrecognized command line option '-V'
arm-kindle5-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
configure:2094: $? = 1
configure:2117: checking for C compiler default output file name
configure:2120: arm-kindle5-linux-gnueabi-gcc -lpthread -lX11 conftest.c >&5
/home/hjochman/x-tools/arm-kindle5-linux-gnueabi/lib/gcc/arm-kindle5-linux-gnueabi/5.4.1/../../../../arm-kindle5-linux-gnueabi/bin/ld.bfd: cannot find -lX11
./configure works Without the -lX11 flag, but then the error "../include/lcdfgif/gifx.h:22:22: fatal error: X11/Xlib.h: No such file or directory" in the make command is back.

I expect that I need to add the header files or the libs from the kindle to the TC, but I was not able to find how to do that.

Can someone point me to the right place?

Hanspeter

Last edited by Hanspeter; 08-03-2016 at 04:07 AM.
Hanspeter is offline   Reply With Quote