[mythtv] Changes needed for Compilation on Cygwin
Robert Johnston
anaerin at gmail.com
Wed Mar 22 15:24:02 UTC 2006
On 3/21/06, Ross Campbell <ross.campbell at gmail.com> wrote:
> On 3/21/06, Robert Johnston <anaerin at gmail.com> wrote:
> > Enabling DirectX within configure breaks when Myth tries to compile
> > AudioOutputdx.cpp. Looking into this one, it seems that Cygwin doesn't
> > have the required headers for DirectX. I'll see what I can do on this
> > one and get back to y'all.
>
> Maybe this will help:
> http://www.cygwin.com/ml/cygwin-apps/2004-12/msg00048.html
Thanks. That did indeed help... But not very much at all, really...
Here's the error message I'm getting (now)
g++ -c -pipe -march=pentiumpro -Wall -W -O3 -Wall -Wno-switch
-fomit-frame-pointer -D_REENTRANT -DPIC -fPIC -D_WIN32 -DMMX -Di386
-DUSING_DIRECTX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DPREFIX=\"/usr/local\" -DLIBDIR=\"/usr/local/lib\" -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/cygwin-g++ -I.
-I/usr/local/include -I../libmythsamplerate -I../libmythsoundtouch
-I../.. -I.. -I../../../include/qt3 -o audiooutput.o audiooutput.cpp
audiooutput.cpp:0: warning: -fPIC ignored for target (all code is
position independent)
audiooutput.cpp:1: warning: -fPIC ignored for target (all code is
position independent)
In file included from audiooutputnull.h:7,
from audiooutput.cpp:9:
audiooutputbase.h:146: error: field `audiotime_updated' has incomplete type
In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:48,
from audiooutputdx.h:10,
from audiooutput.cpp:11:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h:227:
error: conflicting declaration 'typedef WINBOOL BOOL'
../libmythsoundtouch/STTypes.h:48: error: 'BOOL' has a previous
declaration as `typedef unsigned int BOOL'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h:227:
error: declaration of `typedef WINBOOL BOOL'
../libmythsoundtouch/STTypes.h:48: error: conflicts with previous
declaration `typedef unsigned int BOOL'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h:227:
error: declaration of `typedef WINBOOL BOOL'
../libmythsoundtouch/STTypes.h:48: error: conflicts with previous
declaration `typedef unsigned int BOOL'
In file included from audiooutput.cpp:11:
audiooutputdx.h:46: error: `LPDIRECTSOUND' does not name a type
audiooutputdx.h:47: error: `LPDIRECTSOUNDBUFFER' does not name a type
audiooutputdx.h:50: error: `LPDIRECTSOUNDNOTIFY' does not name a type
audiooutputdx.h:51: error: `DSBPOSITIONNOTIFY' does not name a type
audiooutput.cpp: In static member function `static AudioOutput*
AudioOutput::OpenAudio(QString, int, int, int, AudioOutputSource,
bool, bool)':
audiooutput.cpp:80: error: cannot allocate an object of type `AudioOutputDX'
audiooutput.cpp:80: error: because the following virtual functions
are abstract:
audiooutputbase.h:66: error: virtual bool AudioOutputBase::OpenDevice()
audiooutputbase.h:67: error: virtual void AudioOutputBase::CloseDevice()
audiooutputbase.h:68: error: virtual void
AudioOutputBase::WriteAudio(unsignedchar*, int)
audiooutputbase.h:69: error: virtual int AudioOutputBase::getSpaceOnSoundcard()
audiooutputbase.h:70: error: virtual int
AudioOutputBase::getBufferedOnSoundcard()
make[2]: *** [audiooutput.o] Error 1
make[2]: Leaving directory `/usr/mythtv/libs/libmyth'
make[1]: *** [sub-libmyth] Error 2
make[1]: Leaving directory `/usr/mythtv/libs'
make: *** [sub-libs] Error 2
--
Robert "Anaerin" Johnston
More information about the mythtv-dev
mailing list