Re: Building GTK+ on MIPS system




--- Chotu Atwork <chotu_at_work yahoo com> wrote:

> Hi,
>    
>   I am trying to build gtk+-2.10.4 on a MIPS uclinux platform running DirectFB instead of
> X-Windows. DirectFB is working on this platform. I have downloaded the latest sources and
> successfully built all the dependencies required by gtk+-2.10.4 (pango, cairo, atk, zlib,
> libpng, freefont and so on). The only thing left to do is to bulild GTK itself. 
>    
>   I have set CFLAGS, LD_LIBARARY_PATH and PKG_CONFIG_PATH correctly and then run the command
>    
>   sh configure --prefix=$PREFIX --with-gdktarget=directfb --without-x
>   make
>    
>   After about 45 minutes of compiling, make throws the errors listed below. Can anyone give me
> any pointers on how to resolve these errors?
>    
>   thanks in advance
>   Chotu
>    
>   -----------------------------------------------------
>    
>   gcc -DG_DISABLE_DEPRECATED -g -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o 
> ./.libs/libgtk-directfb-2.0.so /usr/gtkdfb/src/gtk+-2.10.4/gdk/.libs/libgdk-directfb-2.0.so
> -L/opt/SUNWsmr/build/dcchd/directfb/lib -L/opt/SUNWsmr/build/mrua/MRUA_src/lib
> /usr/lib/libatk-1.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so
> ../gdk/.libs/libgdk-directfb-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so
> /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so
> /usr/lib/libxml2.so /opt/SUNWsmr/build/dcchd/directfb/lib/libdirectfb.so
> /opt/SUNWsmr/build/dcchd/directfb/lib/libfusion.so
> /opt/SUNWsmr/build/dcchd/directfb/lib/libdirect.so -lpthread /usr/lib/libpng12.so -lz
> /usr/gtkdfb/src/gtk+-2.10.4/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /usr/lib/libgmodule-2.0.so
> -ldl /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/local/lib/libiconv.so -lm
> /usr/local/lib/libintl.so -lc -Wl,--rpath -Wl,/opt/SUNWsmr/build/dcchd/directfb/lib
>  -Wl,--rpath -Wl,/usr/local/lib
>    
>   ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_filter_func'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_get_id'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to
> `_gtk_socket_windowing_select_plug_window_input'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_plug_windowing_filter_func'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_plug_windowing_remove_grabbed_key'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_plug_windowing_set_focus'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to
> `_gtk_socket_windowing_send_configure_event'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_plug_windowing_get_id'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_plug_windowing_realize_toplevel'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_embed_notify'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_embed_get_info'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_plug_windowing_unmap_toplevel'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_update_active'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_plug_windowing_map_toplevel'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to
> `_gtk_socket_windowing_embed_get_focus_wrapped'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_focus'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to
> `_gtk_socket_windowing_end_embedding_toplevel'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to
> `_gtk_socket_windowing_embed_set_focus_wrapped'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_send_key_event'
> /usr/gtkdfb/src/gtk+-2.10.4/gdk/.libs/libgdk-directfb-2.0.so: undefined reference to
> `IA__gdk_colormap_change'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_realize_window'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_focus_change'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_plug_windowing_focus_to_parent'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_size_request'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_plug_windowing_add_grabbed_key'
> ./.libs/libgtk-directfb-2.0.so: undefined reference to `_gtk_socket_windowing_update_modality'
> collect2: ld returned 1 exit status
> 
> 
>  		
> ---------------------------------
>  All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.>
_______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 

I did some grepping and found this, for example:

build/gtk+-2.10.3/gtk/gtksocket-x11.c :

    150 _gtk_socket_windowing_focus_change (GtkSocket *socket,
    151                                     gboolean   focus_in)
    152 {
    153   if (focus_in)
    154     _gtk_xembed_send_focus_message (socket->plug_window,
    155                                     XEMBED_FOCUS_IN, XEMBED_FOCUS_CURRENT);
    156   else
    157     _gtk_xembed_send_message (socket->plug_window,
    158                               XEMBED_FOCUS_OUT, 0, 0, 0);
    159 }
.

I.e., apparently, you still need gtk+-2.10.3/gtk/gtksocket-x11.c file and related
headers.

I am not a GTK developer, just a builder, but not for MIPS, nor for framebuffer.

--Sergei.

Applications From Scratch: http://appsfromscratch.berlios.de/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]