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

when flutter build macos for Manager, it shows error: Undefined symbols for architecture arm64: "_g_players", referenced from: +[VideoOutlet outletForPlayer:withTextureRegistry:] in VideoOutlet.o #221

Closed
fzyzcjy opened this issue May 22, 2022 · 6 comments

Comments

@fzyzcjy
Copy link
Owner

fzyzcjy commented May 22, 2022

context

can reproduce locally

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented May 22, 2022

Run flutter build macos
Changing current working directory to: /Users/runner/work/flutter_convenient_test/flutter_convenient_test/packages/convenient_test_manager

💪 Building with sound null safety 💪

Running pod install...                                             39.[8](https://github.com/fzyzcjy/flutter_convenient_test/runs/6543552468?check_suite_focus=true#step:8:9)s
Building macOS application...                                   
[ 66%] Building CXX object CMakeFiles/dart_vlc_core.dir/api/api.cc.o
/Users/runner/work/flutter_convenient_test/flutter_convenient_test/packages/convenient_test_manager/macos/Flutter/ephemeral/.symlinks/plugins/dart_vlc/dartvlc/api/api.cc:41:48: warning: cannot delete expression with pointer-to-'void' type 'void *' [-Wdelete-incomplete]
static void DestroyObject(void*, void* peer) { delete peer; }
                                               ^      ~~~~
1 warning generated.
[100%] Linking CXX static library libdart_vlc_core.a
[100%] Built target dart_vlc_core
Install the project...
-- Install configuration: ""
-- Installing: /Users/runner/work/flutter_convenient_test/flutter_convenient_test/packages/convenient_test_manager/macos/Pods/../Flutter/ephemeral/.symlinks/plugins/dart_vlc/macos/deps/lib/libdart_vlc_core.a
install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/runner/work/flutter_convenient_test/flutter_convenient_test/packages/convenient_test_manager/macos/Pods/VLCKit/VLCKit.xcframework/macos-arm64_x86_64/VLCKit.framework/VLCKit (for architecture x86_64)
install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/runner/work/flutter_convenient_test/flutter_convenient_test/packages/convenient_test_manager/macos/Pods/VLCKit/VLCKit.xcframework/macos-arm64_x86_64/VLCKit.framework/VLCKit (for architecture arm64)
ld: warning: ignoring file /Users/runner/work/flutter_convenient_test/flutter_convenient_test/packages/convenient_test_manager/macos/Pods/../Flutter/ephemeral/.symlinks/plugins/dart_vlc/macos/deps/lib/libdart_vlc_core.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Users/runner/hostedtoolcache/flutter/3.0.1-stable/x64/.pub-cache/hosted/pub.dartlang.org/dart_vlc-0.1.[9](https://github.com/fzyzcjy/flutter_convenient_test/runs/6543552468?check_suite_focus=true#step:8:10)/macos/deps/lib/libdart_vlc_core.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_g_players", referenced from:
      +[VideoOutlet outletForPlayer:withTextureRegistry:] in VideoOutlet.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented May 22, 2022

maybe it is because: it wants to link to arm64 but we only have x86_64?

notice this:

ld: warning: ignoring file /Users/runner/work/flutter_convenient_test/flutter_convenient_test/packages/convenient_test_manager/macos/Pods/../Flutter/ephemeral/.symlinks/plugins/dart_vlc/macos/deps/lib/libdart_vlc_core.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Users/runner/hostedtoolcache/flutter/3.0.1-stable/x64/.pub-cache/hosted/pub.dartlang.org/dart_vlc-0.1.9/macos/deps/lib/libdart_vlc_core.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented May 22, 2022

image

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented May 22, 2022

try to only build for x86_64, ignore arm64

currently see both

image

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented May 22, 2022

experiment: modify two places

image

image

seems ok!

image

@github-actions
Copy link

github-actions bot commented Jun 5, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant