Quote:
Originally Posted by sguerrini97
If you are still looking in how to setup a cross toolchain, it's very simple on debian (should work on Ubuntu too): https://wiki.debian.org/CrossToolchains#Installation
Just use "armel" instead of "armhf" to have a working CC for Kindle.
Look at my Makefile here, you may need to change the one in the project (e.g. use arm-linux-gnueabi-gcc instead of gcc): https://github.com/sguerrini97/gtk_s...aster/Makefile
Header files are the same across platforms afaik, but you need the libraries either from the Kindle or from the debian armel packages.
|
I feel very stuck, I installed the crosstool chain, that part works, I have compiled a 'hello world' program, that compiles and runs on my kindle fine.
(After I understand how this way works, I want to try the qemu set up later on)
But when I try to compile code that requires X11 and needs '-lXtst -lX11', I get errors.
Code:
/usr/lib/gcc/arm-linux-gnueabi/4.9/../../../../arm-linux-gnueabi/bin/ld: cannot find -lXtst
Ok, so I copied the /lib/ and /usr/lib folders from the kindle,
I put them all in a folder called 'kindlelibs' in my ~/Documents, and include that folder to be searched in the makefile.
Code:
-L/home/user/Documents/kindlelibs
But NOW I get the error
Code:
/usr/lib/gcc/arm-linux-gnueabi/4.9/../../../../arm-linux-gnueabi/bin/ld: cannot find /lib/libpthread.so.0
That file exists in the same place -lXtst (lixXtst.so) is, and that was found, so why not libpthread.0.so?
I don't know why it is looking in /lib for that library, because I told it to look in my kindlelibs folder in my documents. I thought when looking for libraries/header files, the compiler/linker will search all directories you provide, no?
It's not sure if this is a simple problem to fix, sorry for the trouble.
Thanks