cmake .. is not showing any helpfull error message #1717
Replies: 5 comments 7 replies
-
This is a |
Beta Was this translation helpful? Give feedback.
-
Thanks for your input. Now it is done successfully. Consider adjusting the PKG_CONFIG_PATH environment variable for other path than user/local. $ pkg-config --cflags openssl |
Beta Was this translation helpful? Give feedback.
-
thanks for your quick input |
Beta Was this translation helpful? Give feedback.
-
hi, when BUILD_CLI=ON is there below error is coming. [ 94%] Building C object cli/CMakeFiles/netopeer2-cli.dir/__/compat/compat.c.o |
Beta Was this translation helpful? Give feedback.
-
hi michal, I am building at linux, and it is not cross comile. /usr/bin/ld: CMakeFiles/netopeer2-cli.dir/commands.c.o: undefined reference to symbol 'GENERAL_NAME_free@@libcrypto.so.10' it looks CLI is looking for this, and it is there in my build machine still looks not able to fetch it. This issue is visible in latest vetsion coming from december2024. ==============cmake option========= cmake -DCMAKE_INSTALL_COMPONENT=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/netopeer2/ -DDATA_DIR=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/netopeer2/ -DYANG_MODULE_DIR=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/netopeer2/ -DCMAKE_INSTALL_PREFIX:PATH=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/netopeer2/ -DENABLE_TESTS=ON -DBUILD_CLI=OFF -DSYSREPO_SETUP=ON -DSYSREPO_SETUP=ON -DLIBYANG_LIBRARY=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/libyang/lib64/libyang.so.3.6.10 -DLIBYANG_INCLUDE_DIR=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/libyang/include/ -DSYSREPO_LIBRARY=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/sysrepo/lib64/libsysrepo.so.7.29.10 -DSYSREPO_INCLUDE_DIR=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/sysrepo/include/ -DSYSREPOCTL_EXECUTABLE=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/sysrepo/bin/ -DSYSREPOCFG_EXECUTABLE=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/sysrepo/bin/ -DLIBNETCONF2_LIBRARY=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/libnetconf2-3.5.5/build/local/lib64/libnetconf2.so.4.4.5 -DLIBNETCONF2_INCLUDE_DIR=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/libnetconf2-3.5.5/build/local/include/ -DLIBSSH_INCLUDE_DIRS=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/libssh/include/libssh/ -DLIBSSH_LIBRARIES=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/libssh/lib64/libssh.so.4.10.1 -DMBEDCRYPTO_LIBRARY=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/mbedtls/lib64/libmbedcrypto.so.3.6.3 -DMBEDTLS_LIBRARY=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/mbedtls/lib64/libmbedtls.so.3.6.3 -DMBEDX509_LIBRARY=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/mbedtls/lib64/libmbedx509.so.3.6.3 -DMBEDTLS_INCLUDE_DIR=/home/mp1172/5g/mp1_y15_oc8.4/netoopeer2/mbedtls/include/ -DBUILD_CLI=ON ../ ================================= [ 63%] Building C object cli/CMakeFiles/netopeer2-cli.dir/commands.c.o |
Beta Was this translation helpful? Give feedback.
-
../CMakeLists.txt and ../CMakeModules/FindLibNETCONF2.cmake files i have gone through but same error
CMake Error at /usr/lib64/python2.7/site-packages/cmake/data/share/cmake-3.28/Modules/FindPkgConfig.cmake:619 (message):
The following required packages were not found:
Call Stack (most recent call first):
/usr/lib64/python2.7/site-packages/cmake/data/share/cmake-3.28/Modules/FindPkgConfig.cmake:841 (_pkg_check_modules_internal)
CMakeLists.txt:154 (pkg_check_modules)
====================== all done except netopeer2==============
[mp1172@siq5g netoopeer2]$ ls
curl libnetconf2-3.5.5 libssh-libssh-0.11.1 ln2 mbedtls-3.6.3.tar.gz netopeer2-2.2.35 openssl-openssl-3.4.1 pcre2-pcre2-10.45 v2.2.35.tar.gz v3.7.8.tar.gz
curl-8_13_0.tar.gz libssh libyang mbedtls mbedtls-mbedtls-3.6.3 openssl pcre2 sysrepo v3.3.10.tar.gz
curl-curl-8_13_0 libssh-0.11.1.tar.gz libyang-3.7.8 mbedtls-3.6.3.tar.bz2 netopeer2 openssl-3.4.1.tar.gz pcre2-10.45.tar.gz sysrepo-3.3.10 v3.5.5.tar.gz
[mp1172@siq5g netoopeer2]$
==========================
Beta Was this translation helpful? Give feedback.
All reactions