FreeOrion

Forums for the FreeOrion project
It is currently Thu Jun 20, 2013 12:37 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Removed gzio.c from zlib
PostPosted: Tue Aug 24, 2010 1:34 pm 
Offline
Space Floater

Joined: Sun Aug 15, 2010 5:20 pm
Posts: 32
I tried building libpng. Didn't work.

error wrote:
1>------ Build started: Project: zlib, Configuration: DLL Debug Win32 ------
1>gzio.c
1>c1 : fatal error C1083: Cannot open source file: '..\..\..\zlib\gzio.c': No such file or directory


And:

zlib and libpng wrote:
zlib changelog:
Changes in 1.2.3.9 (21 Feb 2010)
- Expunge gzio.c

libpng changelog:
version 1.5.0beta10 [February 25, 2010]
Removed unused gzio.c from contrib/pngminim gather and makefile scripts


libpng 1.5.0 is not out yet although I couldn't find any references to gzio.c in gather or makefile scripts in libpng 1.4.3. Nor did a search find any in the project. Has anyone seen this?


Top
 Profile  
 
 Post subject: Re: Removed gzio.c from zlib
PostPosted: Tue Aug 24, 2010 3:46 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 8062
Location: Vancouver, BC
Are you just having trouble building zlib? Is this in any way specific to FreeOrion?

The only references to gzio.c I see in the libpng 1.2.34 project files are in the zlib project. It is there in the source files, though. I haven't examined any later versions.


Top
 Profile  
 
 Post subject: Re: Removed gzio.c from zlib
PostPosted: Tue Aug 24, 2010 5:49 pm 
Offline
Space Floater

Joined: Sun Aug 15, 2010 5:20 pm
Posts: 32
Geoff the Medio wrote:
Are you just having trouble building zlib? Is this in any way specific to FreeOrion?


I updated the FO project and rebuilt it but once I run the exe it crashes almost immediately. It does throw some exception but I can't see it. Is there any log for CTDs? Anyway the compile page said that I should rebuild libpng in the occasion of such CTD. This led to zlib problem.

Geoff the Medio wrote:
The only references to gzio.c I see in the libpng 1.2.34 project files are in the zlib project. It is there in the source files, though. I haven't examined any later versions.


It starts to compile it and this is what happens.

Buildlog wrote:
1>------ Build started: Project: zlib, Configuration: DLL Debug Win32 ------
1>Compiling...
1>gzio.c
1>c1 : fatal error C1083: Cannot open source file: '..\..\..\zlib\gzio.c': No such file or directory
1>Build log was saved at "file://c:\FreeOrionDev\lpng143\libpng-1.4.3\projects\visualc71\Win32_DLL_Debug\ZLib\BuildLog.htm"
1>zlib - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Top
 Profile  
 
 Post subject: Re: Removed gzio.c from zlib
PostPosted: Tue Aug 24, 2010 7:06 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 8062
Location: Vancouver, BC
etintel wrote:
I updated the FO project and rebuilt it but once I run the exe it crashes almost immediately.

What version did you have before updating, and were you able to build and run before doing the update?

Quote:
It does throw some exception but I can't see it.

Run from the command line (cmd.exe) to see text output after crashes.

Quote:
Is there any log for CTDs?

Depending when the crash happened, there could be something in the standard log files: freeorion.log or ogre.log in C:\Users\Username\AppData\Roaming\FreeOrion

Quote:
Anyway the compile page said that I should rebuild libpng in the occasion of such CTD. This led to zlib problem.

That's one possible cause of a crash. Are you using MSVC 2008? If so, you shouldn't need to recompile zlib and/or libpng; the versions in the SDK should work.

If you're using MSVC 2010 and have never compiled and run freeorion successfully, that might be the issue. The log files or the text of the exception on the command line might help with that.

Quote:
It starts to compile it and this is what happens.

It looks like there's a problem with the zlib project files then. Try removing gzoi.c from the zlib project (not the libpng project).


Top
 Profile  
 
 Post subject: Re: Removed gzio.c from zlib
PostPosted: Tue Aug 24, 2010 7:57 pm 
Offline
Space Floater

Joined: Sun Aug 15, 2010 5:20 pm
Posts: 32
Geoff the Medio wrote:
etintel wrote:
I updated the FO project and rebuilt it but once I run the exe it crashes almost immediately.

What version did you have before updating, and were you able to build and run before doing the update?


Yes. The SDK worked flawlessly.
Quote:
Quote:
It does throw some exception but I can't see it.

Run from the command line (cmd.exe) to see text output after crashes.


Ok, that's a good hint.

Exception wrote:
main() caught exception(std::runtime_error): ERROR: The following categories were defined in techs.txt, but no techs were defined that fell within them: "CONSTRUCTION_CATEGORY" "ECONOMICS_CATEGORY" "GROWTH CATEGORY" "PRODUCTION CATEGORY" "SHIPS CATEGORY"


Quote:
It looks like there's a problem with the zlib project files then. Try removing gzoi.c from the zlib project (not the libpng project).


I'm still trying to find it. Not anymore though.


Top
 Profile  
 
 Post subject: Re: Removed gzio.c from zlib
PostPosted: Tue Aug 24, 2010 8:27 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 8062
Location: Vancouver, BC
etintel wrote:
Exception wrote:
main() caught exception(std::runtime_error): ERROR: The following categories were defined in techs.txt, but no techs were defined that fell within them: "CONSTRUCTION_CATEGORY" "ECONOMICS_CATEGORY" "GROWTH CATEGORY" "PRODUCTION CATEGORY" "SHIPS CATEGORY"

Looks like there's a problem with content parsing. The most likely cause is trying to read in content files for a different version than what you're running. Try deleting your config.xml. If that doesn't work, make sure your techs.txt is updated to the latest from SVN.

Likely libpng and zlib are unrelated to this crash.


Top
 Profile  
 
 Post subject: Re: Removed gzio.c from zlib
PostPosted: Tue Aug 24, 2010 9:00 pm 
Offline
Space Floater

Joined: Sun Aug 15, 2010 5:20 pm
Posts: 32
Geoff the Medio wrote:
Looks like there's a problem with content parsing. The most likely cause is trying to read in content files for a different version than what you're running. Try deleting your config.xml. If that doesn't work, make sure your techs.txt is updated to the latest from SVN.


Great. It's working. Again.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group