undefined reference to `gdk_keymap_add_virtual_modifiers'
- From: IMS <ims77 dev gmail com>
- To: gtk-list gnome org, directfb-users directfb org
- Subject: undefined reference to `gdk_keymap_add_virtual_modifiers'
- Date: Wed, 24 Mar 2010 17:21:05 +0100
Hi,
I'm trying to compile my application for an embedded system using the last version of gtk (2.20.0) and direct-fb 1.4.3
I have a problem to compile with "gdk_keymap_add_virtual_modifiers" so I made a search and found a patch here :
https://bugzilla.gnome.org/show_bug.cgi?id=605185
But I still have a problem and don't know why ?
Follow some informations, thanks for any help !
One more info, I had no problems to compile with gtk 2.16.6 (but need to update the version to correct some bugs)
The error message : libtool: link: gcc -DDIRECTFB_MAJOR_VERSION=1 -o .libs/gtk-query-immodules-2.0 queryimmodules.o -pthread /home/m/ltib/rootfs/usr/lib/libpixman-1.so /home/m/ltib/rootfs/usr/lib/libcairo.so /home/m/ltib/rootfs/usr/lib/libfontconfig.so ./.libs/libgtk-directfb-2.0.so -L/home/m/ltib/rootfs/usr/lib /home/m/ltib/rpm/BUILD/gtk+-2.20.0/gdk/.libs/libgdk-directfb-2.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-directfb-2.0.so -ldirectfb -lfusion -ldirect -lpthread /home/m/ltib/rpm/BUILD/gtk+-2.20.0/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lm -pthread
./.libs/libgtk-directfb-2.0.so: undefined reference to `gdk_keymap_add_virtual_modifiers'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
My .spec needed to compile with ltib : %define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : The GIMP ToolKit (GTK+), a library for creating GUIs
Name : gtk2
Version : 2.20.0
Source : gtk+-%{version}.tar.bz2
Patch1 : gtk2-2.20.0-gdk_keymap_map_virtual_modifiers.patch
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
%Description
%{summary}
%Prep
%setup -n gtk+-%{version}
%patch1 -p1
%Build
gio_can_sniff=no \
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
--with-gdktarget=directfb --without-x -C --disable-static --without-libjasper --enable-debug=yes \
NM="arm-none-linux-gnueabi-nm" \
LIBS="$DEV_IMAGE/usr/lib/libpixman-1.so $DEV_IMAGE/usr/lib/libcairo.so $DEV_IMAGE/usr/lib/libfontconfig.so"
perl -pi -e 's,^sys_lib_search_path_spec=.*,sys_lib_search_path_spec=,' libtool
#make CFLAGS="-DG_GNUC_FUNCTION=G_STRLOC"
make CFLAGS="-DDIRECTFB_MAJOR_VERSION=1"
%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
find $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/ -name "*.la" | xargs rm -f
find $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/ -name "*.a" | xargs rm -f
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/bin/gtk*
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/bin/gdk-pixbuf-csource
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/share
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/printbackends
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/immodules
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-ani.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-bmp.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-ico.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-jpeg.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-pcx.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-pnm.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-ras.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-tga.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-tiff.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-wbmp.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-xbmp.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-xbm.so
rm -rf $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/gtk-2.0/*/loaders/libpixbufloader-xpm.so
%Clean
rm -rf $RPM_BUILD_ROOT
%Files
%defattr(-,root,root)
%{pfx}/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]