You are not logged in.

#1 2021-10-30 21:45:47

HarmesanCheese
Member
Registered: 2021-10-29
Posts: 14

[SOLVED] CMake can't find OpenSSL

I'm trying to compile etterna and it requires openssl and whenever I run cmake it says

CMake Error at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:2
30 (message):
   Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the 
   system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
   version "1.1.1l")
Call Stack (most recent call first):
   /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake-3.21/Modules/FindOpenSSL.cmake:574 (find_package_handle_standard_args)
   CMakeLists.txt:62 (find_package)

So I set OPENSSL_ROOT_DIR to /etc/ssl and nothing changed

Last edited by HarmesanCheese (2021-10-30 22:56:30)

Offline

#2 2021-10-30 22:00:09

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: [SOLVED] CMake can't find OpenSSL

Are you building https://aur.archlinux.org/packages/etterna/ ?
Please post the full output of makepkg or the failing build command.

Offline

#3 2021-10-30 22:01:36

HarmesanCheese
Member
Registered: 2021-10-29
Posts: 14

Re: [SOLVED] CMake can't find OpenSSL

I was building from source because I heard the etterna aur package was out of date

Offline

#4 2021-10-30 22:10:49

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: [SOLVED] CMake can't find OpenSSL

The AUR PKGBUILD is for 0.70.4 which is the newest tag in https://github.com/etternagame/etterna.

If you are not using the PKGBUILD please post the commands you used along with their full outputs.  Also the source version you are using and where you obtained it from.

I can not reproduce the issue using the AUR PKGBUILD.

Offline

#5 2021-10-30 22:39:12

HarmesanCheese
Member
Registered: 2021-10-29
Posts: 14

Re: [SOLVED] CMake can't find OpenSSL

I installed it through the AUR and it seems to have worked but I don't know where it downloaded to

Offline

#6 2021-10-30 22:44:53

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: [SOLVED] CMake can't find OpenSSL

HarmesanCheese wrote:

I installed it through the AUR and it seems to have worked but I don't know where it downloaded to

Do you mean installed to?
Assuming the package was installed,  to see files owned by a package

pacman -Ql etterna

See also Pacman#Querying_package_databases

If the built package has not been installed.  Install etterna-0.70.4-1-x86_64.pkg.tar.zst which is probably in the same director as the PKBUILD.

Offline

#7 2021-10-30 22:55:47

HarmesanCheese
Member
Registered: 2021-10-29
Posts: 14

Re: [SOLVED] CMake can't find OpenSSL

Thanks I found it and it works

Offline

Board footer

Powered by FluxBB