Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libnetconf2 build with static build of libssh #502

Open
srikanthsubbaramu opened this issue Aug 12, 2024 · 1 comment
Open

Libnetconf2 build with static build of libssh #502

srikanthsubbaramu opened this issue Aug 12, 2024 · 1 comment
Labels
is:question Issue is actually a question.

Comments

@srikanthsubbaramu
Copy link

Hi Michal,

we have built libssh with -DSHARED_LIBS=OFF for libssh 0.10.6, when we try to compile with same,
[root@lpt-fhyz314 build]# cmake -DBUILD_SHARED_LIBS=OFF -DLIBSSH_LIBRARIES=/usr/local/lib64/libssh.a ..
CMake Warning at CMakeLists.txt:178 (message):
valgrind executable not found! Disabling memory leaks tests.

-- Could NOT find CMocka (missing: CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR) (Required is at least version "1.0.1")
-- Disabling tests because of missing CMocka
-- Could NOT find Uncrustify (missing: UNCRUSTIFY) (Required is at least version "0.77")
-- Could NOT find MbedTLS (missing: MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARIES) (Required is at least version "3.5.0")
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find LibSSH (missing: LIBSSH_LIBRARIES) (Required is at least
version "0.9.5")
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
CMakeModules/FindLibSSH.cmake:113 (find_package_handle_standard_args)
CMakeLists.txt:255 (find_package)

i see above issue even if /usr/local/lib64/libssh.a is present, can you let us know if we have any alternative?

Thanks,
Srikanth

@michalvasko
Copy link
Member

It should work if you also define LIBSSH_INCLUDE_DIRS where the include files are.

@michalvasko michalvasko added the is:question Issue is actually a question. label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

2 participants