Here are some notes on my first-time compilation of Celestia on Windows XP.
Note 1
Follow the forum instructions, including second level
improvements posted to the thread. Importantly, the
SDK has 13 big files (25 meg each) to download, and
two small ones. This link was the one that worked
http://www.microsoft.com/msdownload/pla ... k-full.htm
The old description of menus to get the SDK is wrong.
The old links lead me to mistakenly
download a smaller 2 meg "Platform SDK file". And that
blocked progress. That was deleted and the 13
files were loaded with names like PSDK-FULL.13.cab
When the instructions say to "move" files, copy the files.
Note 2
After all the SDK and C++ Toolkit 2003 were in place,
another stumbling block presented itself. Two missing files. They were
called MSVCR70.dll and MSVCR80.dll. I found that in the SDK and
copied it to C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin
Note 3
The compiler failed two more times, calling for odbc32.lib and
odbccp32.lib . These did not exist on my computer. I loaded
an old compiler to get those files. The old compiler is called
Microsoft Visual C++ 6.0 Standard Edition from 1998.
When those files were copied into the
C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib
directory, the compilation succeeded.
Note 4
Here is the environmental file called celvars.bat :
@echo off
Set PATH=C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;%PATH%
Set INCLUDE=C:\Program Files\Microsoft Visual C++ Toolkit 2003\include;%INCLUDE%
Set LIB=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;%LIB%
Set INCLUDE=C:\Program Files\Microsoft SDK\include;%INCLUDE%
Set LIB=C:\Program Files\Microsoft SDK\Lib;%LIB%
Set INCLUDE=C:\Program Files\Microsoft SDK\include\Win64\mfc;%INCLUDE%
Set LIB=C:\Program Files\Microsoft SDK\Lib\IA64\mfc;%LIB%
Set INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;%INCLUDE%
Set INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;%INCLUDE%
Set INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include;%INCLUDE%
Set INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;%INCLUDE%
Set INCLUDE=c:\CVS2\celestia\inc;%INCLUDE%
Set PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;%PATH%
Set PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin;%PATH%
Set PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\bin;%PATH%
Set PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\bin;%PATH%
Set PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;%PATH%
Set LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib;%LIB%
Set LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib;%LIB%
Set LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib;%LIB%
Set LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib;%LIB%
Set LIB=C:\CVS2\celestia\lib;%LIB%
It compiled Celestia 1.4.0 correctly.
I started the program and the Earth loomed large.
Acceleration was applied, and stars parted before me.
Thanks to Chris, Selden, the doctors, the masters,
the bachelors, the coeds, and the eds of the community!
__________________________________________________
From : faethon
Joined: 26 Dec 2005 Here is faethon's report on his first compilation.
Posts: 4
Posted: Fri Dec 30, 2005 8:23 am Post subject:
Globemaker,
I got it compiled and linked eventually with a fresh install of Visual Studio .NET 2003, which I have access to from work. It looks promising that you got it to work with the free tools available from MS. I guess I got stuck with the odbc libraries you manually copied over. Maybe your info should go into the sticky on building the free windows build environment. Good work!
____________________________________________________
Thank you, faethon. This documentation was brought to you by...
a Master of the Science of Electrical Engineering who is staying current.