Compiling Ogre debug error with MinGW

Problems building or running the engine, queries about how to use features etc.
Post Reply
cpr0gr4mm3r
Gnoblar
Posts: 5
Joined: Sun Mar 25, 2018 9:31 am

Compiling Ogre debug error with MinGW

Post by cpr0gr4mm3r » Mon Mar 26, 2018 1:07 pm

Hi all,

I have downloaded Ogre using mercurial:

Code: Select all

hg clone http://bitbucket.org/sinbad/ogre/
Later I compiled Ogre dependencies: viewtopic.php?f=2&t=94141

Then, I try to build Ogre in debug mode using Windows 8, MinGW 4.6.2, MSYS 1.0.11 and CMake 3.10.3:

Code: Select all

cd c:\ogre
mkdir buildd
cd buildd
cmake .. -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=C:/ogre/build/sdk  -DOGRE_BUILD_RENDERSYSTEM_D3D11=FALSE
The build fails at 33%:

Code: Select all

oc.cpp.obj
[ 14%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreMemoryNedPoo
ling.cpp.obj
In file included from C:/ogre/OgreMain/src/nedmalloc/nedmalloc.c:63:0,
                 from c:/ogre/OgreMain/src/OgreMemoryNedPooling.cpp:42:
C:/ogre/OgreMain/src/nedmalloc/malloc.c.h:1280:0: warning: ignoring #pragma warn
ing  [-Wunknown-pragmas]
In file included from C:/ogre/OgreMain/src/nedmalloc/nedmalloc.c:63:0,
                 from c:/ogre/OgreMain/src/OgreMemoryNedPooling.cpp:42:
C:/ogre/OgreMain/src/nedmalloc/malloc.c.h:1350:0: warning: ignoring #pragma intr
insic  [-Wunknown-pragmas]
C:/ogre/OgreMain/src/nedmalloc/malloc.c.h:1351:0: warning: ignoring #pragma intr
insic  [-Wunknown-pragmas]
C:/ogre/OgreMain/src/nedmalloc/malloc.c.h:1358:0: warning: "interlockedcompareex
change" redefined [enabled by default]
C:/ogre/OgreMain/src/nedmalloc/malloc.c.h:1352:0: note: this is the location of
the previous definition
C:/ogre/OgreMain/src/nedmalloc/malloc.c.h:1359:0: warning: "interlockedexchange"
 redefined [enabled by default]
C:/ogre/OgreMain/src/nedmalloc/malloc.c.h:1353:0: note: this is the location of
the previous definition
In file included from c:/ogre/OgreMain/src/OgreMemoryNedPooling.cpp:42:0:
C:/ogre/OgreMain/src/nedmalloc/nedmalloc.c: In function 'malloc_state* nedalloc:
:FindMSpace(nedalloc::nedpool*, nedalloc::threadcache*, int*, size_t)':
C:/ogre/OgreMain/src/nedmalloc/nedmalloc.c:606:48: warning: cast from type 'mall
oc_state**' to type 'volatile malloc_state**' casts away qualifiers [-Wcast-qual
]
C:/ogre/OgreMain/src/nedmalloc/nedmalloc.c:606:65: warning: operation on 'p->ned
alloc::nedpool_t::m[end]' may be undefined [-Wsequence-point]
At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-unused-local-typede
fs" [enabled by default]
[ 14%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreMemoryTracke
r.cpp.obj
[ 15%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreMesh.cpp.obj

[ 15%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreMeshManager.
cpp.obj
[ 15%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreMeshSerializ
er.cpp.obj
[ 15%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreMeshSerializ
erImpl.cpp.obj
[ 15%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreMovableObjec
t.cpp.obj
[ 15%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreMovablePlane
.cpp.obj
[ 16%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreNode.cpp.obj

[ 16%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreNumerics.cpp
.obj
[ 16%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreOptimisedUti
l.cpp.obj
[ 16%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreOptimisedUti
lGeneral.cpp.obj
[ 16%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreOptimisedUti
lSSE.cpp.obj
[ 17%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreParticle.cpp
.obj
[ 17%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreParticleEmit
ter.cpp.obj
[ 17%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreParticleEmit
terCommands.cpp.obj
[ 17%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreParticleIter
ator.cpp.obj
[ 17%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreParticleSyst
em.cpp.obj
[ 17%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreParticleSyst
emManager.cpp.obj
[ 18%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePass.cpp.obj

[ 18%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePatchMesh.cp
p.obj
[ 18%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePatchSurface
.cpp.obj
[ 18%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePixelCountLo
dStrategy.cpp.obj
[ 18%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePixelFormat.
cpp.obj
[ 18%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePlane.cpp.ob
j
[ 19%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePlatformInfo
rmation.cpp.obj
[ 19%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePolygon.cpp.
obj
[ 19%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePose.cpp.obj

[ 19%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePrecompiledH
eaders.cpp.obj
[ 19%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePredefinedCo
ntrollers.cpp.obj
[ 19%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgrePrefabFactor
y.cpp.obj
[ 20%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreProfiler.cpp
.obj
[ 20%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreProgressiveM
eshGenerator.cpp.obj
[ 20%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreQuaternion.c
pp.obj
[ 20%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreQueuedProgre
ssiveMeshGenerator.cpp.obj
[ 20%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRectangle2D.
cpp.obj
[ 21%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderQueue.
cpp.obj
[ 21%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderQueueI
nvocation.cpp.obj
[ 21%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderQueueS
ortingGrouping.cpp.obj
[ 21%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderSystem
.cpp.obj
[ 21%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderSystem
Capabilities.cpp.obj
[ 21%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderSystem
CapabilitiesManager.cpp.obj
[ 22%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderSystem
CapabilitiesSerializer.cpp.obj
[ 22%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderTarget
.cpp.obj
[ 22%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderTextur
e.cpp.obj
[ 22%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderToVert
exBuffer.cpp.obj
[ 22%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRenderWindow
.cpp.obj
[ 22%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreResource.cpp
.obj
c:/ogre/OgreMain/src/OgreResource.cpp: In member function 'virtual void Ogre::Re
source::_fireLoadingComplete(bool)':
c:/ogre/OgreMain/src/OgreResource.cpp:381:41: warning: 'virtual void Ogre::Resou
rce::Listener::backgroundLoadingComplete(Ogre::Resource*)' is deprecated (declar
ed at C:/ogre/OgreMain/include/OgreResource.h:93) [-Wdeprecated-declarations]
c:/ogre/OgreMain/src/OgreResource.cpp: In member function 'virtual void Ogre::Re
source::_firePreparingComplete(bool)':
c:/ogre/OgreMain/src/OgreResource.cpp:396:43: warning: 'virtual void Ogre::Resou
rce::Listener::backgroundPreparingComplete(Ogre::Resource*)' is deprecated (decl
ared at C:/ogre/OgreMain/include/OgreResource.h:99) [-Wdeprecated-declarations]
At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-unused-local-typede
fs" [enabled by default]
[ 23%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreResourceBack
groundQueue.cpp.obj
[ 23%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreResourceGrou
pManager.cpp.obj
[ 23%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreResourceMana
ger.cpp.obj
[ 23%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRibbonTrail.
cpp.obj
[ 23%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRoot.cpp.obj

[ 23%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRotationSpli
ne.cpp.obj
[ 24%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSceneManager
.cpp.obj
[ 24%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSceneManager
Enumerator.cpp.obj
[ 24%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSceneNode.cp
p.obj
[ 24%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSceneQuery.c
pp.obj
[ 24%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreScriptCompil
er.cpp.obj
[ 25%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreScriptLexer.
cpp.obj
[ 25%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreScriptParser
.cpp.obj
[ 25%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreScriptTransl
ator.cpp.obj
[ 25%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSerializer.c
pp.obj
[ 25%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowCamera
Setup.cpp.obj
[ 25%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowCamera
SetupFocused.cpp.obj
[ 26%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowCamera
SetupLiSPSM.cpp.obj
[ 26%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowCamera
SetupPSSM.cpp.obj
[ 26%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowCamera
SetupPlaneOptimal.cpp.obj
[ 26%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowCaster
.cpp.obj
[ 26%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowTextur
eManager.cpp.obj
[ 26%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreShadowVolume
ExtrudeProgram.cpp.obj
[ 27%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSimpleRender
able.cpp.obj
[ 27%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSimpleSpline
.cpp.obj
[ 27%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSkeleton.cpp
.obj
[ 27%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSkeletonInst
ance.cpp.obj
[ 27%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSkeletonMana
ger.cpp.obj
[ 27%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSkeletonSeri
alizer.cpp.obj
[ 28%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSmallVector.
cpp.obj
[ 28%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreStaticGeomet
ry.cpp.obj
[ 28%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreStreamSerial
iser.cpp.obj
[ 28%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreString.cpp.o
bj
[ 28%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreStringConver
ter.cpp.obj
[ 28%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreStringInterf
ace.cpp.obj
[ 29%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSubEntity.cp
p.obj
[ 29%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreSubMesh.cpp.
obj
[ 29%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTagPoint.cpp
.obj
[ 29%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTangentSpace
Calc.cpp.obj
[ 29%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTechnique.cp
p.obj
[ 30%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTexture.cpp.
obj
[ 30%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTextureManag
er.cpp.obj
[ 30%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreTextureUnitS
tate.cpp.obj
[ 30%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreUTFString.cp
p.obj
[ 30%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreUnifiedHighL
evelGpuProgram.cpp.obj
[ 30%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreUserObjectBi
ndings.cpp.obj
[ 31%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreVector2.cpp.
obj
[ 31%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreVector3.cpp.
obj
[ 31%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreVector4.cpp.
obj
[ 31%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreVertexIndexD
ata.cpp.obj
[ 31%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreViewport.cpp
.obj
[ 31%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreWindowEventU
tilities.cpp.obj
[ 32%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreWireBounding
Box.cpp.obj
[ 32%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreWorkQueue.cp
p.obj
[ 32%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreFreeImageCod
ec.cpp.obj
[ 32%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreDDSCodec.cpp
.obj
[ 32%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreZip.cpp.obj
[ 32%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/WIN32/OgreConfig
Dialog.cpp.obj
c:/ogre/OgreMain/src/WIN32/OgreConfigDialog.cpp: In constructor 'Ogre::ConfigDia
log::ConfigDialog()':
c:/ogre/OgreMain/src/WIN32/OgreConfigDialog.cpp:48:28: warning: uninitialized co
nst 'staticVar' [-fpermissive]
c:/ogre/OgreMain/src/WIN32/OgreConfigDialog.cpp: In static member function 'stat
ic BOOL Ogre::ConfigDialog::DlgProc(HWND, UINT, WPARAM, LPARAM)':
c:/ogre/OgreMain/src/WIN32/OgreConfigDialog.cpp:87:62: warning: cast from type '
const char*' to type 'char*' casts away qualifiers [-Wcast-qual]
c:/ogre/OgreMain/src/WIN32/OgreConfigDialog.cpp: In member function 'bool Ogre::
ConfigDialog::display()':
c:/ogre/OgreMain/src/WIN32/OgreConfigDialog.cpp:304:17: warning: declaration of
'i' shadows a previous local [-Wshadow]
c:/ogre/OgreMain/src/WIN32/OgreConfigDialog.cpp:295:13: warning: shadowed declar
ation is here [-Wshadow]
c:/ogre/OgreMain/src/WIN32/OgreConfigDialog.cpp:304:17: warning: variable 'i' se
t but not used [-Wunused-but-set-variable]
At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-unused-local-typede
fs" [enabled by default]
[ 33%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/WIN32/OgreErrorD
ialog.cpp.obj
c:/ogre/OgreMain/src/WIN32/OgreErrorDialog.cpp: In constructor 'Ogre::ErrorDialo
g::ErrorDialog()':
c:/ogre/OgreMain/src/WIN32/OgreErrorDialog.cpp:43:28: warning: uninitialized con
st 'staticVar' [-fpermissive]
At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-unused-local-typede
fs" [enabled by default]
[ 33%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/WIN32/OgreFileSy
stemLayer.cpp.obj
[ 33%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/WIN32/OgreTimer.
cpp.obj
[ 33%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/Threading/OgreDe
faultWorkQueueStandard.cpp.obj
[ 33%] Linking CXX shared library ../bin/OgreMain_d.dll
CMakeFiles/OgreMain.dir/objects.a(OgrePredefinedControllers.cpp.obj):C:/ogre/Ogr
eMain/include/OgreController.h:65: multiple definition of `Ogre::ControllerFunct
ion<float>::getAdjustedInput(float)'
CMakeFiles/OgreMain.dir/objects.a(OgreController.cpp.obj):C:/ogre/OgreMain/inclu
de/OgreVector3.h:655: first defined here
collect2: ld returned 1 exit status
make[2]: *** [bin/OgreMain_d.dll] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2
How can I solve the problem?

Best regards.
0 x

Post Reply