Talk:Compiling Sphere

From Spheriki

Jump to: navigation, search

"Compiling under Visual C++ Express"

The "Installing and setting up" section should probably be renamed to "Installing and setting up under Visual C++ Express", since that's the only method this article mentions. I use Code::Blocks and MinGW, so compiling would be a completely different matter to me. --DaVince 22:52, 19 July 2007 (IST)

Changed. Please add instructions on how to build Sphere with your compiler as an alternative. This article also would need instructions concerning different Operating Systems for completion.--Kyuu 21 July 2007

Does anyone know if these VC++ Express instructions work w/VC++ 2005 Standard/Professional as well? If not, I'll try them and let y'all know. --NeoLogiX 22:37, 26 November 2007 (GMT)

I haven't tested it, but it should work. VS 2005 Professional is said to work even better than VC++ 2005 Express, anyway. --Kyuu 28 November 2007

I can confirm that following these VC++ 2005 Express instructions allows successful compilation of the engine on VS 2005 Professional. The editor compiles as well, tho with 296 warnings, all about "warning C4244: 'return' : conversion from 'const time_t' to 'LONG_PTR', possible loss of data" in path_to_platform_sdk\include\mfc\afx.inl lines 252, 254, 258, 262. --NeoLogiX 22:21, 28 November 2007 (GMT)

There is no need in specific instructions, as once the Platform SDK and the Compiler are set up, you can compile all files. About the warnings: I had them with VC++ 2005 Express as well. To get rid of them you simply edit the file in the mentioned lines to convert the result to LONG_PTR before returning. Btw: Haven't you had 8 errors as well? --Kyuu

No errors, but then again my source was from November 1st. Next time I'm online I'll update from CVS. --Neo

Found a performance boost (+10fps on 300 fps) by going into standard32, c/c++ optimization->InlineFunctionExpansion = Any Suitable. Found a performance boost (+5fps on 300 fps) by going into engine.exe, c/c++ optimization->And enable for size, inline etc. This would make the current head (Sphere 1.15) as fast as 1.13 -FBnil

mac compilation instructions

who's gonna do it, rhuan or myself? or just simply whoever's faster and the other do cleanup? --NeoLogiX 17:15, 11 August 2008 (IST)

Personal tools