sasikalar / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

Compilation Issue in XCode4 #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
------------------------------------------------
1. Setup a default OgreKit based build in CMake (I was trying to run 
AppVehicleDemo)
2. Clean & build in XCode4

What is the expected output? What do you see instead?
------------------------------------------------
Expect to be able to compile project, get error.

The error is the LLVM has an issue using temporary structs, as returned from 
gkBlendInternalFile::getActionList(), in functions calling for a struct 
reference (I'm assuming this is a "strict" rule that most compilers relax).

Anyway, to fix the problem, change line 400 in gkBlendFile.cpp from:

    anims.convertActions(m_file->getActionList(), m_file->getVersion() <= 249, m_animFps);

to 

    gkBlendListIterator actionList = m_file->getActionList();
    anims.convertActions(actionList, m_file->getVersion() <= 249, m_animFps);

Original issue reported on code.google.com by BenT.Sol...@gmail.com on 1 Apr 2011 at 7:19

GoogleCodeExporter commented 9 years ago
Fixed on r873.
Thanks. 

Original comment by harkon...@gmail.com on 1 Apr 2011 at 3:03