GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Dec 18, 2014 4:02 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: GTK+ for Embedded Linux using Linux framebuffer
PostPosted: Wed Jan 23, 2013 5:56 pm 
Offline
Familiar Face

Joined: Wed Jan 23, 2013 5:18 pm
Posts: 26
Hi,

I have walk over several web links related to building/compiling GTK+
I am looking for a help document which is really helps to configure and compile GTK+ for cross platform
For example I am trying to compile GTK+ for powerpc platform and I found that there are so many difficulties to compile the GTK+
The help documents in each dependency packages are does not have sufficient information to cross compile the packages.
And nowhere in internet that I can find a help to cross compile GTK+
Actually Iam looking for a help to configure and compile the GTK+ with Linux frame buffer for powerpc platform.
Can anyone share their experience of building GTK+ for embedded Linux?
Thanks for your valuable responce

_________________
Thanks,
Arief.
None of us is stronger than all of us


Top
 Profile  
 
 Post subject: Re: GTK+ for Embedded Linux using Linux framebuffer
PostPosted: Wed Jan 23, 2013 8:02 pm 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 798
Location: UK
Hi,

Support for the frame buffer back end has now been dropped in GTK+ v3 and was poorly supported in GTK+ v2. It seamed that no one had the time to keep up with maintaining the support for it. If you can use the X11 back end then that would be easier for you. If you really have to use the frame buffer back end then another tool kit may be better for you.

_________________
E.


Top
 Profile  
 
 Post subject: Re: GTK+ for Embedded Linux using Linux framebuffer
PostPosted: Wed Jan 23, 2013 8:26 pm 
Offline
Familiar Face

Joined: Wed Jan 23, 2013 5:18 pm
Posts: 26
Hi, Thanks for your advice.

I am ok with using X11 but I am worried about the performance and size, not sure it will fit in my target (power pc)
Is that GTK+ with X11 will work fine with small devices like powerpc linux?
Is X11 is available for embedded Linux kind of system?
Can you please point me any link or document which help me to get some more information about GTK+ with x11 backend for embedded linux.

_________________
Thanks,
Arief.
None of us is stronger than all of us


Top
 Profile  
 
 Post subject: Re: GTK+ for Embedded Linux using Linux framebuffer
PostPosted: Wed Jan 23, 2013 11:33 pm 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
That will depend very strongly on what kind of powerpc chip you have, and what your memory footprint limit is. There is a wide range of embedded capabilities and definitely no blanket answer.
X11 is already used in a number of embedded projects, mostly targeting the mobile market (e.g.Maemo, OpenMoko). They claim to not have that much more overhead than Frame Buffer, but more to watch out that any drivers have x11 support rather than just Frame Buffer.
I have an ARMv6 (processor for a raspberry pi) and run GTK with an x11 backend on it and it runs brilliantly. I think you'd likely be fine.
What flavour of linux were you thinking of basing it around? gentoo? Is it a 64bit chip?


Top
 Profile  
 
 Post subject: Re: GTK+ for Embedded Linux using Linux framebuffer
PostPosted: Fri Jan 25, 2013 6:20 pm 
Offline
Familiar Face

Joined: Wed Jan 23, 2013 5:18 pm
Posts: 26
I started building GTK+ with direct framebuffer by refering
http://directfb.org/wiki/index.php/Proj ... ed_Systems

While compiling pango i am getting the following error

Code:
/home/power/js2toolchain/gcc-4.6.1-eglibc-2.14/powerpc-linux-gnu/lib/gcc/powerpc-linux-gnu/4.6.1/../../../../powerpc-linux-gnu/bin/ld: warning: libxml2.so.2, needed by /opt/gtkdfb/usr/local/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlSAX2GetLineNumber'
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlCtxtGetLastError'
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlFreeParserCtxt'
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlParseChunk'
/opt/gtkdfb/usr/local/lib/libfontconfig.so: undefined reference to `xmlCreatePushParserCtxt'
collect2: ld returned 1 exit status
gmake[4]: *** [harfbuzz-dump] Error 1
gmake[4]: Leaving directory `/home/power/arief/pango-1.20.0/pango/opentype'
gmake[3]: *** [all-recursive] Error 1


Tried hard by referring so many forums but nothing worked
Help needed.

_________________
Thanks,
Arief.
None of us is stronger than all of us


Top
 Profile  
 
 Post subject: Re: GTK+ for Embedded Linux using Linux framebuffer
PostPosted: Sat Jan 26, 2013 8:17 pm 
Offline
Familiar Face

Joined: Wed Jan 23, 2013 5:18 pm
Posts: 26
I added "-lfontconfig" in CFLAGS linker line in /pango-1.20.0/pango/opentype/Makefile.
Now make moved to next step with some other error.

_________________
Thanks,
Arief.
None of us is stronger than all of us


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group