I need CRYPTO_LIBRARY, but what is it?

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

Post Reply
User avatar
beetlenaut
Developer
Posts: 2517
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

I need CRYPTO_LIBRARY, but what is it?

Post by beetlenaut »

I can't compile BfW any more.
cmake wrote:CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
CRYPTO_LIBRARY (ADVANCED)
linked by target "wesnoth" in directory /home/dan/wesnoth/wesnoth/src
"CRYPTO_LIBRARY" is pretty non-specific. I have about a hundred crypto-related libraries and packages available, but I don't know which one(s) to install. What is this message referring to, exactly? I'm using openSUSE Leap 42.3 if it helps.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Tad_Carlucci
Developer
Posts: 503
Joined: April 24th, 2016, 4:18 pm

Re: I need CRYPTO_LIBRARY, but what is it?

Post by Tad_Carlucci »

On my system (Arch Linux) it's libcrypto.so from OpenSSL
I forked real life and now I'm getting merge conflicts.
User avatar
beetlenaut
Developer
Posts: 2517
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: I need CRYPTO_LIBRARY, but what is it?

Post by beetlenaut »

Thanks! It's apparently the same file on my system. It's in the libopenssl-devel rpm if anyone else is looking for it.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
User avatar
Pentarctagon
Project Manager
Posts: 4574
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: I need CRYPTO_LIBRARY, but what is it?

Post by Pentarctagon »

The Compilingwesnoth wiki page also has a note on this.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
vodot
Posts: 97
Joined: October 12th, 2011, 5:32 pm
Location: Camas, WA

Re: I need CRYPTO_LIBRARY, but what is it?

Post by vodot »

Didn't work for me out of the box either using ccmake on ubuntu xenial 16.04 (via crouton on HP chromebook 13 G1) with openssl installed.

'make' dies with the following output:

Code: Select all

[ 79%] Building CXX object src/CMakeFiles/wesnoth-client.dir/build_info.cpp.o
/home/nate/Downloads/Source/wesnoth-1.14.0/src/build_info.cpp:34:28: fatal error: openssl/crypto.h: No such file or directory
compilation terminated.
src/CMakeFiles/wesnoth-client.dir/build.make:1502: recipe for target 'src/CMakeFiles/wesnoth-client.dir/build_info.cpp.o' failed
make[2]: *** [src/CMakeFiles/wesnoth-client.dir/build_info.cpp.o] Error 1
CMakeFiles/Makefile2:288: recipe for target 'src/CMakeFiles/wesnoth-client.dir/all' failed
make[1]: *** [src/CMakeFiles/wesnoth-client.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
User avatar
Pentarctagon
Project Manager
Posts: 4574
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: I need CRYPTO_LIBRARY, but what is it?

Post by Pentarctagon »

You also need libssl-dev.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
vodot
Posts: 97
Joined: October 12th, 2011, 5:32 pm
Location: Camas, WA

Re: I need CRYPTO_LIBRARY, but what is it?

Post by vodot »

Seriously, I would've sworn I installed that as well, until I tried it just now and saw that I didn't. Trying again...
User avatar
Pentarctagon
Project Manager
Posts: 4574
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: I need CRYPTO_LIBRARY, but what is it?

Post by Pentarctagon »

Wesnoth 1.14 also runs its build/unit tests on a 16.04 docker image built with these packages installed, so really that would be the best place to look, since if there were missing dependencies there then none of Wesnoth's build tests would work.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply