LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 03-03-2010, 06:46 PM   #1
meeramukundan
LQ Newbie
 
Registered: Dec 2009
Location: India
Distribution: Fedora11
Posts: 9

Rep: Reputation: 0
GTK crosscompilation using scratchbox


Hi all,
I have been developing a digital map display system on ARM based embedded platform running on embedded Linux to provide real time location based services.

Application Development uses Sqlite(an embedded database) and GTK(GIMP Toolkit for graphical user interface design) ,both written in C-language.

GTK and SQLite libraries have to be cross-compiled for the arm target,Trying to cross compile from an x86 machine having fedora distribution using scratchbox .

Scratchbox is a cross-compilation toolkit that provides a sandboxed build environment which offers a controlled set of tools and utilities needed for cross-compilation.

I just downloaded glib library from GTK+ family and try to compile it within the scratchbox as follows
Quote:
[sbox-MYTARGET: ~] > tar -xjvf glib-2.2.3.tar.bz2
[sbox-MYTARGET: ~] > cd glib-2.2.3
[sbox-MYTARGET: ~/glib-2.2.3] > ./configure
[sbox-MYTARGET: ~/glib-2.2.3] > make
[sbox-MYTARGET: ~/glib-2.2.3] > make install
But when I run the configure script,its showing as follows,
Quote:
....
checking if building for some Win32 platform... no

checking for thread implementation... posix

checking thread related cflags... -D_REENTRANT

checking for pthread_create/pthread_join... no

checking for pthread_create/pthread_join in -lpthread... no

checking for pthread_create/pthread_join in -lpthread32... no

checking for pthread_create/pthread_join in -lpthreads... no

checking for pthread_create/pthread_join in -lthread... no

checking for pthread_create/pthread_join in -ldce... no

configure: error: I can't find the libraries for the thread implementation posix. Please choose another thread implementation or provide information on your thread implementation.You can also run 'configure --disable-threads'
to compile without thread support.
The above problem of sandboxing 'configure' is that it needs a lot of (POSIX standard) software, which won't be available on the embedded target environment. It has to be configured with thread support,so cant go for 'configure --disable-threads'
option..

But how to provide the above required libraries ?Could you please provide any clues how to tackle the problem?

Regards,
Meera
 
Old 03-04-2010, 10:26 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I'm no expert in these matters, but I see at least two possible missing elements in the chain. Does the target architecture support POSIX threads? If no, then you will either need to use some other platform than GTK, or rebuild the target to include it. Once that has been overcome, the build sandbox will need to include the development libraries and headers to create threaded applications, probably/possibly nptl. Search your sandbox for this; maybe it is already there, and you can describe to the GTK configurer how to find and use it.
--- rod.
 
Old 03-05-2010, 03:09 AM   #3
sunr2007
Member
 
Registered: Jan 2009
Location: Bangalore , India
Distribution: Fedora 12
Posts: 65

Rep: Reputation: 17
Hi Meera,
Im doing pretty much the same thing what u are trying to do! But im using buildroot . I have cross compiled GTK ,sqlite and tinyX also . Its all pretty neat in Buildroot there. BTW the board which u are using had a filesystem image built from buildroot . so please give it a try.
warm regards,
Ravi Kulkarni.
 
Old 03-09-2010, 06:28 AM   #4
ambitious
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by sunr2007 View Post
Hi Meera,
Im doing pretty much the same thing what u are trying to do! But im using buildroot . I have cross compiled GTK ,sqlite and tinyX also . Its all pretty neat in Buildroot there. BTW the board which u are using had a filesystem image built from buildroot . so please give it a try.
warm regards,
Ravi Kulkarni.
Hi Ravi,
I wanna to cross-compile the GTK+ for the ARM-linux because i'm designing a GUI program for Embedded System board using the WxWidget libraries
I installed the Scratchbox successfully but it is Gcc version is 3.5 and i wanna to compile my code for arm-linux and against gcc 4.3.2
I cant't update the gcc version of the scratchbox , so i can't compile the GTK+ ,
Could you tel me how i can cross compile the GTK+ and all dependencies for ARM
or if you cross-compiled this libs , could you send it to me

Thanks
M.Hamed
 
Old 03-10-2010, 12:52 AM   #5
sunr2007
Member
 
Registered: Jan 2009
Location: Bangalore , India
Distribution: Fedora 12
Posts: 65

Rep: Reputation: 17
please have a look at www.buildroot.uclibc.org Documentation. i cant sent it over to you coz your_toolchain +shared libs take roughly 3GB of your space and moreover u av not paid me . all i can do is help u in getting compiled.BTW which board u r using?
warm regards,
Ravi Kulkarni.
 
Old 03-10-2010, 02:45 AM   #6
ambitious
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by sunr2007 View Post
please have a look at www.buildroot.uclibc.org Documentation. i cant sent it over to you coz your_toolchain +shared libs take roughly 3GB of your space and moreover u av not paid me . all i can do is help u in getting compiled.BTW which board u r using?
warm regards,
Ravi Kulkarni.
Thanks for your reply
I will see the link.
regarding to my kit i use the minin2440 board

Thanks
m.Hamed
 
  


Reply



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
on crosscompilation yg pravi Linux - Newbie 1 06-02-2009 02:52 PM
need apt-get sources to use in slackware - scratchbox nass Slackware 2 06-08-2007 03:54 PM
gstreamer crosscompilation problem NeoMagic Linux - Software 0 03-26-2007 05:48 AM
Cross-Compiling using Scratchbox. Mejia Linux - Kernel 4 12-06-2006 11:14 AM
poptlibrary Crosscompilation for ARM11 m.harshavardhan Linux - Software 0 08-09-2006 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:16 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