Compiling questions

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
monkeyman
Posts: 12
Joined: Sat Sep 09, 2006 5:29 pm

Compiling questions

Post by monkeyman »

Hiya,

Who is the best person to ask about compiling ScummVM? I'm trying to compile a win32 executable, using MinGW. I've been following the instructions on the Wiki pretty closely but am having no luck...

Has anyone had more success recently? Which compiler do the devs use for the binary releases?

Thanks!
fingolfin
Retired
Posts: 1452
Joined: Wed Sep 21, 2005 4:12 pm

Post by fingolfin »

For the windows releases it is MinGW, I think. See, if you told us *what* fails, we might be able to give you soime hints. But just saying "it doesn't work" is rather... vague :-).
monkeyman
Posts: 12
Joined: Sat Sep 09, 2006 5:29 pm

Post by monkeyman »

Oh, I'm more than happy to tell you what's failing. :) I just didn't want to come across too heavy in my first post....
Basically, I can't get libmpeg2 and flac to compile. ScummVM fails too, whether because of the missing libraries or not, I'm not sure...

Code: Select all

g++ -Wp,-MMD,"sound/.deps/mp3.d",-MQ,"sound/mp3.o",-MP -Wall -g -W -Wno-unused-parameter -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -pedantic -Wpointer-arith -Wcast-qual -Wconversion -Wshadow -Wimplicit -Wundef -Wnon-virtual-dtor -Wno-reorder -Wwrite-strings -fno-rtti -fno-exceptions -fcheck-new -DHAVE_CONFIG_H -DWIN32 -DDATA_PATH=\"/usr/local/share/scummvm\" -DDISABLE_LURE -DDISABLE_CINE -DDISABLE_AGI -I. -I. -I./engines -I/usr/local/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -c sound/mp3.cpp -o sound/mp3.o
sound/mp3.cpp:47: error: field `_stream' has incomplete type
sound/mp3.cpp:48: error: field `_frame' has incomplete type
sound/mp3.cpp:49: error: field `_synth' has incomplete type
sound/mp3.cpp:50: error: `mad_timer_t' does not name a type
sound/mp3.cpp:50: error: extra semicolon
sound/mp3.cpp:63: error: `mad_timer_t' has not been declared
sound/mp3.cpp:63: error: ISO C++ forbids declaration of `duration' with no type
sound/mp3.cpp: In member function `virtual int Audio::MP3InputStream::getRate() const':
sound/mp3.cpp:71: error: `_frame' undeclared (first use this function)
sound/mp3.cpp:71: error: (Each undeclared identifier is reported only once for each function it appears in.)
sound/mp3.cpp: At global scope:
sound/mp3.cpp:86: error: `mad_timer_t' has not been declared
sound/mp3.cpp:86: error: ISO C++ forbids declaration of `duration' with no type
sound/mp3.cpp: In constructor `Audio::MP3InputStream::MP3InputStream(Common::File*, int)':
sound/mp3.cpp:89: error: `_stream' undeclared (first use this function)
sound/mp3.cpp:89: error: `mad_stream_init' undeclared (first use this function)
sound/mp3.cpp:90: error: `_frame' undeclared (first use this function)
sound/mp3.cpp:90: error: `mad_frame_init' undeclared (first use this function)
sound/mp3.cpp:91: error: `_synth' undeclared (first use this function)
sound/mp3.cpp:91: error: `mad_synth_init' undeclared (first use this function)
sound/mp3.cpp:93: error: `_duration' undeclared (first use this function)
sound/mp3.cpp: In constructor `Audio::MP3InputStream::MP3InputStream(Common::File*, uint32)':
sound/mp3.cpp:120: error: `_stream' undeclared (first use this function)
sound/mp3.cpp:120: error: `mad_stream_init' undeclared (first use this function)
sound/mp3.cpp:121: error: `_frame' undeclared (first use this function)
sound/mp3.cpp:121: error: `mad_frame_init' undeclared (first use this function)
sound/mp3.cpp:122: error: `_synth' undeclared (first use this function)
sound/mp3.cpp:122: error: `mad_synth_init' undeclared (first use this function)
sound/mp3.cpp:124: error: `_duration' undeclared (first use this function)
sound/mp3.cpp:124: error: `mad_timer_zero' undeclared (first use this function)
sound/mp3.cpp: In destructor `virtual Audio::MP3InputStream::~MP3InputStream()':
sound/mp3.cpp:153: error: `_synth' undeclared (first use this function)
sound/mp3.cpp:153: error: `mad_synth_finish' undeclared (first use this function)
sound/mp3.cpp:154: error: `_frame' undeclared (first use this function)
sound/mp3.cpp:154: error: `mad_frame_finish' undeclared (first use this function)
sound/mp3.cpp:155: error: `_stream' undeclared (first use this function)
sound/mp3.cpp:155: error: `mad_stream_finish' undeclared (first use this function)
sound/mp3.cpp: In member function `bool Audio::MP3InputStream::init()':
sound/mp3.cpp:169: error: `MAD_BUFFER_GUARD' undeclared (first use this function)
sound/mp3.cpp:179: error: `_stream' undeclared (first use this function)
sound/mp3.cpp:179: error: `mad_stream_buffer' undeclared (first use this function)
sound/mp3.cpp:186: error: `_frame' undeclared (first use this function)
sound/mp3.cpp:187: error: `MAD_MODE_SINGLE_CHANNEL' undeclared (first use this function)
sound/mp3.cpp:188: error: `MAD_MODE_DUAL_CHANNEL' undeclared (first use this function)
sound/mp3.cpp:189: error: `MAD_MODE_JOINT_STEREO' undeclared (first use this function)
sound/mp3.cpp:190: error: `MAD_MODE_STEREO' undeclared (first use this function)
sound/mp3.cpp:191: error: `MAD_NCHANNELS' undeclared (first use this function)
sound/mp3.cpp: In member function `void Audio::MP3InputStream::refill(bool)':
sound/mp3.cpp:217: error: `_frame' undeclared (first use this function)
sound/mp3.cpp:217: error: `_stream' undeclared (first use this function)
sound/mp3.cpp:217: error: `mad_frame_decode' undeclared (first use this function)
sound/mp3.cpp:218: error: `MAD_ERROR_BUFLEN' undeclared (first use this function)
sound/mp3.cpp:230: error: `MAD_BUFFER_GUARD' undeclared (first use this function)
sound/mp3.cpp:242: error: use of enum `mad_error' without previous declaration
sound/mp3.cpp:245: error: `mad_stream_buffer' undeclared (first use this function)
sound/mp3.cpp:247: error: `MAD_RECOVERABLE' undeclared (first use this function)
sound/mp3.cpp:257: error: `_duration' undeclared (first use this function)
sound/mp3.cpp:257: error: `mad_timer_zero' undeclared (first use this function)
sound/mp3.cpp:257: error: `mad_timer_compare' undeclared (first use this function)
sound/mp3.cpp:259: error: `mad_timer_t' undeclared (first use this function)
sound/mp3.cpp:259: error: expected `;' before "frame_duration"
sound/mp3.cpp:260: error: `frame_duration' undeclared (first use this function)
sound/mp3.cpp:260: error: `mad_timer_negate' undeclared (first use this function)
sound/mp3.cpp:261: error: `mad_timer_add' undeclared (first use this function)
sound/mp3.cpp:268: error: `_synth' undeclared (first use this function)
sound/mp3.cpp:268: error: `mad_synth_frame' undeclared (first use this function)
sound/mp3.cpp: In member function `bool Audio::MP3InputStream::eosIntern() const':
sound/mp3.cpp:281: error: `_synth' undeclared (first use this function)
sound/mp3.cpp: At global scope:
sound/mp3.cpp:284: error: `Audio::scale_sample' declared as an `inline' variable
sound/mp3.cpp:284: error: `mad_fixed_t' was not declared in this scope
sound/mp3.cpp:284: error: expected `,' or `;' before '{' token
sound/mp3.cpp: In member function `virtual int Audio::MP3InputStream::readBuffer(int16*, int)':
sound/mp3.cpp:302: error: `_synth' undeclared (first use this function)
sound/mp3.cpp:304: error: `Audio::scale_sample' cannot be used as a function
sound/mp3.cpp:307: error: `Audio::scale_sample' cannot be used as a function
sound/mp3.cpp: At global scope:
sound/mp3.cpp:331: error: field `_mad_header' has incomplete type
sound/mp3.cpp: In constructor `Audio::MP3TrackInfo::MP3TrackInfo(Common::File*)':
sound/mp3.cpp:357: error: aggregate `Audio::mad_stream stream' has incomplete type and cannot be defined
sound/mp3.cpp:358: error: aggregate `Audio::mad_frame frame' has incomplete type and cannot be defined
sound/mp3.cpp:366: error: `mad_stream_init' undeclared (first use this function)
sound/mp3.cpp:367: error: `mad_frame_init' undeclared (first use this function)
sound/mp3.cpp:385: error: `mad_stream_buffer' undeclared (first use this function)
sound/mp3.cpp:388: error: `mad_frame_decode' undeclared (first use this function)
sound/mp3.cpp:389: error: `MAD_RECOVERABLE' undeclared (first use this function)
sound/mp3.cpp:392: error: `MAD_ERROR_BADCRC' undeclared (first use this function)
sound/mp3.cpp:400: error: `MAD_ERROR_BUFLEN' undeclared (first use this function)
sound/mp3.cpp:408: error: `_mad_header' undeclared (first use this function)
sound/mp3.cpp:408: error: invalid application of `sizeof' to incomplete type `Audio::mad_header' 
sound/mp3.cpp:414: error: `mad_frame_finish' undeclared (first use this function)
sound/mp3.cpp:415: error: `mad_stream_finish' undeclared (first use this function)
sound/mp3.cpp: In member function `virtual void Audio::MP3TrackInfo::play(Audio::Mixer*, Audio::SoundHandle*, int, int)':
sound/mp3.cpp:443: error: `mad_timer_t' undeclared (first use this function)
sound/mp3.cpp:443: error: expected `;' before "durationTime"
sound/mp3.cpp:446: error: `_mad_header' undeclared (first use this function)
sound/mp3.cpp:458: error: `durationTime' undeclared (first use this function)
sound/mp3.cpp:459: error: `mad_timer_set' undeclared (first use this function)
make: *** [sound/mp3.o] Error 1
Seems like problems with the MP3 libraries although libmad was installed without any errors.

Any ideas?

Thanks!
Post Reply