Protocol "https" not supported or disabled in libcurl
Note: this is a follow-up for #437 (closed).
I am trying to cross-compile VLCKit for iOS, and I have this error when building rav1e. I first thought it was a cargo issue, but it seems like it's running this cargo capi
extension that they don't know about. I have been tracking this error for a few days, trying to find somebody who may know where it comes from
Problem When cross-compiling VLCKit for iOS (aarch64, though armv7 seems to work), I get the following error:
touch .cargo
cd rav1e && export TARGET_CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang && export TARGET_AR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar && export TARGET_CFLAGS="-mios-version-min=9.0 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -Werror=partial-availability -fno-stack-check -I/Users/jones/Documents/px4/VLCKit/libvlc/vlc/build-iphoneos-arm64/contrib/arm64-iphoneos14.0/include -g -O2" && export RUSTFLAGS="-C lto -C panic=abort -C opt-level=z" && export RUSTUP_USE_HYPER=1 && . /Users/jones/Documents/px4/VLCKit/libvlc/vlc/contrib/bin/.cargo/env && RUSTUP_HOME=/Users/jones/Documents/px4/VLCKit/libvlc/vlc/contrib/bin/.rustup CARGO_HOME=/Users/jones/Documents/px4/VLCKit/libvlc/vlc/contrib/bin/.cargo cargo capi install --target=aarch64-apple-ios --prefix=/Users/jones/Documents/px4/VLCKit/libvlc/vlc/build-iphoneos-arm64/contrib/arm64-iphoneos14.0 --library-type staticlib --release --locked --no-default-features --features=asm
Error: CliError { error: Some(failed to download from `https://crates.io/api/v1/crates/time/0.1.44/download`
Caused by:
[1] Unsupported protocol (Protocol "https" not supported or disabled in libcurl)), exit_code: 101 }
As can be seen above, the command that fails is: cargo capi install --target=aarch64-apple-ios --prefix=/Users/jones/Documents/px4/VLCKit/libvlc/vlc/build-iphoneos-arm64/contrib/arm64-iphoneos14.0 --library-type staticlib --release --locked --no-default-features --features=asm
Steps
- Clone VLCKit (https://code.videolan.org/videolan/VLCKit)
- Run the script:
./compileAndBuildVLCKit.sh -a aarch64 -v
. May need some patches as reported in my report here. - Observe that the error happens
Notes
Running on macOS Catalina 10.15.7