Hi,

I have specified the cross compiler to my mips compiler and configure as the following:
Configure -target=mipsel-unknown-linux-gnu \
               --prefix=/"mips directory" \
               --enable-jpg=yes \
                  -enable-png=yes \
               -enable-freetype=yes \
               -enable-gif=no \
               -enable-avifile=no \
              -enable-mmx=no \
             -enable-flash=no \
             --enable-static=yes

But I got the following errors:

rm -f .libs/util.lo
mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src 
-D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g -DFUSION_FAKE -c util.c  -fPIC -DPIC -o 
.libs/util.lo
mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src 
-D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g -DFUSION_FAKE -c util.c -o util.o 
>/dev/null 2>&1
mv -f .libs/util.lo util.lo
/bin/sh ../../libtool --mode=link mips_fp_le-gcc -D_REENTRANT -g -O2 -ffast-math -Wall 
-O3 -g  -DFUSION_FAKE   -o libdirectfb_gfx.la   clip.lo convert.lo util.lo 
generic/libdirectfb_generic.la -ldl -lpthread
rm -fr .libs/libdirectfb_gfx.la .libs/libdirectfb_gfx.* .libs/libdirectfb_gfx.*
rm -fr .libs/libdirectfb_gfx.lax
mkdir .libs/libdirectfb_gfx.lax
rm -fr .libs/libdirectfb_gfx.lax/libdirectfb_generic.al
mkdir .libs/libdirectfb_gfx.lax/libdirectfb_generic.al
(cd .libs/libdirectfb_gfx.lax/libdirectfb_generic.al && ar x 
/usr/download/DirectFB-0.9.16/src/gfx/generic/.libs/libdirectfb_generic.al)
ar cru .libs/libdirectfb_gfx.al clip.lo convert.lo util.lo 
.libs/libdirectfb_gfx.lax/libdirectfb_generic.al/generic.lo
ranlib .libs/libdirectfb_gfx.al
rm -fr .libs/libdirectfb_gfx.lax
creating libdirectfb_gfx.la
(cd .libs && rm -f libdirectfb_gfx.la && ln -s ../libdirectfb_gfx.la 
libdirectfb_gfx.la)
make[4]: Leaving directory `/usr/download/DirectFB-0.9.16/src/gfx'
make[3]: Leaving directory `/usr/download/DirectFB-0.9.16/src/gfx'
make[3]: Entering directory `/usr/download/DirectFB-0.9.16/src'
/bin/sh ../libtool --mode=compile mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I../include -I../include             -I../src 
-DDATADIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//share/directfb-0.9.16\"
           
-DMODULEDIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib/directfb-0.9.16\"
  -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g  -DFUSION_FAKE  -c directfb.c
mkdir .libs
mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../src 
-DDATADIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//share/directfb-0.9.16\"
 
-DMODULEDIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib/directfb-0.9.16\"
 -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g -DFUSION_FAKE -c directfb.c  -fPIC -DPIC 
-o .libs/directfb.lo
mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../src 
-DDATADIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//share/directfb-0.9.16\"
 
-DMODULEDIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib/directfb-0.9.16\"
 -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g -DFUSION_FAKE -c directfb.c -o 
directfb.o >/dev/null 2>&1
mv -f .libs/directfb.lo directfb.lo
/bin/sh ../libtool --mode=compile mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I../include -I../include             -I../src 
-DDATADIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//share/directfb-0.9.16\"
           
-DMODULEDIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib/directfb-0.9.16\"
  -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g  -DFUSION_FAKE  -c idirectfb.c
rm -f .libs/idirectfb.lo
mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../src 
-DDATADIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//share/directfb-0.9.16\"
 
-DMODULEDIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib/directfb-0.9.16\"
 -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g -DFUSION_FAKE -c idirectfb.c  -fPIC 
-DPIC -o .libs/idirectfb.lo
mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../src 
-DDATADIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//share/directfb-0.9.16\"
 
-DMODULEDIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib/directfb-0.9.16\"
 -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g -DFUSION_FAKE -c idirectfb.c -o 
idirectfb.o >/dev/null 2>&1
mv -f .libs/idirectfb.lo idirectfb.lo
/bin/sh ../libtool --mode=compile mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I../include -I../include             -I../src 
-DDATADIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//share/directfb-0.9.16\"
           
-DMODULEDIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib/directfb-0.9.16\"
  -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g  -DFUSION_FAKE  -c interface.c
rm -f .libs/interface.lo
mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../src 
-DDATADIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//share/directfb-0.9.16\"
 
-DMODULEDIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib/directfb-0.9.16\"
 -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g -DFUSION_FAKE -c interface.c  -fPIC 
-DPIC -o .libs/interface.lo
mips_fp_le-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../src 
-DDATADIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//share/directfb-0.9.16\"
 
-DMODULEDIR=\"/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib/directfb-0.9.16\"
 -D_REENTRANT -g -O2 -ffast-math -Wall -O3 -g -DFUSION_FAKE -c interface.c -o 
interface.o >/dev/null 2>&1
mv -f .libs/interface.lo interface.lo
/bin/sh ../libtool --mode=link mips_fp_le-gcc -D_REENTRANT -g -O2 -ffast-math -Wall 
-O3 -g  -DFUSION_FAKE   -o libdirectfb.la -rpath 
/opt/hardhat/devkit/mips/fp_le/mipsel-hardhat-linux//lib -version-info 16:0:0          
    -release 0.9                                        directfb.lo idirectfb.lo 
interface.lo display/libdirectfb_display.la            media/libdirectfb_media.la      
    windows/libdirectfb_windows.la          input/libdirectfb_input.la 
misc/libdirectfb_misc.la         gfx/libdirectfb_gfx.la                  
core/libdirectfb_core.la -ldl -lpthread
rm -fr .libs/libdirectfb.la .libs/libdirectfb.* .libs/libdirectfb-0.9.*
mips_fp_le-gcc -shared  directfb.lo idirectfb.lo interface.lo -Wl,--whole-archive 
display/.libs/libdirectfb_display.al media/.libs/libdirectfb_media.al 
windows/.libs/libdirectfb_windows.al input/.libs/libdirectfb_input.al 
misc/.libs/libdirectfb_misc.al gfx/.libs/libdirectfb_gfx.al 
core/.libs/libdirectfb_core.al -Wl,--no-whole-archive  -L/usr/X11R6/lib -L/usr/lib 
/usr/lib/libSDL.so -lm -lX11 -lXext -lXxf86vm -lXxf86dga -lXv -lXinerama -ldl 
-lpthread  -Wl,-soname -Wl,libdirectfb-0.9.so.16 -o .libs/libdirectfb-0.9.so.16.0.0
/usr/lib/libSDL.so: file not recognized: File format not recognized
make[3]: *** [libdirectfb.la] Error 1
make[3]: Leaving directory `/usr/download/DirectFB-0.9.16/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/download/DirectFB-0.9.16/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/download/DirectFB-0.9.16'
make: *** [all-recursive-am] Error 2

How do I resolve this problem? Why do I have to link with the libSDL.so ans the 
X11.... Libraries? I don't have those x library on my mips platform, do I have to link 
with those library?

Thanks in advance!

Teresa


        -----Original Message-----
        From:   Denis Oliver Kropp [mailto:[EMAIL PROTECTED]
        Sent:   Friday, February 28, 2003 8:35 AM
        To:     Teresa Tao
        Cc:     [EMAIL PROTECTED]
        Subject:        Re: [directfb-users] mips port

        Quoting Teresa Tao ([EMAIL PROTECTED]):
        > Hi there,
        > 
        > Has anyone build the DirectFB under the Mips platform and actually run a 
directfb application? Could you instruct how to make the DirectFB library under the 
mips? Where to define the cross-compiler......?

        You have to export the environment variables CC and LD, e.g.

        export CC=mips-linux-gcc
        export LD=mips-linux-ld

        After that you just need to run configure or autogen.sh, but make
        sure that there is no config.cache, otherwise it might not use
        the new compiler.

        -- 
        Best regards,
          Denis Oliver Kropp

        .------------------------------------------.
        | DirectFB - Hardware accelerated graphics |
        | http://www.directfb.org/                 |
        "------------------------------------------"

                                    Convergence GmbH


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

Reply via email to