LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2008, 09:50 AM   #1
Choucete
Member
 
Registered: Dec 2007
Location: Buenos Aires
Distribution: Slackware 12.0
Posts: 83

Rep: Reputation: 16
Is there a way to compile cryptopp from source?


I'm trying to compile aMule from source, and at some point configure threw an error to cryptopp not being found. So, I download it and start looking for a way to compile it, but there's no configure, so some googling led me to just unzipping the file in a directory and passing it as a parameterto configure, which then passed.

But when running make I get the following error message:

...
Linking aMule
g++: /usr/src/cryptopp//libcryptopp.a(note: this is the directory I created): No such file or directory
make[3]: *** [amule] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

So, I guess that means that crypto++ isn't actually correctly installed in my system.

I also found this link http://www.amule.org/wiki/index.php/...ypto_.3E.3D5.1, directly from aMule, where it guides you through a series of steps and states things like: "libcrypto has no configure/make at all so you have to guess correct parameters and settings".

Could someone point me in the right direction with this? Is the way they suggest the only to get libcrypto++ working? Or am I missing something?
 
Old 09-01-2008, 11:22 AM   #2
Techmeology
LQ Newbie
 
Registered: Aug 2006
Distribution: Arch
Posts: 16

Rep: Reputation: 0
Usually libraries go in the /usr/lib directory, however:
  1. Check that the file /usr/src/cryptopp/libcryptopp.a actually exists
  2. Find out why there is a double backslash in the path
Hope this helps
 
Old 09-01-2008, 11:32 AM   #3
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
The aMule instructions for libcryptopp are for building the library on a MIPS machine. Since you're using Slackware, I'm guessing you're not using MIPS but an ix86 or x86_64 machine. Building libcryptopp on one of these architectures is simple.
Code:
make -f GNUmakefile && cryptest.exe v && make install
This will install the library in the /usr hierarchy. If you want it installed somewhere else like /usr/local, then you will need to edit GNUmakefile before you start.
 
Old 09-01-2008, 12:42 PM   #4
Choucete
Member
 
Registered: Dec 2007
Location: Buenos Aires
Distribution: Slackware 12.0
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by weibullguy View Post
The aMule instructions for libcryptopp are for building the library on a MIPS machine. Since you're using Slackware, I'm guessing you're not using MIPS but an ix86 or x86_64 machine.
You're right. I completely misunderstood the MIPS message.

Quote:
Building libcryptopp on one of these architectures is simple.
Code:
make -f GNUmakefile && cryptest.exe v && make install
This will install the library in the /usr hierarchy. If you want it installed somewhere else like /usr/local, then you will need to edit GNUmakefile before you start.
So, I created a new directory in my home and unzipped the contents there, after which I executed the command as you recommended. Right now it is installing, throwing messages of the kind
Code:
g++ -DNDEBUG -g -02 -c [different filenames]
What seems to be a kind of mystery to me at this point is how to determine that I need to use a command of the kind you gave me. Is there a pattern to determine when it is needed, like when I see a configure* I know that I need to configure, make, make install? I saw that command before but never thought of it for this.
 
Old 09-01-2008, 01:15 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Quote:
Originally Posted by Choucete View Post
What seems to be a kind of mystery to me at this point is how to determine that I need to use a command of the kind you gave me. Is there a pattern to determine when it is needed, like when I see a configure* I know that I need to configure, make, make install? I saw that command before but never thought of it for this.
I guess experience and some understanding of the build process. The make is the same make as the one you use in the GNU autotools process (configure && make && make install). By default, make looks for a file called Makefile in the directory from which you execute make. The -f tells make to use the file following the -f switch. It can be named whatever you want and can be in a totally different directory.
 
Old 09-01-2008, 11:25 PM   #6
Choucete
Member
 
Registered: Dec 2007
Location: Buenos Aires
Distribution: Slackware 12.0
Posts: 83

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by weibullguy View Post
I guess experience and some understanding of the build process. The make is the same make as the one you use in the GNU autotools process (configure && make && make install). By default, make looks for a file called Makefile in the directory from which you execute make. The -f tells make to use the file following the -f switch. It can be named whatever you want and can be in a totally different directory.
Another question: reviewing the zip file I can see the GNUmakefile, but where is "cryptest.exe"?
 
Old 09-02-2008, 05:17 AM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
It's built when you run make.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: CryptoPP - The cryptographic library for C++ LXer Syndicated Linux News 0 04-23-2007 12:31 AM
can't compile from source.... garyozzy Ubuntu 7 11-30-2005 05:00 PM
Compile from source kaon Slackware 4 07-19-2004 11:06 AM
To compile X from source or not? Rounan Linux - Software 2 02-12-2004 04:23 PM
How do I compile from source? graystarr Red Hat 3 09-19-2003 01:35 PM


All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration