LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help needed on cross-compile (https://www.linuxquestions.org/questions/linux-software-2/help-needed-on-cross-compile-465487/)

MKSN 07-19-2006 05:23 AM

Help needed on cross-compile
 
Hi,

I have installed the XOSD in my RedHat 9.0 OS and it works fine. Now I am trying to cross-compile it with arm-linux-gcc by changing the ./configure --target=arm-linux CC=arm-linux-gcc but it comes out error. The error message is:

checking for gcc... arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details.

Anyone has any idea about the problem?

Thank you very much in advance!!!


Regards,
MKSN

ugenn 07-19-2006 05:30 AM

--target is used only for compiling cross tools (compilers, assemblers etc). Do what the error msg tells you. use --host=arm-linux instead.

MKSN 07-19-2006 05:37 AM

I have tried the ./configure --host=arm-linux and it comes out error too. Here's the error message:

checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.2... cross compiling; assumed OK... yes
checking for XInitThreads in -lX11... no
configure: error: *** X11 not threadsafe ***

Can anyone tell what it means?

Thank you very much!!

ugenn 07-19-2006 12:28 PM

It appears you don't have the necessary cross libraries.

MKSN 07-20-2006 02:55 AM

Thanks for the information.

May I know what the necessary cross libraries are and maybe where I could download it?

Thank you very much!

ugenn 07-20-2006 03:59 AM

libX11 for arm. Not sure where you can find them. If your host system has a distro for it, try getting their packages and putting them in /usr/arm-linux/lib or /usr/local/arm-linux/lib.


All times are GMT -5. The time now is 03:30 PM.