gtkmm in buildroot toolchain
Hi,
I've some program written in c++ and gtkmm.
Which is the better way to compile them for my embedded system between:
1. Add (somehow) libgtkmm (and other needed libraries) in buildroot toolchain
2. Rewrite entirely my programs with gtk+ (and use always it in future)
3. Use another graphic library and rewrite all
PS: I need more documentation for buildroot, exist some good book or forum for rookie users?
Thanks,
Willy
Hello,
Le Fri, 27 Jan 2012 08:56:57 +0000 (UTC),
Willy <[email protected]> a ?crit :
Quoted 8 lines
I've some program written in c++ and gtkmm.
Which is the better way to compile them for my embedded system between:
1. Add (somehow) libgtkmm (and other needed libraries) in buildroot
toolchain 2. Rewrite entirely my programs with gtk+ (and use always it in future) 3. Use another graphic library and rewrite all
All options are possible of course, but option 1) is the one that will allow you to re-use your software as-is. We already have gtk+ support in Buildroot, and I don't think that gtkmm has many more dependencies outside of gtk+, so it should be relatively easy to integrate into Buildroot.
Quoted 2 lines
PS: I need more documentation for buildroot, exist some good book or forum for rookie users?
There is some documentation in the Buildroot sources, run 'make manual' to generate the documentation.
You can also read the documentation online at
http://buildroot.org/downloads/buildroot.html.
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 9 lines · Thomas Petazzoni
Quoted 2 lines
PS: I need more documentation for buildroot, exist some good book or forum for rookie users?
There is some documentation in the Buildroot sources, run 'make manual' to generate the documentation.
You can also read the documentation online at
http://buildroot.org/downloads/buildroot.html.
And if you find a conflict in the directions,
use that shown by your own 'make manual' command.
The doc updates get applied to those files before
they show up as changes in the web site.
Mike
Quoted 5 lines · Thomas Petazzoni
All options are possible of course, but option 1) is the one that will allow you to re-use your software as-is. We already have gtk+ support in Buildroot, and I don't think that gtkmm has many more dependencies outside of gtk+, so it should be relatively easy to integrate into Buildroot.
I've added gtkmm with the following .mk file (with no errors):
#####################################################LIBGTKMM_VERSION = 2.24.0LIBGTKMM_SOURCE = glibmm-$(LIBGTKMM_VERSION).tar.bz2 LIBGTKMM_INSTALL_STAGING = YESLIBGTKMM_CONF_OPT = --enable-shared LIBGTKMM_DEPENDENCIES = libglib2 host-pkg-config
$(eval $(call AUTOTARGETS))
#####################################################
the when I try to compile a gtkmm helloworld example I get this error:
#####################################################
Quoted 1 line
Quoted 1 line
Quoted 1 line
helloworldgtkmm 1.0 Building
/usr/bin/make -j4
CXX=/buildroot_folder/output/host/
usr/bin/i586-unknown-linux-uclibc-g++
LD=/buildroot_folder/output/host/usr/bin/
i586-unknown-linux-uclibc-ld -C/buildroot_folder/output/build/helloworldgtkmm-1.0 all make[1]: ingresso nella directory "/buildroot_folder/output/build/helloworldgtkmm-1.0" /buildroot_folder/output/host/usr/bin/i586-unknown-linux-uclibc-g++
helloworld.o
main.o -o helloworldgtkmm pkg-config gtkmm-2.4 --cflags --libs /buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc
/4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld:
cannot find -lgtkmm-2.4
/buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc
/4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld:
cannot find -latkmm-1.6
/buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc
/4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld:
cannot find -lgdkmm-2.4
/buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc
/4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld:
cannot find -lpangomm-1.4
/buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc
/4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld:
cannot find -lcairomm-1.0
/buildroot_folder/output/host/usr/i586-unknown-linux-uclibc/
sysroot/usr/lib/libglib-2.0.so:warning: the use of OBSOLESCENT utime' is discouraged, use utimes'
collect2: ld returned 1 exit status
make[1]: *** [helloworldgtkmm] Errore 1
#####################################################
Perhaps do I install those *mm library manually one by one?
Quoted 2 lines
There is some documentation in the Buildroot sources, run 'make manual' to generate the documentation.
Thanks,
Willy
Quoted 51 lines · Willy
Quoted 5 lines · Thomas Petazzoni
All options are possible of course, but option 1) is the one that will allow you to re-use your software as-is. We already have gtk+ support in Buildroot, and I don't think that gtkmm has many more dependencies outside of gtk+, so it should be relatively easy to integrate into Buildroot.
I've added gtkmm with the following .mk file (with no errors):
#####################################################LIBGTKMM_VERSION= 2.24.0LIBGTKMM_SOURCE= glibmm-$(LIBGTKMM_VERSION).tar.bz2LIBGTKMM_INSTALL_STAGING= YESLIBGTKMM_CONF_OPT= --enable-sharedLIBGTKMM_DEPENDENCIES= libglib2 host-pkg-config$(eval $(call AUTOTARGETS))
#####################################################the when I try to compile a gtkmm helloworld example I get this error:
#####################################################
Quoted 1 line
Quoted 1 line
Quoted 1 line
helloworldgtkmm 1.0 Building
/usr/bin/make-j4
CXX=/buildroot_folder/output/host/usr/bin/i586-unknown-linux-uclibc-g++ LD=/buildroot_folder/output/host/usr/bin/ i586-unknown-linux-uclibc-ld -C/buildroot_folder/output/build/helloworldgtkmm-1.0 all make[1]: ingresso nella directory "/buildroot_folder/output/build/helloworldgtkmm-1.0" /buildroot_folder/output/host/usr/bin/i586-unknown-linux-uclibc-g++
helloworld.o
main.o -o helloworldgtkmmpkg-config gtkmm-2.4 --cflags --libs/buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc/4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld: cannot find -lgtkmm-2.4 /buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc /4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld: cannot find -latkmm-1.6 /buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc /4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld: cannot find -lgdkmm-2.4 /buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc /4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld: cannot find -lpangomm-1.4 /buildroot_folder/output/host/usr/lib/gcc/i586-unknown-linux-uclibc /4.3.6/../../../../i586-unknown-linux-uclibc/bin/ld: cannot find -lcairomm-1.0 /buildroot_folder/output/host/usr/i586-unknown-linux-uclibc/ sysroot/usr/lib/libglib-2.0.so:
Quoted 7 lines
warning: the use of OBSOLESCENT
utime' is discouraged, useutimes'
collect2: ld returned 1 exit status
make[1]: *** [helloworldgtkmm] Errore 1
#####################################################Perhaps do I install those *mm library manually one by one?
That is one choice.
Might be worth the effort of writing another makefile for each, setting your dependencies in the gtkmm makefile to depend on them, then let Buildroot build the entire set.
Mike
Quoted 15 lines
Quoted 4 lines
There is some documentation in the Buildroot sources, run 'make manual' to generate the documentation.
Thanks,
Willy_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Quoted 8 lines · Michael S. Zick
Quoted 2 lines
Perhaps do I install those *mm library manually one by one?
That is one choice.
Might be worth the effort of writing another makefile for each, setting your dependencies in the gtkmm makefile to depend on them, then let Buildroot build the entire set.
That's too much complicated for me :(
Maybe this time I will install the libraries one by one, then when I will be more confident with the use of Makefiles I will try the other way.
Thanks a lot,
Willy
Le Fri, 27 Jan 2012 14:38:23 +0000 (UTC),
Willy <[email protected]> a ?crit :
Quoted 5 lines
Quoted 3 lines
Might be worth the effort of writing another makefile for each, setting your dependencies in the gtkmm makefile to depend on them, then let Buildroot build the entire set.
That's too much complicated for me :(
I don't think it's that complicated. You simply need to create one simple .mk file as you did for glibmm, for each of gtkmm, atkmm, pangomm and cairomm. That should be sufficient.
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com