Problem about compiling ...

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 6 months

Problem about compiling ...

Post #1by Fightspit » 27.08.2007, 10:05

I have a problem to compile the CVS and I find the cause which come from a file (ressource.h) where IDC_STATIC is not define.
More info here:
http://www.celestiaproject.net/forum/viewtopic ... c&start=57
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #2by selden » 27.08.2007, 10:51

While some people like to try to use Visual Studio's IDE to build Celestia, that's not what Chris does. As a result, many of the files on SourceForge that would be used by the IDE are incomplete and do not work. Chris does not have the time to try to maintain them. (Personally I think it probably would be appropriate to delete them from SourceForge so people aren't mislead.)

If you want to produce the same version of Celestia that is included in its Windows distribution kit, you have to use the script makerelease.bat. That script does not use resource.h and does not need IDC_STATIC.

Sorry.
Selden

Topic author
Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 6 months

Post #3by Fightspit » 27.08.2007, 11:04

selden wrote:If you want to produce the same version of Celestia that is included in its Windows distribution kit, you have to use the script makerelease.bat. That script does not use resource.h and does not need IDC_STATIC.


Well, unfortunately, I used makerelease.bat to compile because I am under Windows XP (with the command prompt) and the problem that I described in the previous post, is not vanish ...

I can add the IDC_STATIC in the ressource.h but I want to know what it is the number I should add.

Code: Select all

//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by celestia.rc
//
#define VERSION_STRING                  "1.5.0"
#define IDR_MENU1                       101
#define IDD_ABOUT                       102
#define IDC_STATIC                      ???  <- number ?
#define IDI_CELESTIA_ICON               103
#define IDD_FINDOBJECT                  104
...
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #4by t00fri » 27.08.2007, 11:19

selden wrote:While some people like to try to use Visual Studio's IDE to build Celestia, that's not what Chris does. As a result, many of the files on SourceForge that would be used by the IDE are incomplete and do not work.

Correct, but after a quick look into the online help of the respective IDE's, it should be obvious how to complement what is missing!

The Visual Studio 6 workspace (*.dsw) and project (*.dsp) files in CVS are fine to serve as a basis, except they are not maintained to be complete as to newly added files. However, adding new ones to the building file pool is very straightforward...I never had the slightest problems, taking the old *.dsw, *.dsp files as a start. Also deleting superfluous files from the building file set is trivial within the IDE. Of course, in this case, they are not deleted from people's hard disks...

Chris does not have the time to try to maintain them.

Despite his announced full-time committment to Celestia? ;-)

(Personally I think it probably would be appropriate to delete them from SourceForge so people aren't mislead.)

Since Chris is apparently in the process of converting the Win32 building to the FREE Microsoft VS++ 2005 Express compiler, we should soon or later have an appropriate working set of respective makefiles in CVS.

Instead of those outdated *.dsw, *.dsp files, many of us (including myself, of course) could since long have supplied their perfectly updated & maintained VS7 project files, for example. Chris has never asked for them...so nothing happened. Similarly, the required 'winlibs' set by Chris included partly very old libraries. I understand that he has updated them just now, after my respective mail in the dev list. Unlike the 'winlibs' set, I am using my own, self-compiled and most recent libs since quite a while for Windows building.


Bye Fridger
Image

Topic author
Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 6 months

Post #5by Fightspit » 27.08.2007, 11:48

Also, I use the command prompt not the default one (cmd.exe) but provide by VisualStudio as below:

Image


This command prompt can set all the environnement for VisualStudio and I can use for compiling.
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits


Return to “Development”