Visual Studio 2008EEd can compile celestia with minor tweaks

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 4 months
Location: Europe

Visual Studio 2008EEd can compile celestia with minor tweaks

Post #1by duds26 » 05.12.2007, 16:50

Visual Studio 2008 EE (free) can compile celestia with minor adjustments see below, thanks for the information Ajaja.




A free IDE with compiler and for building applications for Windows.

Visual Studio 2008 startpage:
http://www.microsoft.com/express/default.aspx


Here is the link directly to the VS C++ Express Edition:
http://www.microsoft.com/express/vc/
Last edited by duds26 on 31.01.2008, 18:54, edited 2 times in total.

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 21 years 10 months
Location: NY, USA

Post #2by selden » 05.12.2007, 17:01

Unfortunately, Celestia is not compatible with VS2008. VS2005 (or VS2003) is required.The necessary changes won't be made until well after Celestia v1.5.0 is officially released. (I learned this when I tried compiling Celestia with the VS2008 beta a few months ago.)
Selden

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 20 years 10 months

Post #3by ajtribick » 21.12.2007, 02:03

selden wrote:Unfortunately, Celestia is not compatible with VS2008. VS2005 (or VS2003) is required.The necessary changes won't be made until well after Celestia v1.5.0 is officially released. (I learned this when I tried compiling Celestia with the VS2008 beta a few months ago.)


What are the reasons for the incompatibility, do you know?

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 21 years 10 months
Location: NY, USA

Post #4by selden » 21.12.2007, 02:14

Sorry, it's been a while since I tried compiling with VS2008. I seem to recall that there were language constructs it didn't like as well as some incompatible runtime library calls. Sort of like the 2003 -> 2005 differences, but many more of them.
Selden

symaski62
Posts: 609
Joined: 01.05.2004
Age: 41
With us: 20 years 2 months
Location: france, divion

Post #5by symaski62 » 21.12.2007, 16:57

selden wrote:Sorry, it's been a while since I tried compiling with VS2008. I seem to recall that there were language constructs it didn't like as well as some incompatible runtime library calls. Sort of like the 2003 -> 2005 differences, but many more of them.


yes :wink: VS 2005
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.

Avatar
John Van Vliet
Posts: 2940
Joined: 28.08.2002
With us: 21 years 10 months

re

Post #6by John Van Vliet » 31.12.2007, 08:07

i am still using vs 2002 and don't intend on giving MS more $$$
i like Anjuta and gcc 4.1.2-33 to much

Ajaja
Posts: 11
Joined: 31.01.2006
With us: 18 years 5 months

Post #7by Ajaja » 28.01.2008, 19:24

Celestia is compatible with VS2008!!! Just need small fix. In render.cpp and stardb.cpp - functions "operator<(...)" must be in namespace std:

Example, was:

Code: Select all

bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}


must be:

Code: Select all

namespace std
{
bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}
}

symaski62
Posts: 609
Joined: 01.05.2004
Age: 41
With us: 20 years 2 months
Location: france, divion

Post #8by symaski62 » 28.01.2008, 20:33

Ajaja wrote:Celestia is compatible with VS2008!!! Just need small fix. In render.cpp and stardb.cpp - functions "operator<(...)" must be in namespace std:

Example, was:

Code: Select all

bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}


must be:

Code: Select all

namespace std
{
bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}
}


ok, VS2008 => windows vista et windows XP SP3
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.

Topic author
duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 4 months
Location: Europe

Post #9by duds26 » 31.01.2008, 18:40

Wel wel wel, look at that.
This is very good, porting to VS2008 won't take as long as I feared afterall. 8)

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 5 months
Location: Seattle, Washington, USA

Post #10by chris » 31.01.2008, 18:47

Ajaja wrote:Celestia is compatible with VS2008!!! Just need small fix. In render.cpp and stardb.cpp - functions "operator<(...)" must be in namespace std:

Example, was:

Code: Select all

bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}


must be:

Code: Select all

namespace std
{
bool operator< (const StarDatabase::CrossIndexEntry& a,
                const StarDatabase::CrossIndexEntry& b)
{
    return a.catalogNumber < b.catalogNumber;
}
}


Thanks, Ajaja. I just upgraded to VS2008--nice to know there won't be as many troubles as feared.

--Chris

Topic author
duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 4 months
Location: Europe

Re: re

Post #11by duds26 » 19.02.2008, 16:58

john Van Vliet wrote:i am still using vs 2002 and don't intend on giving MS more $$$
i like Anjuta and gcc 4.1.2-33 to much

You can just download the Visual Studio 2008 Express Edition for free, 0$!!!
Last edited by duds26 on 30.03.2008, 19:23, edited 1 time in total.

Avatar
John Van Vliet
Posts: 2940
Joined: 28.08.2002
With us: 21 years 10 months

re

Post #12by John Van Vliet » 19.02.2008, 20:03

seeing as the 2006 ( free) one was incompatible with vs 7 .net and required me to uninstall vs 7 to run it . i think i will stay with it
also most of the things i build on win xp are linux and mingw gcc is just fine

Topic author
duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 4 months
Location: Europe

Post #13by duds26 » 20.02.2008, 16:32

If everything is fine, don't change.

If somebody has got vista, everything has to change. :P

Epimetheus
Posts: 42
Joined: 30.03.2008
With us: 16 years 3 months

Re:

Post #14by Epimetheus » 03.04.2008, 05:04

Ajaja wrote:Celestia is compatible with VS2008!!! Just need small fix. In render.cpp and stardb.cpp - functions "operator<(...)" must be in namespace std:

I'm curious to know how you've set up your celvars.bat file. What version of the Platform SDK and NMAKE are you using?
Computer Info:

MoBo: GigaByte 6-Quad GA-965P DQ6
CPU: Intel Core 2 6700 @ 2.66GHz
RAM: Ocz 2GB DDR2 800MHz
HDD: Seagate 400GB SATA
VD: Nvidia GeForce 7950 GT OC 512MB
OS: MS XP Pro SP2
Celestia 1.5.1.4342 Qt4 Experimental


Return to “Development”