1.12 Git on mingw-w64

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
libolt
Greenskin
Posts: 126
Joined: Wed Jan 19, 2005 4:48 am
x 9

1.12 Git on mingw-w64

Post by libolt »

I'm attempting to build the latest git pull of 1.12 on mingw-w64 with gcc 9.2.0 and get the following error.

Code: Select all

Scanning dependencies of target OgreMain_pch_dephelp
[  0%] Building CXX object OgreMain/CMakeFiles/OgreMain_pch_dephelp.dir/OgreMain_pch_dephelp.cxx.obj
In file included from C:/Users/libolt/Nextcloud/builds/sources/ogre-1.12/OgreMain/include/OgreRenderable.h:38,
                 from C:/Users/libolt/Nextcloud/builds/sources/ogre-1.12/OgreMain/include/OgreNode.h:34,
                 from C:/Users/libolt/Nextcloud/builds/sources/ogre-1.12/OgreMain/include/OgreBone.h:33,
                 from C:/Users/libolt/Nextcloud/builds/sources/ogre-1.12/OgreMain/src/OgreStableHeaders.h:50,
                 from C:\Users\libolt\Nextcloud\builds\build-mingw-amd64\ogre-1.12-build\OgreMain\OgreMain_pch_dephelp.cxx:1:
C:/Users/libolt/Nextcloud/builds/sources/ogre-1.12/OgreMain/include/OgrePlane.h:270:17: warning: 'static bool Ogre::Math::intersects(const Ogre::Plane&, const Ogre::AxisAlignedBox&)' redeclared without dllimport attribute after being referenced with dll linkage
  270 |     inline bool Math::intersects(const Plane& plane, const AxisAlignedBox& box)
      |                 ^~~~
[  0%] Linking CXX static library libOgreMain_pch_dephelp.a
[  0%] Built target OgreMain_pch_dephelp
[  1%] Generating OgreStableHeaders.h.gch/OgreMain_Release.gch
[  1%] Built target pch_Generate_OgreMain
Scanning dependencies of target OgreMain
[  2%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreASTCCodec.cpp.obj
cc1plus.exe: warning: C:/Users/libolt/Nextcloud/builds/build-mingw-amd64/ogre-1.12-build/OgreMain/OgreStableHeaders.h.gch/OgreMain_Debug.gch: not used because `__NO_INLINE__' not defined [-Winvalid-pch]
internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:186: MapViewOfFileEx: Attempt to access invalid address.
<command-line>: fatal error: had to relocate PCH
compilation terminated.
mingw32-make[2]: *** [OgreMain\CMakeFiles\OgreMain.dir\build.make:63: OgreMain/CMakeFiles/OgreMain.dir/src/OgreASTCCodec.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:117: OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
mingw32-make: *** [Makefile:151: all] Error 2
Build Failed
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: 1.12 Git on mingw-w64

Post by paroj »

try OGRE_ENABLE_PRECOMPILED_HEADERS=OFF
Post Reply