LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2009, 06:24 AM   #1
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
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?

Last edited by shariefbe; 12-28-2009 at 06:26 AM.
 
Old 12-28-2009, 07:08 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by shariefbe View Post
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
 
Old 12-28-2009, 11:12 PM   #3
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
I solved this problem. This error is gue to "cache file " problem. i fixed it
 
Old 12-29-2009, 02:49 AM   #4
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by shariefbe View Post
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.
 
Old 01-01-2010, 01:19 AM   #5
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
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
 
  


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
Cross compiling glib-2.0.0 jeazh Linux - Newbie 5 12-28-2009 06:26 AM
How to: Cross compile GLib lumdongtien Linux - Software 3 10-18-2009 08:36 PM
all about cross compilation swift2008 Programming 3 08-27-2008 05:49 AM
Glib cross compile error m.harshavardhan Linux - General 1 12-04-2007 03:31 AM
cross compilation Kocil Slackware 6 12-18-2003 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:54 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
Open Source Consulting | Domain Registration