问题
I have cloned libssh library and built it with cmake. Building process was like this :
git clone https://git.libssh.org/projects/libssh.git/
mkdir build in libssh directory.
cd build
cmake -DUNIT_TESTING=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
after this line i got this error about cmocka:
Could NOT find CMocka (missing: CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR)
then : rm CMakeCache.txt
cmake ..
make
sudo make install
Now I want to use this library on qt but I have some issues there.
I got errors like :
error: undefined reference to `ssh_session_is_known_server'
I can't use any of function or structures on this library. My OS is ubuntu 18.04.
来源:https://stackoverflow.com/questions/62858346/libsshs-functions-couldnt-be-found-on-qt