Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./build.sh iOS build does not complete #126

Open
agiokas opened this issue Mar 10, 2020 · 6 comments
Open

./build.sh iOS build does not complete #126

agiokas opened this issue Mar 10, 2020 · 6 comments

Comments

@agiokas
Copy link

agiokas commented Mar 10, 2020

I tried to run ./build.sh iOS build

But I get the following error

[ -n "/Users/A.Giokas/dev/SGPlayer/build/build/iOS/openssl-i386/output" ] # should be set by top Makefile...
if [ -n "" ]; then
set -e;
echo installing gost;
pfx=lib;
if expr "darwin-i386-cc" : "Cygwin" >/dev/null; then
sfx=".so";
cp cyggost.dll /Users/A.Giokas/dev/SGPlayer/build/build/iOS/openssl-i386/output/lib/engines/${pfx}gost$sfx.new;
else
case "-I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -fembed-bitcode -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN" in
DSO_BEOS) sfx=".so";;
DSO_DLFCN) sfx=expr ".1.0.0.dylib" : '.*\(\.[a-z][a-z]*\)' \| ".so";;
DSO_DL) sfx=".sl";;
DSO_WIN32) sfx="eay32.dll"; pfx=;;
*) sfx=".bad";;
esac;
cp ${pfx}gost$sfx /Users/A.Giokas/dev/SGPlayer/build/build/iOS/openssl-i386/output/lib/engines/${pfx}gost$sfx.new;
fi;
chmod 555 /Users/A.Giokas/dev/SGPlayer/build/build/iOS/openssl-i386/output/lib/engines/${pfx}gost$sfx.new;
mv -f /Users/A.Giokas/dev/SGPlayer/build/build/iOS/openssl-i386/output/lib/engines/${pfx}gost$sfx.new /Users/A.Giokas/dev/SGPlayer/build/build/iOS/openssl-i386/output/lib/engines/${pfx}gost$sfx;
fi
making install in apps...
installing openssl
cp: openssl: No such file or directory
make[1]: *** [install] Error 1
make: *** [install_sw] Error 1

@amorsn
Copy link

amorsn commented Mar 23, 2020

./build.sh iOS build arm64
this command completes successfully

@JordanMcCulloch
Copy link

JordanMcCulloch commented Aug 21, 2020

This fork [1] fixes the issue and is well maintained!

[1] https://github.com/MaddTheSane/SGPlayer

@yycking
Copy link

yycking commented Aug 29, 2020

This fork [1] fixes the issue and is well maintained!

[1] https://github.com/MaddTheSane/SGPlayer

Could you suggest which version to build?

I try to used least version. But...
clang: error: invalid iOS deployment version '-miphoneos-version-min=12.0', iOS 10 is the maximum deployment target for 32-bit targets [-Winvalid-ios-deployment-target]

version: e8332fb
libcrypto.a(libcrypto-lib-aes_cbc.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file 'SGPlayer/build/build/iOS/universal/lib/libcrypto.a' for architecture arm64

TIP: MaddTheSane/SGPlayer have swift code

@f-liutao
Copy link

f-liutao commented Sep 1, 2020

This fork [1] fixes the issue and is well maintained!
[1] https://github.com/MaddTheSane/SGPlayer

Could you suggest which version to build?
version: e8332fb
libcrypto.a(libcrypto-lib-aes_cbc.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file 'SGPlayer/build/build/iOS/universal/lib/libcrypto.a' for architecture arm64

the same problem with you.
@JordanMcCulloch @yycking Any help would be much appreciated!!

@f-liutao
Copy link

f-liutao commented Sep 1, 2020

This fork [1] fixes the issue and is well maintained!
[1] https://github.com/MaddTheSane/SGPlayer

Could you suggest which version to build?

I try to used least version. But...
clang: error: invalid iOS deployment version '-miphoneos-version-min=12.0', iOS 10 is the maximum deployment target for 32-bit targets [-Winvalid-ios-deployment-target]

I have the same problem, but solved it.
two options you can select if you build iOS.

  1. remove "armv7" at FF_ALL_ARCHS_IOS
  2. change '-miphoneos-version-min=12.0' to '-miphoneos-version-min=8.0' at code block of elif [ "$FF_ARCH" = "armv7" ]; then

@yycking
Copy link

yycking commented Sep 16, 2020

I had update build script on
yycking@fe43a10

But It had Warning
Could not create compact unwind for _ff_cfhd_init_vlcs: stack subq instruction is too different from dwarf stack size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants