Compiling zsnes with zget4.2 is mysteriously producing an er

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Post Reply
fzerooo
New Member
Posts: 3
Joined: Sat Apr 26, 2008 9:06 am

Compiling zsnes with zget4.2 is mysteriously producing an er

Post by fzerooo »

Hi

I tried using the zget4.2 tool. After modifying the mirrors file (because one of the servers is no longer up to host the files) it downloaded mingw for me and installed it, and then gave me a compile error! I tried then updating the source to 4538 which is a stable release but it gives the same error. The error is that it cannot find zlib. I thought this was included with the source.. anyway here is the output from zget, can anyone give me a hand? Thanks

Code: Select all

Welcome to ZGet v4.2

Found GCC in "c:\zmingw\MinGW". checking for validity...
Found ZSNES MinGW compiler in "c:\zmingw\MinGW\" !!
Would you like to be able to make DOS builds of ZSNES? (y/N): n
Update ZSNES source? (y/N): y
Update to a particular revision? (y/N): y
The last revision you checked out is: 4499
Enter the revision you would like to update to (note is must be >= 2733): 4538
U    Makefile.in
U    cpu\execute.asm
U    cpu\regs.inc
U    ui.c
U    tools\depbuild.cpp
U    cfg.psr
D    video\2xsaimmx.inc
U    video\copyvid.inc
U    video\procvid.asm
U    video\copyvwin.asm
U    video\2xsaiw.asm
U    SConstruct
U    vcache.asm
U    macros.mac
U    gui\gui.asm
U    gui\menu.asm
U    gui\guifuncs.c
U    gui\guimouse.inc
U    gui\guikeys.inc
U    gui\guimisc.inc
U    gui\guiwindp.inc
U    dos\vesa2.asm
U    configure.in
U    makefile.ms
U    win\winintrf.asm
U    linux\zsnes.1
U    linux\sdlintrf.asm
U    icons\48x48x32.png
U    icons\32x32x32.png
U    icons\16x16x32.png
U    icons\64x64x32.png
U    install-sh
Updated to revision 4538.
Download/Update ZSNES documentation? (y/N): y
Retrieving ZSNES documentation, please wait.
svn: PROPFIND request failed on '/svnroot/zsnes-docs/trunk/zsnes-docs/html'
svn: PROPFIND of '/svnroot/zsnes-docs/trunk/zsnes-docs/html': Could not resolve
hostname `svn.sourceforge.net': The requested name is valid, but no data of the
requested type was found.   (https://svn.sourceforge.net)
Create/Update changelog.txt? (y/N): y
Compile for you? (y/N): y
Clean out object files from previous ZSNES builds first? (y/N): y

Note: Answering yes to the following question can make the compile
      process take an hour (1 GHz CPU) or more depending on your PC.

Use release grade optimization? (y/N): n
Optimize ZSNES build for your CPU's architecture? (y/N): n
g++ -O3 -s -o parsegen.exe parsegen.cpp -lz
parsegen.cpp:37:18: zlib.h: No such file or directory
parsegen.cpp: In function `void parser_generate(std::istream&, std::ostream&, st
d::ostream&, std::string)':
parsegen.cpp:1547: error: `uLong' was not declared in this scope
parsegen.cpp:1547: error: expected `;' before "psr_file_hash"
parsegen.cpp:1558: error: `psr_file_hash' was not declared in this scope
parsegen.cpp:1558: error: ISO C++ forbids declaration of `type name' with no typ
e
parsegen.cpp:1558: error: ISO C++ forbids declaration of `type name' with no typ
e
parsegen.cpp:1558: error: expected primary-expression before "const"
parsegen.cpp:1558: error: expected `)' before "const"
parsegen.cpp:1810: error: `psr_file_hash' was not declared in this scope
make: *** [parsegen.exe] Error 1
ZSNESW.EXE when successfully compiled is in "C:\Users\Micheal\Desktop\zget4.2\zs
nes\src".
If you'd like to use what zget installed without running zget from
the same command prompt session before hand, type the following
each time you start a new command prompt:
SET PATH=c:\zmingw\MinGW\bin;%PATH%


Press any key to continue . . .
joebells
Rookie
Posts: 29
Joined: Thu Apr 17, 2008 10:27 pm

Post by joebells »

I believe they have said no one should be building off the latest sources as its heavily in development. I believe but could easily be wrong.
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

joebells wrote:I believe they have said no one should be building off the latest sources as its heavily in development. I believe but could easily be wrong.
While true, the OP wants to compile r4538, which is the last stable release.

You can pick up r4538 from ipher's WIP site:

http://www.ipherswipsite.com/
joebells
Rookie
Posts: 29
Joined: Thu Apr 17, 2008 10:27 pm

Post by joebells »

eeeh sorry should have read better
fzerooo
New Member
Posts: 3
Joined: Sat Apr 26, 2008 9:06 am

Post by fzerooo »

hi

I downloaded the version off iphers page but it gives the same error about not being able to find zlib :? :? ... any ideas?

Thanks
doktor_kris
Lurker
Posts: 102
Joined: Sat Feb 25, 2006 7:47 pm
Contact:

Post by doktor_kris »

fzerooo
New Member
Posts: 3
Joined: Sat Apr 26, 2008 9:06 am

Post by fzerooo »

doktor_kris wrote:http://www.zlib.net/
If I had to download zlib manually that would defeat the whole purpose of using zget.

Nevertheless I downloaded zlib but zget does not will not find it when it compiles. I places the include files in both the source directory and my mingw include directory... I can only conclude that zget is broken somehow.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

zlib is included in zget.

If it's not working, there's something wrong with your computer most likely. Do you happen to be running Vista?
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Post Reply