LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-17-2017, 10:29 AM   #1
blue_tao
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Rep: Reputation: Disabled
Cross compile libX11 source code error


Hi Guys,

When I cross compile libX11, and run the ./configure --prefix=/usr, I got the error as follow.

checking keysym definitions... configure: error: Cannot find keysymdef.h

However, I check the file keysymdef.h, it exists on my environment "~/sysroot/usr/include/X11/".

One more question is that there is no any output while I execute the "pkg-config --cflags xproto", but xproto is also installed on my environment.

Could anyone give me some suggestions?
Thanks so much!
 
Old 08-17-2017, 12:10 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 9,569

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Why not at least try a symlink to ~/sysroot/usr/include/X11/keysymdef.h in /usr/include/X11? If iy passes that, stop. It's searching your own system for files, so any libs it links in will be for the wrong OS. Do a 'make clean'

Where possible, it's better to do a chroot so that /usr seen by your compiling terminal is actually ~/sysroot/usr; then that sort of error doesn't occur. That may take some setting up. A look at the CLFS book on linuxfromscratch.org should help you.
 
Old 08-17-2017, 10:00 PM   #3
blue_tao
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Why not at least try a symlink to ~/sysroot/usr/include/X11/keysymdef.h in /usr/include/X11? If iy passes that, stop. It's searching your own system for files, so any libs it links in will be for the wrong OS. Do a 'make clean'

Where possible, it's better to do a chroot so that /usr seen by your compiling terminal is actually ~/sysroot/usr; then that sort of error doesn't occur. That may take some setting up. A look at the CLFS book on linuxfromscratch.org should help you.
Hi Sir,

Thanks very much for your suggestion!
I will try it again!

Best Regards!
Tao
 
Old 08-17-2017, 11:40 PM   #4
blue_tao
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by blue_tao View Post
Hi Sir,

Thanks very much for your suggestion!
I will try it again!

Best Regards!
Tao
Hi,

It doesn't work. I'm also confused why there is no any output for ""pkg-config --cflags xproto/xcb-proto/zlib"", but these xxx.pc files exist on my system.
I have no idea how to resolve this issue.

config.log is attached.
Attached Files
File Type: log config.log (73.7 KB, 3 views)

Last edited by blue_tao; 08-18-2017 at 05:34 AM.
 
  


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
LXDE : build from source for cross compile ARM. surajkumar mokhasi Linux - Embedded & Single-board computer 2 02-19-2015 06:29 AM
how to cross compile code when the target is for another kernel version ? schneidz Linux - Embedded & Single-board computer 2 11-28-2011 12:20 AM
compile error -- 2.6.11 default kernel source code George2 Programming 1 02-20-2007 05:20 AM
Can gcc cross-compile C code to M68K Assembly? lowpro2k3 Programming 1 03-25-2005 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration