iSSH2
iSSH2 copied to clipboard
Build Failed - Libssh2 1.9.0
I get an error while compiling for iphoneos. I saw an similar issue #5.
Maybe its something similar.
Thanks.
./iSSH2.sh --platform=iphoneos --xcodeproj=../ssh/ --min-version=13.2
Initializing...
Libssh2 version: 1.9.0 (Automatically detected)
OpenSSL version: 1.1.1h (Automatically detected)
SDK version: 14.0 (Automatically detected)
Xcode version: 12.0.1 (Automatically detected)
Architectures: arm64 arm64e x86_64
Platform: iphoneos
Platform min version: 13.2
Downloading openssl-1.1.1h.tar.gz
################################################################################################################# 100,0%
MD5: 53840c70434793127a3574433494e8d3
Extracting openssl-1.1.1h.tar.gz
Building OpenSSL 1.1.1h, please wait...
- iPhoneOS arm64 done!
- iPhoneOS arm64e done!
- iPhoneSimulator x86_64 done!
Building libssl.a fat library...
Building libcrypto.a fat library...
Copying headers...
Building done.
Downloading libssh2-1.9.0.tar.gz
################################################################################################################# 100,0%################################################################################################################# 100,0%
MD5: 1beefafe8963982adc84b408b2959927
Extracting libssh2-1.9.0.tar.gz
Building Libssh2 1.9.0:
Build failed, cleaning up temporary files...
Try ./iSSH2.sh --platform=iphoneos --min-version=8.0
. This builds fat librariies, that can be used in iOS 14.1 as well.
Thanks for this quick reply.
But I still got this error ... I have tried to remove the downloaded files but still the same error...
Can we get more output?
Fresh build on Catalina 10.15.7 with Xcode 14.1:
tfr@TFRs-Mac Documents % git clone https://github.com/Frugghi/iSSH2.git
Cloning into 'iSSH2'...
remote: Enumerating objects: 156, done.
remote: Total 156 (delta 0), reused 0 (delta 0), pack-reused 156
Receiving objects: 100% (156/156), 22.51 MiB | 5.54 MiB/s, done.
Resolving deltas: 100% (91/91), done.
tfr@TFRs-Mac Documents % cd ~/Documents/iSSH2
tfr@TFRs-Mac iSSH2 % ./iSSH2.sh --platform=iphoneos --min-version=8.0
Initializing...
Libssh2 version: 1.9.0 (Automatically detected)
OpenSSL version: 1.1.1h (Automatically detected)
SDK version: 14.1 (Automatically detected)
Xcode version: 12.1 (Automatically detected)
Architectures: arm64 arm64e armv7 armv7s i386 x86_64
Platform: iphoneos
Platform min version: 8.0
Downloading openssl-1.1.1h.tar.gz
######################################################################### 100.0%
MD5: 53840c70434793127a3574433494e8d3
Extracting openssl-1.1.1h.tar.gz
Building OpenSSL 1.1.1h, please wait...
- iPhoneOS arm64 done!
- iPhoneOS arm64e done!
- iPhoneOS armv7 done!
- iPhoneOS armv7s done!
- iPhoneSimulator i386 done!
- iPhoneSimulator x86_64 done!
Building libssl.a fat library...
Building libcrypto.a fat library...
Copying headers...
Building done.
Downloading libssh2-1.9.0.tar.gz
######################################################################### 100.0%######################################################################### 100.0%
MD5: 1beefafe8963982adc84b408b2959927
Extracting libssh2-1.9.0.tar.gz
Building Libssh2 1.9.0:
- iPhoneOS arm64 done!
- iPhoneOS arm64e done!
- iPhoneOS armv7 done!
- iPhoneOS armv7s done!
- iPhoneSimulator i386 done!
- iPhoneSimulator x86_64 done!
Building libssh2.a fat library...
Copying headers...
Building done.
Cleaning up temporary files...
Can we get more output?
Remove the >> "$LOG" 2>&1
at the end of iSSH2-libssh2.sh (3 times) and the output will be shown on screen.
Now I am getting the following error.
Which deps are required?
configure: ERROR: No openssl crypto library found!
Specify --with-crypto=$backend and/or the neccessary library search prefix.
Known crypto backends: auto, openssl, libgcrypt, mbedtls, wincng
configure: error: Required dependencies are missing!
Build failed, cleaning up temporary files...
My openssl version LibreSSL 2.8.3
No dependencies on your Mac are requred as far as I know. Do a fresh git clone and/or try adding --with-crypto=openssl
to your command line.
This error was caused by a space in the directory path where iSSH was run. The OPENSSLDIR
variable in iSSH-libssh2.sh
doesn't handle escaping the space before it's passed into ./configure
.
I fixed it by moving the iSSH directory to a path that didn't contain any spaces.
Please close the issue, now that you have found a fix.