Git Product home page Git Product logo

Comments (2)

alamaison avatar alamaison commented on August 24, 2024

On 3 Nov 2015 4:14 am, "hwaterfall" [email protected] wrote:

libssh2-1.6.0
Windows 10

I'm able to successfully build libssh2 on Windows but I cannot install
it. docs\INSTALL_MAKE indicates:

If you are not using CMake for your own project, install libssh2

cmake
cmake --build .
cmake --build . --target install
or
cmake --build . --target INSTALL

and then specify the install location to your project in the normal
way for your build environment. If you don't like the default install
location, add -DCMAKE_INSTALL_PREFIX= when initially
configuring the project.
<\snip>

however, when I run:
cmake -DCMAKE_INSTALL_PREFIX= -DZLIB_LIBRARY= -DZLIB_INCLUDE_DIR=
-DENABLE_ZLIB_COMPRESSION=ON -DCRYPTO_BACKEND=OpenSSL -DOPENSSL_ROOT_DIR=

These two work:
cmake --build .
cmake --build . --target RUN_TESTS

However remains empty after running this:
cmake --build . --target INSTALL

I'm not sure I understand the problem. What were you expecting to see after
cmake --build . --target INSTALL, and how does that differ from what you
see?

I've searched all the files in both libssh2-1.6.0.tar.gz from libssh2.org
and libssh2-libssh2-1.6.0.zip from github, but CMAKE_INSTALL_PREFIX seems
to only appear in docs\INSTALL_MAKE.

CMAKE_INSTALL_PREFIX is built-in CMake functionality. You can read more
about it in their docs:
https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html

from libssh2.

latentcode avatar latentcode commented on August 24, 2024

I'm not sure I understand the problem. What were you expecting to see after
cmake --build . --target INSTALL, and how does that differ from what you
see?

According to the comments I pasted from docs\INSTALL_MAKE, adding DCMAKE_INSTALL_PREFIX="chosen\prefix" will cause libssh2 to be installed into chosen\prefix when cmake --build . --target INSTALL is run, but that's not what I observed.

I ran:
cmake -DCMAKE_INSTALL_PREFIX="myssh2\install\location" -DZLIB_LIBRARY="my\zlib\lib\location" -DZLIB_INCLUDE_DIR="my\zlib\include\location" -DENABLE_ZLIB_COMPRESSION=ON -DCRYPTO_BACKEND=OpenSSL -DOPENSSL_ROOT_DIR="my\openssl\root"

After building and testing I ran:
cmake --build . --target INSTALL

I expect to have libssh2 installed into my\zlib\lib\location however, I found that it was empty. When I couldn't find CMAKE_INSTALL_PREFIX defined anywhere, I figured that was the problem.

I tried it again tonight though while writing this posted and it worked as expected blush. Sorry for the false alarm.

Thanks for the pointer to the cmake documentation!

from libssh2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.