LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2006, 05:23 AM   #1
MKSN
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
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
 
Old 07-19-2006, 05:30 AM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
--target is used only for compiling cross tools (compilers, assemblers etc). Do what the error msg tells you. use --host=arm-linux instead.
 
Old 07-19-2006, 05:37 AM   #3
MKSN
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
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!!
 
Old 07-19-2006, 12:28 PM   #4
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
It appears you don't have the necessary cross libraries.
 
Old 07-20-2006, 02:55 AM   #5
MKSN
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the information.

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

Thank you very much!
 
Old 07-20-2006, 03:59 AM   #6
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to cross compile? jiyun0121 Linux - General 3 09-01-2005 06:15 PM
Qt Cross Compile werewolfolondon Linux - Software 2 02-25-2005 01:01 PM
cross compile zaicheke Linux - Software 7 01-20-2005 08:23 PM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM
cross network backup account needed alfy Linux - Security 1 06-01-2003 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration