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! |
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. |
Quote:
Thanks very much for your suggestion! I will try it again! Best Regards! Tao |
1 Attachment(s)
Quote:
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. |
All times are GMT -5. The time now is 04:59 PM. |