c++ - Compile libssh with msvc for x64 -
first of all, i’m not expert in build libraries source cmake , stuff. unfortunately have to. followed steps mention in install document of libssh , read few archived mails nothing helps me out. sounds easy on web, didn’t bring work. here i’ve done far:
- download source (version 0.7.5) libssh git
- as mentioned in install file, download , install cmake (version 3.9.1)
- as mentioned in install file, download , install openssl (version 1.0.2)
- ignore zlib, because optional
everything installed in default paths. starts cmake-gui.exe , set source code …/src
folder , binaries …/build
folder, press ‘configure’ button, visual studio 12 2013 win64. first error generated: install library targets given no destination
. okay, checks make file use variable lib_install_dir
set path, in case path empty. add item cmake-gui named lib_install_dir
path ../build
dir.
fine, configuration works, generate works, open project works. try build ‘all_build’ ends in error: c1083: cannot open include file: 'config.h': no such file or directory
. searched whole disk file, nothing found. believe cmake have generate file, guessing right? or file missing? hope can me out! or maybe have link compiled lib? doesn’t understand why libssh doesn’t offers download, x64 quite normal today.
initial inspiration right one, missing config.h generated cmake.
if using cmake-gui.exe, expects path source, heading ‘where source code:’. thought means path source code files, located under …/src
, wrong. need set path root folder, in case …
, works charm.
also need change openssl version 1.0.2, because somewhere around 30 function declarations has changed.
Comments
Post a Comment