aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Missing zlib - Cannot Compile aMule  (Read 3149 times)

za0

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Missing zlib - Cannot Compile aMule
« on: September 15, 2005, 02:50:20 PM »

Hello People,

I just finished going through the "HowTo compile aMule on Win32'. I got everything I needed to compile aMule. The paths I have installed the other software use to be the same as described in the HowTo.

Finally, "configure" was fine,  but as I ran "make", there appeared an error I cannot actually fix (see below).
Code: [Select]
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lz
collect2: ld returned 1 exit status
make[3]: *** [amule.exe] Error 1
make[3]: Leaving directory `/home/user/aMule/aMule-2.0.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/aMule/aMule-2.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/aMule/aMule-2.0.3'
make: *** [all] Error 2
I tried to compile aMule 2.0.2 and 2.0.3. Everytime I got that error.

Maybe you can help me to find a sollution, can't you?

Thank you a lot!

Regards
za0
« Last Edit: September 15, 2005, 03:46:07 PM by za0 »
Logged

za0

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
RE: Missing zlib - Cannot Compile aMule
« Reply #1 on: September 15, 2005, 03:52:44 PM »

I just have found out, what the problem is!

zlib is missing. I remind that in fact, I just downloaded the zlib-123-dll, which is already compiled. I was wondering there is no configure file in the zlib folder. How ever,  in the HowTo compile on Win32 in wiki (i think german version only) there is one thing missing. There are two links to the zlib home page. One to the homepage and the other to the download of the compiled zlib. Well, in fact, you rather get both files. So there should be two download links, so people could access those files faster.

Maybe I will modify that by myself....

Regards
za0
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Logged

za0

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Missing zlib - Cannot Compile aMule
« Reply #3 on: September 15, 2005, 04:42:36 PM »

Quote
Originally posted by Kry
check http://www.amule.org/wiki/index.php/HowTo_compile_on_Win32

That's the one I tried, but in german.
The HowTo in german is little "small".  :rolleyes: The important part is mentioned, but there should be little more detail, i think.  :]

There should be mentioned to download the source file of zlib as well. But there isn't. Look:

Quote
   * zlib compression library dll Version -> Download 123

1. Install the supplied header files "zlib.h" and "zconf.h" into the INCLUDE directory of the MinGW directory. (copy *.h -> somepath/MinGW/include)
...

This hint is for the compiled zlib, but there is no talk about the sources, that are necessary to prevent the error I have mentioned at the begining of the thread.

I think users are wondering, why the cannot do step 11, 12 and 13 (german version), (because they only got the compiled zlib files (zlib-123dll)).
Maybe they skip those and get same problem as I had.

Regards
za0
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Missing zlib - Cannot Compile aMule
« Reply #4 on: September 15, 2005, 05:25:47 PM »

That's why I pointed you to the english version. You can fix the german one with it :)
Logged