aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Howto: Compile crypto.  (Read 7462 times)

Global HKM

  • Guest
Howto: Compile crypto.
« on: July 15, 2008, 06:18:55 AM »

:O Now I know I have been gone from ED2K scene for sometimes now and haven't kept up with all the changes with aMule in general. As I am still using old CVS version Jan 1 2008 so I try to download the new CVN package off hirnriss and found that aMule now it requires crypto. Since I didn't find any help on wiki.aMule I decided to write my own for forum if anyone is looking for howto.

Code: [Select]
"checking for crypto++ version >= 5.1... configure: error:
Could not find cryptopp header file "cryptlib.h".
Please check if the path "/usr" is valid."

Download the latest crypto package from "http://www.cryptopp.com/#download" in this case package "Crypto++ 5.5.2". Now open your console terminal and do the following commands to install the crypto package.

A) mkdir crypto
B) mv cryptopp552.zip ./crypto
C) cd crypto
D) unzip cryptopp552.zip
E) make
F) cp libcryptopp.a /usr/lib/
G) mkdir /usr/include/cryptopp
H) cp *.h /usr/include/cryptopp/
I) ldconfig
« Last Edit: July 15, 2008, 06:28:06 AM by Global HKM »
Logged

armadillo

  • Approved Newbie
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 24
Re: Howto: Compile crypto.
« Reply #1 on: July 15, 2008, 05:10:31 PM »

try to use "make -f" while build, and specify the path of libcryptopp manually.
see compillation guide in wiki.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Howto: Compile crypto.
« Reply #2 on: July 16, 2008, 11:52:04 AM »

I may be in too much of a good mood, but let's keep everything civil and hope it'll stay like this.

That goes specially for you HKM.

BTW: Why are you installing things manually? Just use --prefix=/usr/ in the configure and do a make install.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Howto: Compile crypto.
« Reply #3 on: July 17, 2008, 03:41:25 PM »

There is a script in the tarball that teaches everything you need to know about compiling the external libraries. It is called amule_build_install.sh. There you will find instructions on how to build cryptopp properly.

Cheers!
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Howto: Compile crypto.
« Reply #4 on: July 22, 2008, 04:44:25 AM »

I just wanted to point two differences I see between this procedure and the one I followed to install on my fedora:

1. I had to use unzip -a cryptopp552.zip (the -a converts the text files from DOS EOL to UNIX EOLS characters)
2. I did make install, and installed successfully.

Regards.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Howto: Compile crypto.
« Reply #5 on: July 22, 2008, 04:57:33 AM »

1. I had to use unzip -a cryptopp552.zip (the -a converts the text files from DOS EOL to UNIX EOLS characters)
Ok, I added your suggestion.

2. I did make install, and installed successfully.
That does work indeed, but requires supervisor access. The procedure suggested in amule_build_install.sh does not.

Cheers!
Logged