On Monday 22 March 2004 7:47 pm, Sven Arnold wrote:
> > I don't suppose I could see the error log?  Haven't been able to
> > guess what has happened thus far, but I suspect the eventual answer
> > will be 'carefully chose the order of the header files'.
>
> I don't have the output at hand right now, but I'm sure it's the same
> as in this snippet from an earlier post on directfb-users:
>
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg02099.html

Well in that case it is definately include order

include directfb headers first, before any Qt headers.

if you need to use either struct in mythtv code, you will need to #undef 
signals first.  That should work.  Or you can try including the qt ones 
first, but #undef signals before including the directfb ones.  this might 
mean some extra forward declarations, I haven't actually looked at the mythtv 
code yet.

basically its the macro used to get the C++ past the signal slots declarations 
thats throwing the directfb code off course.  undef the macros, directfb will 
be fine. just need to do it in a way that still leaves the ability to use 
signals and slots :)

--
Ian.

>
> ---8<---
>
> make[2]: Entering directory
> `/home/veehoo/src/mythtv/cvs/mythtv/libs/libmythtv'
> g++ -c -pipe -DQWS -fno-exceptions `directfb-config --cflags` -O3
> -march=pentiumpro -fomit-frame-pointer `freetype-config --cflags`
> -D_REENTRANT -fPIC  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
> -DPREFIX=\"/usr/local/mythtv-qte\" -DMMX -DUSING_IVTV -DUSING_DVB
> -DUSING_XV -DUSING_DIRECTFB -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> -DQT_SHARED
> -I/usr/local/qt-embedded/mkspecs/default -I.
> -I/usr/local/mythtv-qte/include -I/usr/include -I../libmyth -I..
> -Idvbdev
> -I../libavcodec -I/usr/local/qt-embedded/include -o videooutbase.o
> videooutbase.cpp
> In file included from videoout_directfb.h:11,
>                  from videooutbase.cpp:27:
> /usr/local/include/directfb/directfb.h:1881: error: declaration does
> not
>    declare anything
> /usr/local/include/directfb/directfb.h:1881: error: parse error before
> `
>    protected'
> /usr/local/include/directfb/directfb.h:1904: error: declaration does
> not
>    declare anything
> /usr/local/include/directfb/directfb.h:1904: error: parse error before
> `
>    protected'
> make[2]: *** [videooutbase.o] Error 1
> make[2]: Leaving directory
> `/home/veehoo/src/mythtv/cvs/mythtv/libs/libmythtv
>
> --->8---
>
>
> -Sven



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

Reply via email to