Page 1 of 1

Building Celestia with VC2005 GUI vs. command line

Posted: 07.04.2008, 21:01
by Adirondack
I just built Celestia (r4142) with winlips2 via the command line (makerelease)
and the sun appears without sun spots:

BuildwithCOMMANDLINE.jpg


Then I built Celestia with winlibs3 via celestia.vcproj (using the GUI) and
the sun appears with neat and nice sun spots:

BuildwithGUI.jpg

(Both images made with basic render path to see the differences better)

Is this a matter of the used winlibs?
BTW: winlibs3 doesn't work with the command line, so I can't compare this.

Chris?


Adirondack

Re: Building Celestia with VC2005 GUI vs. command line

Posted: 07.04.2008, 22:01
by cartrite
I suspect that compiling with winlib-2 and the command line is not rendering jpegs. Another user recently had this same problem as did I a while back. I think I remember now that I used a winlib package that Vincent provided a link for to compile from the command line.
Vincent,
I used winlibs-new-51.zip.
OK This works. JPGS are fine with these libs when I build with VS2005 cmd prompt (makerelease.bat). That makes about 3 or 4 different winlib pkgs depending on which compiler I use. This is getting confusing.
Steve
I think I ended up using these libs to build with the command line.
http://www.celestiaproject.net/~claurel/celest ... new-51.zip
cartrite

Re: Building Celestia with VC2005 GUI vs. command line

Posted: 08.04.2008, 00:25
by Epimetheus
Adirondack wrote:I just built Celestia (r4142) with winlips2 via the command line (makerelease)
and the sun appears without sun spots:
Adirondack

Good observation. I also just recently compiled from both the commandline and VS 2005 and now that I think of it, the commandline compile did not show the sun spots either. As you know, to compile with the makefiles from the cl, which is known are not current, you must use the winlibs-2 package. The problem may have to do with the inclusion of ijgjpeg.lib which is not included in winlibs-3? Chris, recommends you use the vcproj file with VS 2005, since it is current, to do your builds. You will need the winlibs-3 and winbuild-3 packages for building the app with VS 2005. I just recently learned all of this myself.

Re: Building Celestia with VC2005 GUI vs. command line

Posted: 08.04.2008, 00:51
by cartrite
The problem may have to do with the inclusion of ijgjpeg.lib which is not included in winlibs-3?
That file is in winlibs-3.zip. I got no idea what is supposed to link to it though. That is why I suggest using http://www.celestiaproject.net/~claurel/celest ... new-51.zip if you compile from the command line.

Most of the time I now use MS2008 C++Express GUI with the vcproj file most of the time now as Chris suggested.
That is what I build the executables with that I provide at my web site.
cartrite

Re: Building Celestia with VC2005 GUI vs. command line

Posted: 08.04.2008, 20:51
by Adirondack
Thanks Steve and Epimetheus.

That's quite confusing ...

Though the build succeeded, I get two warnings

Code: Select all

1>texture.cpp
1>e:\celestia_svn\celestia\inc\libjpeg\jmorecfg.h(215) : warning C4005: 'FAR' : macro redefinition
1>        E:\Developer\SDK2003R2\Include\windef.h(145) : see previous definition of 'FAR'


Code: Select all

1>imagecapture.cpp
1>e:\celestia_svn\celestia\inc\libjpeg\jmorecfg.h(215) : warning C4005: 'FAR' : macro redefinition
1>        E:\Developer\SDK2003R2\Include\windef.h(145) : see previous definition of 'FAR'


and a bunch of link warnings (libjpegd.lib, zlibd.lib, libpngd.lib)

Code: Select all

1>Linking...
1>libjpegd.lib(jcapimin.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcapistd.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcparam.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdatadst.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcinit.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcmaster.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcmarker.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcmainct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcprepct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jccoefct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jccolor.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcsample.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jchuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcphuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcdctmgr.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jfdctfst.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jfdctflt.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jfdctint.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdapimin.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdapistd.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdatasrc.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdmaster.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdinput.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdmarker.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdhuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdphuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdmainct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdcoefct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdpostct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jddctmgr.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jidctfst.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jidctflt.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jidctint.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jidctred.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdsample.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdcolor.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jquant1.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jquant2.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jdmerge.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jcomapi.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jutils.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jerror.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jmemmgr.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libjpegd.lib(jmemnobs.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libjpegd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>zlibd.lib(adler32.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\zlibd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>zlibd.lib(compress.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\zlibd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>zlibd.lib(crc32.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\zlibd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>zlibd.lib(deflate.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\zlibd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>zlibd.lib(inffast.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\zlibd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>zlibd.lib(inflate.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\zlibd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>zlibd.lib(inftrees.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\zlibd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>zlibd.lib(trees.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\zlibd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>zlibd.lib(zutil.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\zlibd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(png.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngerror.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngget.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngmem.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngread.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngrio.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngrtran.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngrutil.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngset.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngtrans.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngwio.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngwrite.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngwtran.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngwutil.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info
1>libpngd.lib(pngvcrd.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\lib\libpngd.lib' or at 'e:\Celestia_SVN\celestia\Debug\vc80.pdb'; linking object as if no debug info

And celestia.exe is 5.908 KB big! (I didn't notice this much too big file size yesterday)
When I build from the cmd celestia.exe is only 2.856 KB.
What's going wrong here? - Sorry for my ignorance.


Adirondack

Re: Building Celestia with VC2005 GUI vs. command line

Posted: 08.04.2008, 21:07
by cartrite
When you build from the GUI, the debug build is on by default. At the top you'll see debug win32 and a drop arrow. You can use that to change the build to Release there.
When you build from the command console, Release is on by default. The debug adds a bunch more code which is why it is bigger.
cartrite

Re: Building Celestia with VC2005 GUI vs. command line

Posted: 08.04.2008, 21:19
by Adirondack
Aha, Steve, that's it! :!: Thanks a lot!!!
The linking warnings are all gone (only the two warnings concerning texture.cpp and imagecapture.cpp are still there).
And celestia.exe is now 3.024 KB. Normal?

Adirondack

Re: Building Celestia with VC2005 GUI vs. command line

Posted: 08.04.2008, 21:25
by symaski62
Adirondack wrote:Aha, Steve, that's it! :!: Thanks a lot!!!
The linking warnings are all gone (only the two warnings concerning texture.cpp and imagecapture.cpp are still there).
And celestia.exe is now 3.024 KB. Normal?

Adirondack

8) ok

Re: Building Celestia with VC2005 GUI vs. command line

Posted: 08.04.2008, 21:41
by cartrite
Adirondack wrote:Aha, Steve, that's it! :!: Thanks a lot!!!
The linking warnings are all gone (only the two warnings concerning texture.cpp and imagecapture.cpp are still there).
And celestia.exe is now 3.024 KB. Normal?

Adirondack
Cool and Your Welcome. Just to set the record straight, I use the winlibs-new-51.zip for the command line and winlibs-3 for the GUI. The winlibs-3 work with both the 2005 and 2008 compilers. The 2008 compiler converts the vcproj file for use the first thing it does. This is supposed to have an advantage for Vista users. Got no way of checking that though.
cartrite