ogre icon indicating copy to clipboard operation
ogre copied to clipboard

Mingw support

Open Alexpux opened this issue 5 years ago • 4 comments

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

Alexpux avatar Jul 21 '18 09:07 Alexpux

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.

paroj avatar Jul 21 '18 10:07 paroj

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 avatar Jul 21 '18 11:07 Alexpux

@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

Alexpux avatar Jul 21 '18 11:07 Alexpux

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.

revelator avatar Jan 05 '21 13:01 revelator