Page 1 of 1

Unable to build under Windows

Posted: 04.01.2008, 13:51
by TryingToBuildCelestia
I apologize in advance for this boring noob question, but when try to build under Windows I receive a large number of build errors due to missing image library files. Searching the forum entries didn't produce anything helpful :(

I received compile errors due to missing files { jconfig.h, jmorecfg.h, jpeglib.h, png.h, pngconf.h, ... } - since they are not included in the source archive, I tried several different versions of them which I have lying around, but couldn't get the source to compile with any combination of them.

Does anyone out there know a solution to this issue? Thanks in advance for any help you can provide...

Posted: 04.01.2008, 14:20
by ajtribick
It would help to know what compiler you are using.

Posted: 04.01.2008, 14:38
by selden
TryingToBuildCelestia,

Have you followed the instructions in the Celestia WikiBook for obtaining updated libraries and build scripts?

http://en.wikibooks.org/wiki/Celestia/D ... 2_platform

.

Re: Unable to build under Windows

Posted: 04.01.2008, 17:58
by abramson
TryingToBuildCelestia wrote:I received compile errors due to missing files { jconfig.h, jmorecfg.h, jpeglib.h, png.h, pngconf.h, ... }


Hi, TryingToBuildCelestia (you keeping that nickname 8O). Your missing libraries are those contained in Chris's extra libraries: http://celestiaproject.net/celestia/files/winlibs-new.zip

This step is described in the detailed instructions provided somewhere else in this forum (the sticky thread "Free Windows-based compiling for Celestia", step V).

It's possible that it is also described in the wiki as Selden says, but I have not used those.

Beware, that I have found more glitches before being able to compile. I have posted my tips. Go ahead and try again, and post here if you need more help. (Edit: BTW, I'm using the MS 2003 free utilities, SDK and compiler.)

Guillermo

re

Posted: 05.01.2008, 05:55
by John Van Vliet
hi TryingToBuildCelestia Google them jconfig.h, jmorecfg.h, jpeglib.h, png.h, pngconf.h, ... and find out what they are and how to use them . Unlike linux ,windows is missing ALL the files needed to build celesta .
read http://en.wikibooks.org/wiki/Celestia/D ... 2_platform then reread it and decide if you really want to go for it

Posted: 05.01.2008, 12:09
by TryingToBuildCelestia
Thanks for all the helpful posts - particularly the link to the wiki and the link to the actual missing files.

Just to clarify a few points mentioned above, I am using Visual Studio 2003, and I have used all these imaging files before under Windows with other projects.

The problem I had is a VERSION problem - i.e. none of the versions of the above files which I had lying around would compile with Celestia - hence it is very helpful to get the exact versions required to avoid hours of meaningless debugging :)

Posted: 05.01.2008, 13:12
by TryingToBuildCelestia
Well, the new files worked, except that the files in winbuild-2.zip are for a later version of Visual Studio (probably 2005?).

Using a solution created from the .dsw files, I actually got everything to compile, but there were quite a few linker errors, so I think I will try to build it under Linux instead...

Posted: 05.01.2008, 14:31
by t00fri
TryingToBuildCelestia wrote:Well, the new files worked, except that the files in winbuild-2.zip are for a later version of Visual Studio (probably 2005?).

Using a solution created from the .dsw files, I actually got everything to compile, but there were quite a few linker errors, so I think I will try to build it under Linux instead...



As a Celestia dev I am building the XP version of Celestia almost daily with VS 2003 .net without the slightest problems.

So could it be that you simply have never studied carefully, how to handle and configure your own (commercial) compiler along with the Celestia projects/solution?

There are very detailed MS manuals about how to do it RIGHT...

Bye Fridger

Posted: 05.01.2008, 15:51
by selden
I've updated the WikiBook page to include a link to Celestia's VS2003 libraries.

Posted: 05.01.2008, 16:40
by abramson
t00fri wrote:I am building the XP version of Celestia almost daily with VS 2003 .net without the slightest problems.


Yes. I am too, TryingToBuildCelestia, I am also building from CVS with VS2003 (XP Pro) like twice a week, without any problem at all (just a "makerelease clean" every now and then...). And just following *carefully* the instructions in that sticky I mentioned... who was the author?

Regards,

Guillermo

Posted: 06.01.2008, 11:59
by TryingToBuildCelestia
Yes - it was remiss of me not to have read the sticky first - I just didn't understand the meaning of the title "Sticky: Free Windows-based compiling for Celestia." - it sounded like an advertisement...

When you say you build every day with VS-2003 do you mean you are using nmake?

I tried to use the VS project files included in winbuild-2.zip ( thinking that 'later' must be 'better')- thus, I probably don't get the desired results...

Posted: 06.01.2008, 12:13
by t00fri
TryingToBuildCelestia wrote:Yes - it was remiss of me not to have read the sticky first - I just didn't understand the meaning of the title "Sticky: Free Windows-based compiling for Celestia." - it sounded like an advertisement...

When you say you build every day with VS-2003 do you mean you are using nmake?

I tried to use the VS project files included in winbuild-2.zip ( thinking that 'later' must be 'better')- thus, I probably don't get the desired results...


I wrote my own VS 2003.net project files a long time ago. It's straightforward if you read the MS docs. The VS project files attached to the distribution are for the free VS-2005 express compiler and won't work with the VS2003.net commercial one.

Of course it's as easy to compile with nmake, but I prefer the GUI environment for coding, running and debugging.

Bye Fridger

Posted: 06.01.2008, 13:12
by ElChristou
Hey TryingToBuildCelestia, why don't you TryToDownloadCelestia? :lol:

It should be easier... :wink:

re

Posted: 07.01.2008, 09:08
by John Van Vliet
that reminds me , seeing as MinGW is almost updated to build the new Gimp ( for plugin compiling ). I should update the VS 2002.net project files to build Celestia from cvs