[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libssh-0.6.3 does not compile on Windows
[Thread Prev] | [Thread Next]
- Subject: libssh-0.6.3 does not compile on Windows
- From: Alexander Leupold <alexander.leupold@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 23 Apr 2014 12:02:09 +0200
- To: libssh@xxxxxxxxxx
Hi everyone, i tried to compile libssh on my own with Visual Studio 2012 (Windows 7). This happens: 2>C:\Users\leupold\Desktop\libssh-0.6.3\src\libcrypto.c(26): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "sys/time.h": No such file or directory The line has recently been added and believe there is no sys/time.h on Windows. If i replace it with time.h, it does compile and the dll worked in my program, but i didn't test extensively. However, as far as i recall, gettimeofday(&tv, NULL); which is used in ssh_reseed(void); does not do the same on Windows and Linux. Or did i just miss something here? Different question: When i run cmake, i get the following message: "You have called ADD_LIBRARY for library ssh_threads_shared without any source files. This typically indicates a problem with your CMakeLists.txt file" If i don't need the threaded version of the library, can i ignore this? It was possible to build the ALL_BUILD.vcxproj with Visual Studio, apart from the issues described above. I attatched a file with the cmake output and the settings i used. Regards, Alexander Leupold
I did the following:
- Install OpenSSL, ZLib and CMake
- Download the libssh source tarball
- run cmake-gui.exe:
- browse source: C:/Users/leupold/Desktop/libssh-0.6.3
- add entry: ZLIB_ROOT_DIR, PATH, C:/lib/zlib
- add entry: OPENSSL_ROOT_DIR, PATH, C:/lib/OpenSSL-Win32
- configure
- generate
--> The configure step
The C compiler identification is MSVC 17.0.61030.0
Check for working C compiler using: Visual Studio 11
Check for working C compiler using: Visual Studio 11 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Could NOT find NSIS (missing: NSIS_MAKE)
Found ZLIB: C:/lib/zlib/include
Found OpenSSL: optimized;C:/lib/OpenSSL-Win32/lib/VC/ssleay32MD.lib;debug;C:/lib/OpenSSL-Win32/lib/VC/ssleay32MDd.lib;optimized;C:/lib/OpenSSL-Win32/lib/VC/libeay32MD.lib;debug;C:/lib/OpenSSL-Win32/lib/VC/libeay32MDd.lib
Looking for include file pthread.h
Looking for include file pthread.h - not found
Found Threads: TRUE
Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIR)
Could NOT find NaCl (missing: NACL_LIBRARIES NACL_INCLUDE_DIRS)
Looking for argp.h
Looking for argp.h - not found
Looking for pty.h
Looking for pty.h - not found
Looking for termios.h
Looking for termios.h - not found
Looking for unistd.h
Looking for unistd.h - not found
Looking for util.h
Looking for util.h - not found
Looking for 3 include files winsock2.h, ..., wspiapi.h
Looking for 3 include files winsock2.h, ..., wspiapi.h - found
Looking for include files winsock2.h, ws2tcpip.h
Looking for include files winsock2.h, ws2tcpip.h - found
Looking for openssl/aes.h
Looking for openssl/aes.h - found
Looking for openssl/blowfish.h
Looking for openssl/blowfish.h - found
Looking for openssl/des.h
Looking for openssl/des.h - found
Looking for openssl/ecdh.h
Looking for openssl/ecdh.h - found
Looking for openssl/ec.h
Looking for openssl/ec.h - found
Looking for openssl/ecdsa.h
Looking for openssl/ecdsa.h - found
Looking for isblank
Looking for isblank - not found
Looking for strncpy
Looking for strncpy - found
Looking for vsnprintf
Looking for vsnprintf - found
Looking for snprintf
Looking for snprintf - not found
Looking for poll
Looking for poll - not found
Looking for select
Looking for select - not found
Looking for getaddrinfo
Looking for getaddrinfo - not found
Looking for ntohll
Looking for ntohll - not found
Looking for htonll
Looking for htonll - not found
Looking for _strtoui64
Looking for _strtoui64 - found
Looking for _vsnprintf_s
Looking for _vsnprintf_s - found
Looking for _vsnprintf
Looking for _vsnprintf - found
Looking for _snprintf
Looking for _snprintf - found
Looking for _snprintf_s
Looking for _snprintf_s - found
Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE
Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE - Failed
Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE
Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE - Success
Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION
Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION - Failed
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
You have called ADD_LIBRARY for library ssh_threads_shared without any source files. This typically indicates a problem with your CMakeLists.txt file
The CXX compiler identification is MSVC 17.0.61030.0
Check for working CXX compiler using: Visual Studio 11
Check for working CXX compiler using: Visual Studio 11 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
********************************************
********** libssh build options : **********
zlib support: ON
libgcrypt support: OFF
libnacl support: OFF
SSH-1 support: OFF
SFTP support: ON
Server support : ON
GSSAPI support : 0
Pcap debugging support : ON
With static library: OFF
Unit testing: OFF
Client code Unit testing: OFF
Public API documentation generation
Benchmarks: OFF
********************************************
Configuring done
--> The generate step
CMake Error: CMake can not determine linker language for target: ssh_threads_shared
Generating done
| RES: libssh-0.6.3 does not compile on Windows | Renan Biegelmeyer da Silva <renan.silva@xxxxxxxxxxxxx> |