Recent Changes - Search:

Home Page


Main

Downloads
Windows
macOS
Linux (via apt / rpm )
Linux wxWidgets
Release Notes

Wiki
Documentation
FAQ

Build CodeLite
Linux
Windows
macOS

Devs
Debug CodeLite Linux
Building Clang
Build wxWidgets (MSW)
Coding Guidelines
Create a Plugin

BuildingLibssh-MinGW


Prerequisites


Build ZLIB



mkdir build
cd build
cmake .. -G"MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\root
make -j16 && make install

Build OpenSSL


OpenSSL does not support building using CMake, however, GitHub contains a repo with a decent OpenSSL build with CMake support, use it:

git clone https://github.com/janbar/openssl-cmake.git
cd openssl-cmake
mkdir build
cd build
cmake .. -G"MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\root
make -j16 && make install

Build libssh


And finally, build libssh

Change src\CMakeLists.txt at around line 322 and add Ws2_32 to the link line:

target_link_libraries(${LIBSSH_SHARED_LIBRARY} ${LIBSSH_LINK_LIBRARIES} ws2_32)

And build:

cd libssh
mkdir build
cmake .. -G"MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\root -DZLIB_ROOT_DIR=C:\root -DOPENSSL_ROOT_DIR=C:\root
make -j16 && make install
Edit - History - Print - Recent Changes - Search
Page last modified on August 16, 2019, at 08:52 PM