cef3-project custom build problem

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

cef3-project custom build problem

Postby akaoray » Thu Oct 12, 2017 8:58 am

Hello. I build cef3 with custom flags:
Code: Select all
CEF_USE_GN=1

export GN_DEFINES="enable_ac3_eac3_audio_demuxing=true enable_hevc_demuxing=true enable_dolby_vision_demuxing=true enable_hls_sample_aes=true enable_mse_mpeg2ts_stream_parser=true enable_webrtc=true proprietary_codecs=true ffmpeg_branding='Chrome' enable_nacl=false is_debug=false remove_webcore_debug_symbols=true symbol_level=0 target_cpu='x64' enable_widevine=true use_sysroot=true use_allocator='none' dcheck_always_on=true is_official_build=true treat_warnings_as_errors=false"

python automate-git.py --download-dir=. --branch=3202 --x64-build --force-clean --no-debug-build --minimal-distrib --build-target=cefsimple


Build was successful.
After i try to implement my build to cef3-project
I change in cmake/DownloadCEF.cmake CEF_DOWNLOAD_URL to my custom url, where I put my cef3 build. And change CMakeLists.txt to my version (3.3202.1673.gcd60f7c)
After download and compilation i have error on all examples and tests:
Code: Select all
Linking CXX executable Release/cefsimple
../../../../../../third_party/cef/cef_binary_3.3202.1673.gcd60f7c_linux64/Release/libcef.so: undefined reference to `safe_browsing::SettingsResetPromptController::ShowSettingsResetPrompt(Browser*, safe_browsing::SettingsResetPromptController*)'
../../../../../../third_party/cef/cef_binary_3.3202.1673.gcd60f7c_linux64/Release/libcef.so: undefined reference to `ui::Service::InProcessConfig::~InProcessConfig()'
../../../../../../third_party/cef/cef_binary_3.3202.1673.gcd60f7c_linux64/Release/libcef.so: undefined reference to `ui::Service::InProcessConfig::InProcessConfig()'
../../../../../../third_party/cef/cef_binary_3.3202.1673.gcd60f7c_linux64/Release/libcef.so: undefined reference to `ui::Service::Service(ui::Service::InProcessConfig const*)'
collect2: error: ld returned 1 exit status
make[3]: *** [third_party/cef/cef_binary_3.3202.1673.gcd60f7c_linux64/tests/cefsimple/Release/cefsimple] Ошибка 1
make[2]: *** [third_party/cef/cef_binary_3.3202.1673.gcd60f7c_linux64/tests/cefsimple/CMakeFiles/cefsimple.dir/all] Ошибка 2
make[1]: *** [third_party/cef/cef_binary_3.3202.1673.gcd60f7c_linux64/tests/cefsimple/CMakeFiles/cefsimple.dir/rule] Ошибка 2
make: *** [cefsimple] Ошибка 2

:

What could be the problem?
Thank you.
akaoray
Newbie
 
Posts: 5
Joined: Tue Aug 02, 2016 11:45 am

Re: cef3-project custom build problem

Postby magreenblatt » Thu Oct 12, 2017 10:53 am

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cef3-project custom build problem

Postby DanKegel » Mon Oct 16, 2017 12:37 pm

I hit that, too (also on a self-built 3202 cef)... but are you sure that's the right fix? It's a different symbol.
DanKegel
Mentor
 
Posts: 59
Joined: Fri Nov 08, 2013 12:46 pm

Re: cef3-project custom build problem

Postby magreenblatt » Mon Oct 16, 2017 10:00 pm

Another fix may be required for the missing InProcessConfig symbol.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cef3-project custom build problem

Postby apte » Sat Oct 28, 2017 5:57 am

I ran into the same today!
Debug x64 Linux
Code: Select all
$ ninja -C out/Debug_GN_x64 cef chrome_sandbox
ninja: Entering directory `out/Debug_GN_x64'
[1/5] SOLINK ./libcef.so
FAILED: libcef.so libcef.so.TOC
python "../../build/toolchain/gcc_solink_wrapper.py" --readelf="readelf" --nm="nm" --sofile="./libcef.so" --tocfile="./libcef.so.TOC" --output="./libcef.so"  -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -fuse-ld=gold -B../../third_party/binutils/Linux_x64/Release/bin -Wl,--threads -Wl,--thread-count=4 -Wl,--icf=all -m64 -Werror -Wl,--gdb-index -nostdlib++ -Wl,--export-dynamic -o "./libcef.so" -Wl,-soname="libcef.so" @"./libcef.so.rsp"
../../chrome/browser/embedded_ui_service_info_factory.cc:18: error: undefined reference to 'ui::Service::InProcessConfig::InProcessConfig()'
../../chrome/browser/embedded_ui_service_info_factory.cc:23: error: undefined reference to 'ui::Service::InProcessConfig::~InProcessConfig()'
../../buildtools/third_party/libc++/trunk/include/memory:3065: error: undefined reference to 'ui::Service::Service(ui::Service::InProcessConfig const*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
apte
Newbie
 
Posts: 2
Joined: Sat Oct 28, 2017 5:54 am

Re: cef3-project custom build problem

Postby DanKegel » Wed Nov 01, 2017 5:18 pm

DanKegel
Mentor
 
Posts: 59
Joined: Fri Nov 08, 2013 12:46 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 93 guests