Compiling question

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
patzienta
Posts: 4
Joined: 07.06.2007
With us: 17 years 5 months

Compiling question

Post #1by patzienta » 14.06.2007, 20:23

Hi all,

I tried compiling the source code that I downloaded through TortoiseCVS. I managed to get around several compiling errors, but I am not sure what to do about these two:

Error 16 fatal error C1083: Cannot open source file: '.\octree.cpp': No such file or directory c1xx


Error 43 fatal error RC1015: cannot open include file 'afxres.h'. c:\Celestia14June\celestia\src\celestia\res\celestia.rc 17


Do you have an idea?

-Vlad

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

re

Post #2by John Van Vliet » 17.06.2007, 01:51

what are you using to compile
the old cmd version from MS
visual studio
or what ?

Topic author
patzienta
Posts: 4
Joined: 07.06.2007
With us: 17 years 5 months

Post #3by patzienta » 18.06.2007, 20:04

I used TortoiseCVS to download the source-code. I used this directory: CVSROOT=:pserver:anonymous@celestia.cvs.sourceforge.net:/cvsroot/celestia

I have installed:
- Microsoft Visual C++ 2005 Express Edition
- Microsoft Platform SDK for Windows Server 2003 R2 (I believe this is the last version)

I have copied the 2 folders from the file: winlibs-new.zip to the Celestia folder.

I managed to get around the afxres.h problem (by including the "mfc" folder in the Platform SDK to the VC++ Directories - Include).

However, another one came up:

Code: Select all

fatal error LNK1104: cannot open file 'cel_engine.lib'   Celestia

Do you have a suggestion on how to overcome this one?

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

Post #4by t00fri » 18.06.2007, 21:36

Could it be that Celestia is about the first code that you are trying to compile with that compiler??

Bye Fridger
Image

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

re

Post #5by John Van Vliet » 18.06.2007, 22:02

i am only familiar with Microsoft Visual 2002.net ( i am running Linux at the moment ) so some place in 2005 you will need to tell the compiler where to find cel_engine.lib

Topic author
patzienta
Posts: 4
Joined: 07.06.2007
With us: 17 years 5 months

Post #6by patzienta » 18.06.2007, 23:39

Yes, I think I need to tell the compiler where to find the cel_engine.lib file. However, the file is not in the Source-Code that I downloaded. (I did a search on it and it didn't find anything). So, if it is not there...where do I tell the compiler to find it?

As for the previous question - I have compiled other programs (simple ones) and they worked fine.

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #7by cartrite » 18.06.2007, 23:54

Hi patzienta,
cel_engine.lib is created during the compile process. It is all the object files in the celengine directory. The reason the file cel_engine.lib is not being found is that some objectfile was not created due to an error or there is a linking problem. Look at the output on the cmd console. You could also look in celestia/src/celengine/res folder to see if it was created.

cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Topic author
patzienta
Posts: 4
Joined: 07.06.2007
With us: 17 years 5 months

Post #8by patzienta » 19.06.2007, 03:00

I believe I made it through the octree.cpp & cel_engine.lib errors.

There is another one that popped up -

Code: Select all

cannot open file libc.lib

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #9by cartrite » 19.06.2007, 17:51

libc.lib should be in Microsoft Visual C++ Toolkit 2003/lib or if your using something different then a similar folder. If it is there then you probably don't have your environment variables set correctly. That tells the OS where to locate different files.

cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Post #10by duds26 » 05.07.2007, 12:57

Could you post it please, libc.lib is not in the Microsoft Visual C++ Toolkit 2003 R2....
It would make things go much faster than having to download the Visual C++ Toolkit 2003!
(forced to use Visual C++ 2005 because 2003 doesn't work on vista)
Last edited by duds26 on 15.04.2018, 21:36, edited 2 times in total.

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

Post #11by selden » 05.07.2007, 15:59

libc.lib is proprietary Microsoft software. You must get it from an official Microsoft source. Please do not ask others to violate their licenses.

[edit]
However, I've seen Web pages claiming that it isn't actually needed if you're using VS 2005 and that
You should be able to get around it by specifically ignoring it in the linker properties (Project... Linker/ Input/Ignore Specific Library).


[/edit]
Selden

duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Post #12by duds26 » 14.07.2007, 17:14

Have ignored it and get other problems. Seen that libcmt.lib is used now for having a multithreading advantage.

Anyway this is my output:
1>------ Build started: Project: Celestia, Configuration: Debug Win32 ------
1>Linking...
1>CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
1>Build log was saved at "file://c:\Users\Peter\CVS&SVN\CVS repositories\celestia\src\celestia\Debug\BuildLog.htm"
1>Celestia - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

When I get this to work mayby I'll make a tutorial for compiling celestia from scratch, that is up to date and uses free tools.!

PS: Mayby Eclipse with the C/C++ tools is a good IDE for compiling, it has a lot of advanced features and is FREE so anybody can use it!

cyber_space_doc
Posts: 53
Joined: 19.03.2007
With us: 17 years 8 months
Location: united kingdom

Post #13by cyber_space_doc » 17.07.2007, 00:44

you need to delete the manifest and rebuild all.

I added libc.lib to the ignore list on the linker tab. I also had to download libintl.lib from sourceforge.
System: AMD 3200+
512Mb RAM
GeForce 7300 FX 256 mb VRAM
Windows XP Home Edition
Nforce4 Motherboard
Service Pack 2
_____________________

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

re

Post #14by John Van Vliet » 17.07.2007, 04:53

hi here is a link to my old Visual Studio.net 2002 ( 7.0) .sln files
with ALL the include.h's and ALL *.lib's including libc.lib
it dose build 1.4.1 but NOT cvs
http://z33.zupload.com/download.php?fil ... path=42579

duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Post #15by duds26 » 17.07.2007, 12:03

thanks this is very usefull

cyber_space_doc
Posts: 53
Joined: 19.03.2007
With us: 17 years 8 months
Location: united kingdom

Post #16by cyber_space_doc » 17.07.2007, 20:45

what is libc.lib used for?
System: AMD 3200+

512Mb RAM

GeForce 7300 FX 256 mb VRAM

Windows XP Home Edition

Nforce4 Motherboard

Service Pack 2

_____________________

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

Post #17by selden » 17.07.2007, 20:52

It's the statically linked single-threaded C and C++ runtime library. A search of Microsoft's web site will find more than you want to know...

[edit]
Runtime libraries provide things like the I/O subroutines and other routines for interfacing with the operating sytstem.
[/edit]
Selden

cyber_space_doc
Posts: 53
Joined: 19.03.2007
With us: 17 years 8 months
Location: united kingdom

Post #18by cyber_space_doc » 17.07.2007, 22:31

I don't need to link to libc.lib to build Celestia. I wonder what libraries Celestia will need on windows if I use the flag /NODEFAULTLIB.

[edit]

If I don't ignore libc.lib I get linker errors complaining about symbol clashes.

btw: I am not sure about how to ensure celx support on the cvs version because I get lua linker errors. How do I compile the contents of the folder Celscript?

[/edit]
System: AMD 3200+

512Mb RAM

GeForce 7300 FX 256 mb VRAM

Windows XP Home Edition

Nforce4 Motherboard

Service Pack 2

_____________________


Return to “Development”