iSSH2 icon indicating copy to clipboard operation
iSSH2 copied to clipboard

Build Failed - Libssh2 1.9.0

Open nikomaxi opened this issue 3 years ago • 8 comments

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...

nikomaxi avatar Nov 02 '20 20:11 nikomaxi

Try ./iSSH2.sh --platform=iphoneos --min-version=8.0. This builds fat librariies, that can be used in iOS 14.1 as well.

Jan-E avatar Nov 02 '20 20:11 Jan-E

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?

nikomaxi avatar Nov 02 '20 20:11 nikomaxi

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...

Jan-E avatar Nov 02 '20 21:11 Jan-E

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.

Jan-E avatar Nov 02 '20 21:11 Jan-E

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

nikomaxi avatar Nov 02 '20 21:11 nikomaxi

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.

Jan-E avatar Nov 02 '20 21:11 Jan-E

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.

yo-bur avatar Feb 01 '21 23:02 yo-bur

Please close the issue, now that you have found a fix.

Jan-E avatar Apr 28 '21 17:04 Jan-E