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

构建失败 #20

Closed
tuhao-world opened this issue Oct 10, 2022 · 11 comments
Closed

构建失败 #20

tuhao-world opened this issue Oct 10, 2022 · 11 comments
Labels
good first issue Good for newcomers

Comments

@tuhao-world
Copy link

tuhao-world commented Oct 10, 2022

该插件无法通过编译,所有日志如下:
Launching lib/main.dart on macOS in debug mode...
Building macOS application...
Undefined symbols for architecture x86_64:
"CefURIEncode(CefStringBase const&, bool)", referenced from:
(anonymous namespace)::GetDataURI(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in cef_bridge.o
"CefInitialize(CefMainArgs const&, CefStructBase const&, scoped_refptr, void*)", referenced from:
+[CefWrapper startCef] in CefWrapper.o
"CefCurrentlyOn(cef_thread_id_t)", referenced from:
SimpleApp::OnContextInitialized() in cef_bridge.o
SimpleHandler::OnTitleChange(scoped_refptr, CefStringBase const&) in cef_bridge.o
SimpleHandler::OnAfterCreated(scoped_refptr) in cef_bridge.o
SimpleHandler::DoClose(scoped_refptr) in cef_bridge.o
SimpleHandler::OnBeforeClose(scoped_refptr) in cef_bridge.o
SimpleHandler::OnLoadError(scoped_refptr, scoped_refptr, cef_errorcode_t, CefStringBase const&, CefStringBase const&) in cef_bridge.o
SimpleHandler::CloseAllBrowsers(bool) in cef_bridge.o
...
"CefBase64Encode(void const*, unsigned long)", referenced from:
(anonymous namespace)::GetDataURI(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in cef_bridge.o
"CefExecuteProcess(CefMainArgs const&, scoped_refptr, void*)", referenced from:
+[CefWrapper init] in CefWrapper.o
"CefQuitMessageLoop()", referenced from:
SimpleHandler::OnBeforeClose(scoped_refptr) in cef_bridge.o
"CefDoMessageLoopWork()", referenced from:
+[CefWrapper doMessageLoopWork] in CefWrapper.o
"CefBrowserHost::CreateBrowser(CefWindowInfo const&, scoped_refptr, CefStringBase const&, CefStructBase const&, scoped_refptr, scoped_refptr)", referenced from:
SimpleApp::OnContextInitialized() in cef_bridge.o
"CefBrowserView::GetForBrowser(scoped_refptr)", referenced from:
SimpleHandler::OnTitleChange(scoped_refptr, CefStringBase const&) in cef_bridge.o
"CefCommandLine::GetGlobalCommandLine()", referenced from:
SimpleHandler::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:
SimpleApp::OnContextInitialized() in cef_bridge.o
SimpleHandler::SimpleHandler(bool) in cef_bridge.o
SimpleHandler::SimpleHandler(bool) in cef_bridge.o
SimpleHandler::OnTitleChange(scoped_refptr, CefStringBase const&) in cef_bridge.o
scoped_refptr::operator->() const in cef_bridge.o
scoped_refptr::operator->() const in cef_bridge.o
SimpleHandler::OnAfterCreated(scoped_refptr) in cef_bridge.o
...
"cef::logging::LogMessage::~LogMessage()", referenced from:
SimpleApp::OnContextInitialized() in cef_bridge.o
SimpleHandler::SimpleHandler(bool) in cef_bridge.o
SimpleHandler::SimpleHandler(bool) in cef_bridge.o
SimpleHandler::OnTitleChange(scoped_refptr, CefStringBase const&) in cef_bridge.o
scoped_refptr::operator->() const in cef_bridge.o
scoped_refptr::operator->() const in cef_bridge.o
SimpleHandler::OnAfterCreated(scoped_refptr) 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)
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at /System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/rsync/rsync-55/rsync/rsync.c(244) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
** BUILD FAILED **

Exception: Build process failed

@hlwhl
Copy link
Owner

hlwhl commented Oct 10, 2022

检查一下是否下载并解压放置了readme中提到的对应架构的库压缩包?

@hlwhl hlwhl added the good first issue Good for newcomers label Oct 10, 2022
@iOSluozhiping
Copy link

我也遇到这个问题 请问放置到哪个目录下

@hlwhl
Copy link
Owner

hlwhl commented Oct 13, 2022

@iOSluozhiping
image
项目clone下来后 webview_cef/macos/third/cef

@iOSluozhiping
Copy link

image

您好 是这样吧 但还是报错

@iOSluozhiping
Copy link

我是intel的 下载了intel的包

@hlwhl
Copy link
Owner

hlwhl commented Oct 13, 2022

@iOSluozhiping 删除example/macos/Profile.lock后,在example中执行下flutter clean后再次尝试运行

@iOSluozhiping
Copy link

可以了 谢谢 如果我想在自己项目里用 该放到哪里

@hlwhl
Copy link
Owner

hlwhl commented Oct 13, 2022

@iOSluozhiping 目前可以放在pub自动下载的缓存文件里,后续会想办法优化依赖的下载

@hlwhl hlwhl pinned this issue Oct 13, 2022
@iOSluozhiping
Copy link

在我的项目里运行时候报错
image

image

@iOSluozhiping

This comment was marked as off-topic.

@hlwhl

This comment was marked as off-topic.

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

No branches or pull requests

3 participants