On Monday 03 May 2004 12:40, Marcel Siegert wrote:
> Hi, 
> 
> at first a question regarding that libfusion stuff:
> 
> Am i able to build DFB++ without having a libfusion? I think this
> became a hard dependency within the last commits.

Ok this one has been fixed. The problem is described like this:
BUILDENV := \
        AR=$(target)-ar \
        AS=$(target)-as \
        CC=$(target)-gcc \
        CXX=$(target)-g++ \
        NM=$(target)-nm \
        RANLIB=$(target)-ranlib \
        CFLAGS="$(TARGET_CFLAGS)" \
        CXXFLAGS="$(TARGET_CFLAGS)" \
        LDFLAGS="$(TARGET_LDFLAGS)" \
        PKG_CONFIG_PATH=$(targetprefix)/lib/pkgconfig
where 
target = powerpc-tuxbox-linux-gnu
TARGET_CFLAGS = -mcpu=823 -mmultiple -mstring -meabi -pipe -O2 -g3 -gdwarf-2
TARGET_CXXFLAGS = -mcpu=823 -mmultiple -mstring -meabi -pipe -O2 -g3 -gdwarf-2
TARGET_LDFLAGS =
targetprefix = /dbox/cdkroot

if you do a configure for DirectFB like 

       cd DirectFB && \
                $(BUILDENV) \
                LDFLAGS=-L$(targetprefix)/lib \
                CPPFLAGS="-I$(buildprefix)/linux/arch/ppc" \
                CFLAGS="$(TARGET_CFLAGS) -I$(buildprefix)/linux/arch/ppc" \
                ./autogen.sh \
                        --build=$(build) \
                        --host=$(target) \
                        --prefix= \
                        --enable-linux-input \
                        --disable-sdl \
                        --with-gfxdrivers=none && \
                $(MAKE) all &&
             perl -pi -e "s,^prefix=.*$$,prefix=$(targetprefix)," directfb.pc && perl 
-pi -e "s,^prefix=.*$$,prefix=$(targetprefix)," directfb-internal.pc && $(MAKE) 
install DESTD
        rm -rf DirectFB

you get an output generated in a)  /dbox/cdkroot/lib/libdirectfb.la and  b) 
/dbox/cdkroot/lib/libfusion.la 

a)
# Libraries that this one depends upon.
dependency_libs=' -L/dbox/cdkroot/lib /dbox/cdkroot/lib/libfusion.la /lib/libdirect.la 
-lz -ldl -lpthread'

b)
# Libraries that this one depends upon.
dependency_libs=' -L/dbox/cdkroot/lib /lib/libdirect.la -lz -ldl -lpthread'

that should look like
a)
# Libraries that this one depends upon.
dependency_libs=' -L/dbox/cdkroot/lib /dbox/cdkroot/lib/libfusion.la 
/dbox/cdkroot/lib/libdirect.la -lz -ldl -lpthread'

b)
# Libraries that this one depends upon.
dependency_libs=' -L/dbox/cdkroot/lib /dbox/cdkroot/lib/libdirect.la -lz -ldl 
-lpthread'

my solution has been for the moment ( and it is linked ok then )

        mv $(targetprefix)/lib/libdirectfb.la $(targetprefix)/lib/libdirectfb.la.old
        mv $(targetprefix)/lib/libfusion.la $(targetprefix)/lib/libfusion.la.old
        sed -e "s, /lib, $(targetprefix)/lib,g" < 
$(targetprefix)/lib/libdirectfb.la.old >$(targetprefix)/lib/libdirectfb.la
        sed -e "s, /lib, $(targetprefix)/lib,g" < $(targetprefix)/lib/libfusion.la.old 
>$(targetprefix)/lib/libfusion.la
        rm -f $(targetprefix)/lib/libdirectfb.la.old
        rm -f $(targetprefix)/lib/libfusion.la.old

this changes the entries in those .la files to point to the right direction.

as i am crosscompiling lots of other things on the tuxbox cdk and every library is 
builded in a correct way, 
i think you have got some trouble with your automake / conf usage if your application 
DirectFB is crosscompiled for another platform.

As i am definitly not a (Magic) autoconf/make Guru my workaround works - but not in a 
REAL FIX way. 

Would be lucky if these things could be fixed in cvs with you macros for automake/conf

if you need more input - e.g. compiler output whatever leave me a note. 
thanks
mws



=========================
next is still to investigate but seems to be happening only with libsdl - more to come
> On the other side i have some troubles with having directfb using libsdl cvs
> 
> 
> (*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (convergence integrated media 
> GmbH)
> (-) [12380:    0.184] DirectFB/CoreParts: Going to initialize 'screens' core...
> (-) [12380:    0.184] DirectFB/CoreParts: Going to initialize 'layers' core...
> (-) [12380:    0.184] DirectFB/Core: Core successfully created.
> (-) [12380:    0.185] DirectFB/core/layers: dfb_layer_get_primary_context (SDL 
> Primary Layer, activate) <- active: -1
> (-) [12380:    0.185] DirectFB/core/layers: dfb_layer_create_context (SDL Primary 
> Layer)
> (-) [12380:    0.185] Fusion/ObjectPool: {Layer Context Pool} added 0x808c2d8
> (-) [12380:    0.185] DirectFB/core/layers: dfb_layer_context_create -> 0x808c2d8
>  (!!!)  *** WARNING [no video mode set yet] *** [layers.c:536 in 
> dfb_screen_rectangle()]
> (-) [12380:    0.185] DirectFB/core/layers: dfb_layer_activate_context (SDL Primary 
> Layer, 0x808c2d8)
> (-) [12380:    0.185] DirectFB/core/layers: dfb_layer_context_activate (0x808c2d8)
> (-) [12380:    0.185] DirectFB/core/layers: dfb_layer_get_primary_context (SDL 
> Primary Layer, activate) <- active: 0
> (-) [12380:    0.185] Fusion/ObjectPool: {Layer Context Pool} dead object: 0x808c2d8
> (-) [12380:    0.185] DirectFB/core/layers: destroying context 0x808c2d8 (SDL 
> Primary Layer, active)
> (-) [12380:    0.185] DirectFB/core/layers: dfb_layer_remove_context (SDL Primary 
> Layer, 0x808c2d8)
> (-) [12380:    0.185] DirectFB/core/layers: dfb_layer_context_deactivate (0x808c2d8)
> (-) [12380:    0.186] DirectFB/Core: dfb_core_destroy...
> (-) [12380:    0.186] DirectFB/Core: Shutting down...
> (-) [12380:    0.186] DirectFB/CoreParts: Going to shutdown 'layers' core...
> 
> cat /etc/directfbrc
> system=sdl
> force-windowed
> mode=720x576
> pixelformat=RGB16
> 
> this did not happen before all changes which appeared in the cvs on thursday imho - 
> more to investigate
> 
> thx for your help
> 
> cu
> mws
> 
> 


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to