Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Cross compiling GTK+ apps using OE cross compiler
PostPosted: Tue Sep 09, 2008 10:20 am 
Offline

Joined: Thu Feb 28, 2008 5:37 am
Posts: 65
Hello,

I am trying to cross compile simple gtk+ apps for my AT91sam9263EK board running angstrom linux(2.6.25) using arm-angstrom-linux-gnueabi-gcc toolchain.
The gtk+ include and lib directories are already installed in the staging
directory.

but when I compile the program as
Quote:
[deven@tux widgets]$ ~/OE/tmp/cross/bin/arm-angstrom-linux-gnueabi-gcc -o hellogtk hellogtk.c $(/home/OE/tmp/staging/i686-linux/bin/pkg-config gtk+-2.0 --cflags) $(/home/OE/tmp/staging/i686-linux/bin/pkg-config gtk+-2.0 --libs)


I get following errors:
Quote:
/home/OE/tmp/cross/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: warning: libXfixes.so.3, needed by /home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/OE/tmp/cross/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: warning: libgcrypt.so.11, needed by /home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
...
...
...
/home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libgdk-x11-2.0.so: undefined reference to `XShapeQueryVersion'
/home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libpng12.so: undefined reference to `inflateReset'
/home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libX11.so: undefined reference to `xcb_connection_has_error'
/home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libX11.so: undefined reference to `xcb_xlib_lock'
...
...
collect2: ld returned 1 exit status


I had set the PKG_CONFIG_PATH appropriatly but the error is comming.
Now I am really stuck I searched a lot on the net for linking the appropriate libraries but there is not much help.

Thanks and Regards
Devendra


Top
 Profile  
 
 Post subject: Re: Cross compiling GTK+ apps using OE cross compiler
PostPosted: Tue Sep 09, 2008 1:20 pm 
Offline

Joined: Sun Sep 02, 2007 1:39 pm
Posts: 77
dev wrote:
Hello,

I am trying to cross compile simple gtk+ apps for my AT91sam9263EK board running angstrom linux(2.6.25) using arm-angstrom-linux-gnueabi-gcc toolchain.
The gtk+ include and lib directories are already installed in the staging
directory.



Perhaps, it's much easier to use the bitbake scripts to get your stuff compiled.

Create a tgz archive, containing your code, automake files etc, add your own bitbake script to the recipies and your all set! Bitbake et al will take care of selecting the proper libraries and compilers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: