[mythtv] multiple small win32 compile issues on HEAD...

Mark Spieth mark at digivation.com.au
Tue Feb 12 12:05:38 UTC 2008


>
>First issue:
>freesurround.h seems to need this at the start, because 'uint' is not 
>defined otherwise:
>#ifdef _WIN32
>typedef unsigned int uint;
>#endif

instead or perhaps as part of compat

#include "compat.h"

>
>
>Second issue:
>part of changeset [15893] doesn't work.  Reverting just the small changes 
>that were made to >audiooutputdx.h/audiooutputdx.cpp seems to fix it for me 
>(these files are win32 specific, and deprecated >anyway).
>
>relevant compile output:
>In file included from audiooutput.cpp:13: audiooutputdx.h:42:
>error: `AudioCodecMode?' has not been declared audiooutputdx.h:42:
>error: ISO C++ forbids declaration of `aom' with no type 
>audiooutputdx.h:42:
>error: `AUDIOCODECMODE_NORMAL' was not declared in this scope
>
>The changes are to just remove the last parameter from Reconfigure (ie undo 
>these specific small changes):
>http://svn.mythtv.org/trac/changeset/15893/trunk/mythtv/libs/libmyth/audiooutputdx.cpp
>http://svn.mythtv.org/trac/changeset/15893/trunk/mythtv/libs/libmyth/audiooutputdx.h

revert is correct. there should be no mention of AudioCodecMode in 
Reconfigure. sorry I forgot about that one.

>
>
>
>Third issue:
>the swab() function is being passed a bunch of stuff that is either wrong, 
>or needs to be explicitly cast under >win32? (I'm not sure how to deal with 
>this).
>problematic code line is:
>swab(data + 8, data + 8, enc_len);
>
>audiooutputdigitalencoder.cpp: In function `int encode_frame(bool, unsigned 
>char*, size_t&)':
>audiooutputdigitalencoder.cpp:305: error: invalid conversion from `unsigned 
>char*' to `const char*'
>audiooutputdigitalencoder.cpp:305: error:   initializing argument 1 of 
>`void swab(const char*, char*, size_t)'
>audiooutputdigitalencoder.cpp:305: error: invalid conversion from `unsigned 
>char*' to `char*'
>audiooutputdigitalencoder.cpp:305: error:   initializing argument 2 of 
>`void swab(const char*, char*, size_t)'
>make[2]: *** [audiooutputdigitalencoder.o] Error 1
>
>(I didn't know how to fix the one above properly - what does 'swab' do?, so 
>I stuck an ifndef _WIN32 >around it, which allowed me to continue the 
>build)
>
>I'm still building the rest, but I thought I'd get this out there, so it 
>can be fixed asap by someone with a commit >bit.

in mingw, swab is defined in string.h which Ill include.

patch to follow but untested except that it compiles.

mark 



More information about the mythtv-dev mailing list