Comments (2)
On 3 Nov 2015 4:14 am, "hwaterfall" [email protected] wrote:
libssh2-1.6.0
Windows 10I'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 INSTALLand 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_TESTSHowever 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.
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)
- Unused code setting channel ignore mode HOT 3
- After running this code, the memory usage continuously spikes. What could be the reason? libssh2-1.10.0 HOT 9
- KEX extension indicators are lost in libssh2_session_method_pref() HOT 3
- libssh2 tests are failing HOT 1
- Encrypt-then-MAC feature should be tested in remote end's configuration when receiving data
- Fix AIX build HOT 1
- SFTP failed with the error -41 working with Openssl HOT 9
- libssh2_session_handshake() hangs HOT 3
- libssh2_session_handshake LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE HOT 6
- Key exchange issue on Debian 12 (Bookworm) HOT 4
- LIBSSH2_ERROR_EAGAIN ambiguity HOT 2
- Instable connections in case of SSH transfers over nonblocking sockets HOT 7
- IPv6 format & host key validation with known_hosts file
- Memory leak in _libssh2_transport_read HOT 2
- MAXPATHLEN not defined on hurd systems HOT 4
- CMakeLists defines hidden in C flags, but doesn't define LIBSSH2_API to unhide them HOT 4
- The function "agent_sign" seems to always return ERROR HOT 2
- rcvd too much data: Occasional Duplicate Packet Sent Causing Corrupted Data HOT 3
- Password Callback Never Called Causing Invalid State and Segfaults
- session handshake fails on server banners larger than 256 bytes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libssh2.