How to use libssh in VS10

后端 未结 4 1434
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 22:16

How can I implement libssh as a library my compiler will recognize? I\'m using Visual Studio 2010 C++, and I\'ve included the Boost library with no problems, but the process

4条回答
  •  感动是毒
    2020-12-13 22:45

    The standard windows installer does not come with static libs.

    IMPORTANT You'll end up with openssl dynamically linked (zlib optionally) anyway. Are you sure you want this?

    In case you do, you need

    • A C compiler
    • CMake >= 2.6.0.
    • openssl >= 0.9.8 or
    • gcrypt >= 1.4

    optional: - libz >= 1.2

    1. Download the source zip,
    2. create an out-of-sourcetree build directory,
    3. start cmake-gui, tweak
      • select source and build dirs
      • click configure (e.g. I chose VS2010 Win64 build files)
      • open VStudio, tweak and build as static library (instead of DLL)

    Hope this will help you get started.

提交回复
热议问题