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

macOS M1 编译失败 #26

Closed
chifandeyu opened this issue Nov 2, 2022 · 2 comments
Closed

macOS M1 编译失败 #26

chifandeyu opened this issue Nov 2, 2022 · 2 comments

Comments

@chifandeyu
Copy link

Launching lib/main.dart on macOS in debug mode...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:x86_64, id:829131F2-ACF5-50F4-B0E5-D79A170562A0 }
{ platform:macOS, name:Any Mac }
Undefined symbols for architecture x86_64:
  "CefURIEncode(CefStringBase<CefStringTraitsUTF16> const&, bool)", referenced from:
      (anonymous namespace)::GetDataURI(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in cef_bridge.o
  "CefInitialize(CefMainArgs const&, CefStructBase<CefSettingsTraits> const&, scoped_refptr<CefApp>, void*)", referenced from:
      +[CefWrapper startCef] in CefWrapper.o
  "CefCurrentlyOn(cef_thread_id_t)", referenced from:
      WebviewApp::OnContextInitialized() in cef_bridge.o
      WebviewHandler::OnAfterCreated(scoped_refptr<CefBrowser>) in cef_bridge.o
      WebviewHandler::DoClose(scoped_refptr<CefBrowser>) in cef_bridge.o
      WebviewHandler::OnBeforeClose(scoped_refptr<CefBrowser>) in cef_bridge.o
      WebviewHandler::OnLoadError(scoped_refptr<CefBrowser>, scoped_refptr<CefFrame>, cef_errorcode_t, CefStringBase<CefStringTraitsUTF16> const&, CefStringBase<CefStringTraitsUTF16> const&) in cef_bridge.o
      WebviewHandler::CloseAllBrowsers(bool) in cef_bridge.o
      WebviewHandler::GetViewRect(scoped_refptr<CefBrowser>, CefRect&) in cef_bridge.o
      ...
  "CefBase64Encode(void const*, unsigned long)", referenced from:
      (anonymous namespace)::GetDataURI(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in cef_bridge.o
  "CefExecuteProcess(CefMainArgs const&, scoped_refptr<CefApp>, void*)", referenced from:
      +[CefWrapper init] in CefWrapper.o
  "CefQuitMessageLoop()", referenced from:
      WebviewHandler::OnBeforeClose(scoped_refptr<CefBrowser>) in cef_bridge.o
  "CefDoMessageLoopWork()", referenced from:
      +[CefWrapper doMessageLoopWork] in CefWrapper.o
  "CefBrowserHost::CreateBrowser(CefWindowInfo const&, scoped_refptr<CefClient>, CefStringBase<CefStringTraitsUTF16> const&, CefStructBase<CefBrowserSettingsTraits> const&, scoped_refptr<CefDictionaryValue>, scoped_refptr<CefRequestContext>)", referenced from:
      WebviewApp::OnContextInitialized() in cef_bridge.o
  "CefCommandLine::GetGlobalCommandLine()", referenced from:
      WebviewHandler::IsChromeRuntimeEnabled() in cef_bridge.o
  "CefScopedLibraryLoader::Load(bool)", referenced from:
      CefScopedLibraryLoader::LoadInMain() in CefWrapper.o
  "CefScopedLibraryLoader::CefScopedLibraryLoader()", referenced from:
      +[CefWrapper init] in CefWrapper.o
  "CefScopedLibraryLoader::~CefScopedLibraryLoader()", referenced from:
      +[CefWrapper init] in CefWrapper.o
  "cef::logging::LogMessage::LogMessage(char const*, int, int)", referenced from:
      WebviewApp::OnContextInitialized() in cef_bridge.o
      WebviewHandler::WebviewHandler() in cef_bridge.o
      WebviewHandler::WebviewHandler() in cef_bridge.o
      WebviewHandler::OnAfterCreated(scoped_refptr<CefBrowser>) in cef_bridge.o
      WebviewHandler::DoClose(scoped_refptr<CefBrowser>) in cef_bridge.o
      WebviewHandler::OnBeforeClose(scoped_refptr<CefBrowser>) in cef_bridge.o
      scoped_refptr<CefBrowser>::operator->() const in cef_bridge.o
      ...
  "cef::logging::LogMessage::~LogMessage()", referenced from:
      WebviewApp::OnContextInitialized() in cef_bridge.o
      WebviewHandler::WebviewHandler() in cef_bridge.o
      WebviewHandler::WebviewHandler() in cef_bridge.o
      WebviewHandler::OnAfterCreated(scoped_refptr<CefBrowser>) in cef_bridge.o
      WebviewHandler::DoClose(scoped_refptr<CefBrowser>) in cef_bridge.o
      WebviewHandler::OnBeforeClose(scoped_refptr<CefBrowser>) in cef_bridge.o
      scoped_refptr<CefBrowser>::operator->() const in cef_bridge.o
      ...
  "_cef_string_utf16_clear", referenced from:
      CefWindowInfoTraits::clear(_cef_window_info_t*) in cef_bridge.o
      CefStringTraitsUTF16::clear(_cef_string_utf16_t*) in cef_bridge.o
      CefBrowserSettingsTraits::clear(_cef_browser_settings_t*) in cef_bridge.o
      CefStringTraitsUTF16::clear(_cef_string_utf16_t*) in CefWrapper.o
      CefSettingsTraits::clear(_cef_settings_t*) in CefWrapper.o
  "_cef_string_utf16_to_utf8", referenced from:
      CefStringTraitsUTF16::to_string(_cef_string_utf16_t const*) in cef_bridge.o
  "_cef_string_utf8_clear", referenced from:
      CefStringTraitsUTF16::to_string(_cef_string_utf16_t const*) in cef_bridge.o
  "_cef_string_utf8_to_utf16", referenced from:
      CefStringTraitsUTF16::from_string(char const*, unsigned long, _cef_string_utf16_t*) in cef_bridge.o
      CefStringTraitsUTF16::from_string(char const*, unsigned long, _cef_string_utf16_t*) in CefWrapper.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
** BUILD FAILED **
@chifandeyu chifandeyu reopened this Nov 2, 2022
@hlwhl
Copy link
Owner

hlwhl commented Nov 2, 2022

看一下 #20 ,如果还有问题可以再打开

@hlwhl hlwhl closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2022
@TeekTon
Copy link

TeekTon commented Oct 27, 2024

你好,请问解决了嘛,我在m1上面也遇到了这个问题

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

3 participants