OGRECave / ogre

scene-oriented, flexible 3D engine (C++, Python, C#, Java)
https://ogrecave.github.io/ogre/
MIT License
3.89k stars 960 forks source link

Mingw support #820

Open Alexpux opened 6 years ago

Alexpux commented 6 years ago

Hi, I'm MSYS2 project leader and we provide lot of prebuilded packages for mingw-w64 for Windows platform. I have dosen of patches that help me to build Ogre3d, so maybe someone look for them and maybe apply them upstream. https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-ogre3d

paroj commented 6 years ago

currently I can successfully cross-compile Ogre on Ubuntu using mingw-w64 gcc version 7.3-win32 20180312 (GCC)

Can you create a pull-request where you justify why the individual patches are needed? Also from a brief look I think the MinGW folder structure should match MSVC and not UNIX.

Alexpux commented 6 years ago

Well for mingw we prefer UNIX files layout, but it not principal I can have this patches locally. I will review patches again and will try submit pull requests

Alexpux commented 6 years ago

@paroj most important patch is https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-ogre3d/001-fix-precompiled-headers-generate.patch

Under Windows GCC doesn’t like params like -isystem”C:/mypath/include”

Need to have space between -isystem and path

revelator commented 3 years ago

Something odd has cropped up after we switched to gcc-10.2.0 the 64 bit build now throws bad_alloc in the samplebrowser, this did not happen with gcc-9.3.0.