libssh's functions couldn't be found on qt

五迷三道 提交于 2021-02-05 11:15:35

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!