Building new ogre release from CVS, trouble compiling

Problems building or running the engine, queries about how to use features etc.
User avatar
paddy
Greenskin
Posts: 136
Joined: Sun Aug 01, 2004 7:07 pm

Building new ogre release from CVS, trouble compiling

Post by paddy »

When I first setup ogre and got it to compile 0.14.0 I didn't have my dependencies is the best location so when I updated it again I had to remodify the Ogre.dsw settings - so I am trying get everything to work with the best default settings I can with the the latest CVS.

I followed the 'CVS Access Guide - For Ogre Users' to get the latest ogrenew and downloaded the latest dependancies and put them in the 'ogrenew' folder.

I haven't changed STLPort settings at all, I think that should still be setup the same way.

When I try to compile, I get this message first:
Build : warning : failed to (or don't know how to) build 'C:\Files\General Files\Projects\Ogre Projects\ogrenew\OgreMain\obj\Release\OgreMain.pch'
Compiling...
OgreActionEvent.cpp
C:\Files\General Files\Projects\Ogre Projects\ogrenew\OgreMain\src\OgreActionEvent.cpp(25) : fatal error C1083: Cannot open precompiled header file: '..\obj\Release/OgreMain.pch': No such file or directory
OgreActionTarget.cpp
I've gone through the wiki and other instructions, I Dled and installed the service pack 5 for MVC++6 and the processor pack, and tried to search the forums as best as possible. (Side note, a phrase search would really help for the forums since "OgreMain.pch" will return all results with "OgreMain" and "pch")


My goal is to get everything running properly so I can use the CVS update tool and get new versions, compile them, and minimize re-setup each time.

Thanks in advance, and sorry for the compilation_error_threads++ count.
Lodes
Google Summer of Code Student
Google Summer of Code Student
Posts: 228
Joined: Mon Mar 17, 2003 12:02 am
Location: San Jose, CA, USA

Post by Lodes »

Since you're updating from a previous version, it is a very good idea to clean everything first. Before you do the batch build just click clean and then build all. This should fix it.
User avatar
paddy
Greenskin
Posts: 136
Joined: Sun Aug 01, 2004 7:07 pm

Post by paddy »

Thank you Lodes, tried the batch clean on everything, and it listed all the files that it cleaned, then batch compile and the same problem occured:
--------------------Configuration: OgreMain - Win32 Release--------------------
Build : warning : failed to (or don't know how to) build 'C:\Files\General Files\Projects\Ogre Projects\ogrenew\OgreMain\obj\Release\OgreMain.pch'
Compiling...
OgreActionEvent.cpp
C:\Files\General Files\Projects\Ogre Projects\ogrenew\OgreMain\src\OgreActionEvent.cpp(25) : fatal error C1083: Cannot open precompiled header file: '..\obj\Release/OgreMain.pch': No such file or directory
OgreActionTarget.cpp

What else could be causing this?
Lodes
Google Summer of Code Student
Google Summer of Code Student
Posts: 228
Joined: Mon Mar 17, 2003 12:02 am
Location: San Jose, CA, USA

Post by Lodes »

Well a hacky way to fix this is to turn precompiled headers off in the project settings. That will greatly increase compile times though and that sucks.

I don't use VC6 so I can't help much more. I personally have a 5 day old version of OGRE and it works just fine with VS.NET.

Sorry I can't be of any more help.
User avatar
paddy
Greenskin
Posts: 136
Joined: Sun Aug 01, 2004 7:07 pm

Post by paddy »

Well, I have scrapped the CVS version, and tried the hastur 1.5.2 version from the downloads, ran into this problem:
--------------------Configuration: OgreMain - Win32 Release--------------------
Compiling...
OgreMeshSerializerImpl.cpp
C:\Files\General Files\Projects\Ogre Projects\ogrenew\OgreMain\src\OgreMeshSerializerImpl.cpp(1541) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'E:\9044\vc98\p2\src\P2\main.c', line 181)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.

OgreMeshSerializerImpl.obj - 1 error(s), 0 warning(s)

I tried changing /zm from 200 to 1500 (2000 causes it to not compile at all) and even tried leaving it out. I've tried disabling the precompiled headers as that raises some other errors at times, and at times it doesn't have heap space to handle 1500.

I am only trying to build OgreMain files right now, and at times try only to compile just 'OgreMeshSerializerImpl.cpp' since it is the one that consistantly always fails, and the only one (so far).

I can compile that file in debug for some reason, I am not sure why.
User avatar
paddy
Greenskin
Posts: 136
Joined: Sun Aug 01, 2004 7:07 pm

Post by paddy »

After testing lots of stuff I got it to run by adding these compiler options to the OgreMain Release settings:

/Og /Os /Oy /Ob2 /Gs /Gf /Gy

Thanks for the help :)
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67

Post by sinbad »

VC6 compilation works fine here with no changes - perhaps you don't have the latest VC6 service pack.