[Solved] Map Splitter - Release fails to build

PatrickB3

05-09-2006 21:30:45

In latest CVS:

Compiling...
MapHorizon2.cpp
..\src\MapHorizon2.cpp(213) : error C2296: '<<' : illegal, left operand has type 'const char [24]'
..\src\MapHorizon2.cpp(213) : error C2297: '<<' : illegal, right operand has type 'const char [2]'
..\src\MapHorizon2.cpp(220) : error C2297: '<<' : illegal, right operand has type 'const char [4]'
..\src\MapHorizon2.cpp(220) : error C2664: 'void Ogre::LogManager::logMessage(const Ogre::String &,Ogre::LogMessageLevel,bool)' : cannot convert parameter 1 from 'Ogre::uint' to 'const Ogre::String &'
Reason: cannot convert from 'Ogre::uint' to 'const Ogre::String'
No constructor could take the source type, or constructor overload resolution was ambiguous
MapHorizon.cpp
..\src\MapHorizon.cpp(241) : error C2296: '<<' : illegal, left operand has type 'const char [24]'
..\src\MapHorizon.cpp(241) : error C2297: '<<' : illegal, right operand has type 'const char [2]'
..\src\MapHorizon.cpp(253) : error C2678: binary '<<' : no operator found which takes a left-hand operand of type 'Ogre::String' (or there is no acceptable conversion)
f:\legendsonlineadventures\ogre\ogrenew\ogremain\include\OgrePlane.h(106): could be 'std::ostream &Ogre::operator <<(std::ostream &,Ogre::Plane &)'
f:\legendsonlineadventures\ogre\ogrenew\ogremain\include\OgreCamera.h(333): or 'std::ostream &Ogre::operator <<(std::ostream &,Ogre::Camera &)'
while trying to match the argument list '(Ogre::String, const char [4])'
Project : warning PRJ0018 : The following environment variables were not found:
$(OGRE_WIN32_ROOTDIR)
Build log was saved at "file://f:\LegendsOnlineAdventures\Ogre\ogrenew\Tools\MapSplitter\obj\Release\BuildLog.htm"
Tool_MapSplitter - 7 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

tuan kuranes

06-09-2006 09:36:07

Fixed in CVS but

those files are no more included for a while... That why I didn't see that.

You can safely remove them from project file.

BTW if you use vc7 or VC7.1 you can activate precompiled headers in the plugin compilation now if you wish.

Add OgrePagingLandScapePrecompiledHeaders.cpp to the plugin project.
In this particular file property, go into C++/PrecompiledHeaders and select "Create Precompiled Headers" specifying OgrePagingLandScapePrecompiledHeaders.h.
Select whole Plugin project and into C++/PrecompiledHeaders and select "Use Precompiled Headers" specifying OgrePagingLandScapePrecompiledHeaders.h.

Add _PRECOMPILED_HEADERS as a preprocessor option.
Make sure you did that for Release and Debug.

That should boost compilation a lot.

If you get a .cpp complaining about not having #include "OgrePagingLandScapePrecompiledHeaders.h" at its top, you can remove it. many texture mode had been removed lately.

PatrickB3

06-09-2006 18:45:59

Don't really need Mapsplitter as my map is already split but just wanted to let you know. I use VC8. Apparently they were still in the VC 8 solution.