aMule Forum

English => Compilation problems => Topic started by: Global HKM on July 15, 2008, 06:18:55 AM

Title: Howto: Compile crypto.
Post by: Global HKM 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
Title: Re: Howto: Compile crypto.
Post by: armadillo 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.
Title: Re: Howto: Compile crypto.
Post by: Kry 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.
Title: Re: Howto: Compile crypto.
Post by: phoenix 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!
Title: Re: Howto: Compile crypto.
Post by: skolnick 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.
Title: Re: Howto: Compile crypto.
Post by: phoenix 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!