Hi there,
after having some issues compiling scummvm using VS2010 Express, I wanted to try minGW.
2 Problems occur:
when compiling scummvm 1.1.1, I get the following error:
Type with 2 bytes... couldn't find data type with 2 bytes
when compiling scummvm 1.3.0svn, after
Checking for whether -Wglobal-constructors work...
g++.exe crashes hard
Is there anything I am doing wrong ??
- OS is Windows 7 64Bit
- MinGW was installed using the automated installer, the version of gcc is 4.5.0
Vorph
Compiling problems using MinGW
Moderator: ScummVM Team
Try using GCC version 4.2.1 under MinGW, which is used for Windows snapshots. The later GCC versions for MinGW are buggy, and not recommended.
Last edited by Kirben on Thu Oct 14, 2010 10:50 pm, edited 1 time in total.
Re: Compiling problems using MinGW
The version of g++ that is installed by MinGW's automatic installer should work. Just check it as an option on install. You might also want to use the pre-compiled libraries for MinGW that you can find on the wiki -- there are some configuration files (SDL in particular) that can be a little weird by default.Vorph wrote:Hi there,
after having some issues compiling scummvm using VS2010 Express, I wanted to try minGW.
2 Problems occur:
when compiling scummvm 1.1.1, I get the following error:
Type with 2 bytes... couldn't find data type with 2 bytes
when compiling scummvm 1.3.0svn, after
Checking for whether -Wglobal-constructors work...
g++.exe crashes hard
Is there anything I am doing wrong ??
- OS is Windows 7 64Bit
- MinGW was installed using the automated installer, the version of gcc is 4.5.0
Vorph
Hi,
maybe I am looking in the wrong place, but the automated installer as described in the WIKI doesn't seem to exist anymore. The current installer only gives me the option to Install mingw (and several compilers for different languages like fortran, c++, ada and some more), msys and msys dtk. The installer will then download the most recent version of the packages. On the Website (www.mingw.org) the "oldest" version of gcc / g++ I can find is 4.4.0...
After downgrading to this version (hope I did it right...) the same error occurs
Maybe the entry in the WIKI should be updated as well...
Vorph
EDIT: compiling the required libraries (sdl, libogg, etc.) seems to work fine.
maybe I am looking in the wrong place, but the automated installer as described in the WIKI doesn't seem to exist anymore. The current installer only gives me the option to Install mingw (and several compilers for different languages like fortran, c++, ada and some more), msys and msys dtk. The installer will then download the most recent version of the packages. On the Website (www.mingw.org) the "oldest" version of gcc / g++ I can find is 4.4.0...
After downgrading to this version (hope I did it right...) the same error occurs
Maybe the entry in the WIKI should be updated as well...
Vorph
EDIT: compiling the required libraries (sdl, libogg, etc.) seems to work fine.
The latest which works is 4.3.3
you can download from:
http://sourceforge.net/projects/tdm-gcc ... p/download
http://sourceforge.net/projects/tdm-gcc ... p/download
Download and unzip into mingw dir overwriting the files. Note that you changed from 4.5.0 DW2 to 4.3.3 SJLJ. Which means that maybe you have to recompile some libs. In case of scummvm it is only necesary to rebuild wxwidgets.
Also note, that you can compile FLAC 1.2.1 whith slight changes to the source code.
And for a "full" version you require also:
libpng, libtheora (sword 2.5 engine)
fluidsynth (1.0.9) (soundfonts support)
wxwidgets (for graphical tools)
you can download from:
http://sourceforge.net/projects/tdm-gcc ... p/download
http://sourceforge.net/projects/tdm-gcc ... p/download
Download and unzip into mingw dir overwriting the files. Note that you changed from 4.5.0 DW2 to 4.3.3 SJLJ. Which means that maybe you have to recompile some libs. In case of scummvm it is only necesary to rebuild wxwidgets.
Also note, that you can compile FLAC 1.2.1 whith slight changes to the source code.
And for a "full" version you require also:
libpng, libtheora (sword 2.5 engine)
fluidsynth (1.0.9) (soundfonts support)
wxwidgets (for graphical tools)
Just found the following commit by lordhoto:
https://github.com/scummvm/scummvm/comm ... a2a0571ad6
Now building with newer mingw-gcc works fine
https://github.com/scummvm/scummvm/comm ... a2a0571ad6
Now building with newer mingw-gcc works fine