Hello!

I'm working on a company that's building a mips box. We want to use
directfb as the grafic layer, also as a replacement for X for our tiny
GUI.
I'm currently trying to compile directfb 1.5.1 ( and 1.5.2) on a mips platform.
I got a qemu mipsel, with a debian squeeze (gcc 4.4)  inside, but when
I try to compile directfb 1.5.2 I got the following error:
(Note i'm not cross compiling, i'm using "native" mipsel compiler)


 make[2]: Entering directory `/root/DirectFB-1.5.2/src'
Making all in core
make[3]: Entering directory `/root/DirectFB-1.5.2/src/core'
/bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../.. -I../../include -I../../lib -I../../include -I../../lib
-I../../src -DDATADIR=\"/usr/local/share/directfb-1.5.2\"
-DSOPATH=\"/usr/local/lib/libdirectfb-1.5.so.0\"
-DMODULEDIR=\"/usr/local/lib/directfb-1.5-0\" "-DBUILDTIME=\"`date -u
"+%Y-%m-%d %H:%M"`\"" -D_REENTRANT   -Wall -Wno-strict-aliasing -g -O2
-O2 -g2 -ffast-math -pipe  -D_GNU_SOURCE  -MT CoreDFB.lo -MD -MP -MF
.deps/CoreDFB.Tpo -c -o CoreDFB.lo CoreDFB.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include
-I../../lib -I../../include -I../../lib -I../../src
-DDATADIR=\"/usr/local/share/directfb-1.5.2\"
-DSOPATH=\"/usr/local/lib/libdirectfb-1.5.so.0\"
-DMODULEDIR=\"/usr/local/lib/directfb-1.5-0\"
"-DBUILDTIME=\"2011-08-01 18:29\"" -D_REENTRANT -Wall
-Wno-strict-aliasing -g -O2 -O2 -g2 -ffast-math -pipe -D_GNU_SOURCE
-MT CoreDFB.lo -MD -MP -MF .deps/CoreDFB.Tpo -c CoreDFB.cpp  -fPIC
-DPIC -o .libs/CoreDFB.o
In file included from ../../src/core/state.h:36,
                 from ../../src/core/graphics_state.h:36,
                 from CoreDFB_includes.h:16,
                 from CoreDFB.h:32,
                 from CoreDFB.cpp:31:
../../lib/direct/serial.h: In function ‘void
direct_serial_init_from_counting(DirectSerial*, DirectSerial*)’:
../../lib/direct/serial.h:112: error: invalid conversion from ‘void*’
to ‘volatile int*’
../../lib/direct/serial.h:112: error:   initializing argument 2 of
‘int _D__atomic_add_return(int, volatile int*)’
make[3]: *** [CoreDFB.lo] Error 1
make[3]: Leaving directory `/root/DirectFB-1.5.2/src/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/DirectFB-1.5.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Dirapt-get update


Also I got a similar error when compiling version 1.5.1.
The same code works perfectly on an i386 / amd64 platform.

May the problem could be gcc mips version? is a 4.4

Could you help me please?

thanks!
alberich
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to