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

target python needs to be patched #939

Closed
tcaduser opened this issue Sep 26, 2024 · 0 comments
Closed

target python needs to be patched #939

tcaduser opened this issue Sep 26, 2024 · 0 comments

Comments

@tcaduser
Copy link
Contributor

Describe the bug

As discussed in s #929 #905 #901, libb2 needs to be removed, otherwise kivy fails to build. Specifically, it is the target pythons that are failing.

To Reproduce

Most homebrew installations have libb2 installed. When kivy iOS build fails, removing the package fixes the problem:

brew uninstall --ignore-dependencies libb2

Expected behavior

kivy iOS should build without error.

Logs
From #901

[DEBUG   ] ld: building for 'iOS', but linking in dylib (/opt/homebrew/Cellar/libb2/0.98.1/lib/libb2.1.dylib) built for 'macOS'
[DEBUG   ] ld: building for 'iOS', but linking in dylib (/opt/homebrew/Cellar/libb2/0.98.1/lib/libb2.1.dylib) built for 'macOS'
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[DEBUG   ] clang: error: linker command failed with exit code 1 (use -v to see invocation)

Additional context

The configure script for target python uses pkg-config to find an install of libb2. Unfortunately, it finds the macOS one:

% pkg-config --libs libb2  
-L/opt/homebrew/Cellar/libb2/0.98.1/lib -lb2

A patch file should be created so that the recipe for python3 so the configure script does not check for libb2.

tcaduser added a commit to tcaduser/kivy-ios that referenced this issue Sep 26, 2024
tcaduser added a commit to tcaduser/kivy-ios that referenced this issue Sep 26, 2024
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

1 participant