chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.09k stars 450 forks source link

Regarding error: Error: icu_util. cc (247)] Couldn't mmap icu data file #3706

Closed qht1003077897 closed 1 month ago

qht1003077897 commented 1 month ago

This is not a problem, but a help manual. My goal is that when someone encounters this error, they can search for a solution from the issue.


If you want to refer to cefsimple to integrate cef into your C++project, be sure to set rpath to your executable program, such as:

set_target_properties(CefTest PROPERTIES LINK_FLAGS "-Wl,--disable-new-dtags")
set_target_properties(CefTest PROPERTIES LINK_FLAGS "-Wl,-rpath=../lib:./lib")

Because CEF relies on your rpath option when searching for the 'icudtl. dat' file internally. If you don't do this, you will get an error:

Error: icu_util. cc (247)] Couldn't mmap icu data file

I hope I can provide you with some help

magreenblatt commented 1 month ago

Correct, you need to set rpath (or use LD_PRELOAD) when CEF binaries are in a different directory from the main executable.