LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   glib cross compilation (https://www.linuxquestions.org/questions/linux-newbie-8/glib-cross-compilation-778442/)

shariefbe 12-28-2009 06:24 AM

glib cross compilation
 
i am compilaing and glib for my ARM baord and i am getting one error
see
Code:

checking for format to printf and scanf a guint64... none
checking for an ANSI C-conforming const... yes
checking if malloc() and friends prototypes are gmem.h compatible... yes
checking for growing stack pointer... configure: error: in `/mnt/freescale/sources/glib-2.22.0':
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
Configuration of glib library  has failed
sharief@sharief-desktop:/mnt/freescale/sources/glib-2.22.0$

can anyone help me..what is this? and how to clear that?

ozanbaba 12-28-2009 07:08 AM

Quote:

Originally Posted by shariefbe (Post 3806662)
i am compilaing and glib for my ARM baord and i am getting one error
see
Code:

checking for format to printf and scanf a guint64... none
checking for an ANSI C-conforming const... yes
checking if malloc() and friends prototypes are gmem.h compatible... yes
checking for growing stack pointer... configure: error: in `/mnt/freescale/sources/glib-2.22.0':
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
Configuration of glib library  has failed
sharief@sharief-desktop:/mnt/freescale/sources/glib-2.22.0$

can anyone help me..what is this? and how to clear that?

configure --help | grep -i test

let's see what it outputs

shariefbe 12-28-2009 11:12 PM

I solved this problem. This error is gue to "cache file " problem. i fixed it

ozanbaba 12-29-2009 02:49 AM

Quote:

Originally Posted by shariefbe (Post 3807432)
I solved this problem. This error is gue to "cache file " problem. i fixed it

glib needs cache file defined before hand for cross compile as it can't guess everything needed.

shariefbe 01-01-2010 01:19 AM

it works fine for me. now when i tried to compile again i am getting the following error

Code:

checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for pkg-config... /mnt/freescale//toolchain/bin//pkg-config
configure: error: *** pkg-config too old; version 0.16 or better required.
Configuration of glib library  has failed
sharief@sharief-desktop:/mnt/freescale/sources/glib-2.22.0$

Can anyone help me


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