Branch 3163 Missing function on binary distrib

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.

Branch 3163 Missing function on binary distrib

Postby edgardog » Thu Aug 17, 2017 5:03 pm

I was able to build Branch 3163 on Linux (Ubuntu 14 64bits). Clean checkout and build.
I'm trying to build cefsimple and cefclient (using cmake):
Code: Select all
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4 cefclient cefsimple


But I get an error saying:

Code: Select all
../../../Release/libcef.so: undefined reference to `safe_browsing::SettingsResetPromptController::ShowSettingsResetPrompt(Browser*, safe_browsing::SettingsResetPromptController*)'
collect2: error: ld returned 1 exit status
make[3]: *** [tests/cefclient/Release/cefclient] Error 1
make[2]: *** [tests/cefclient/CMakeFiles/cefclient.dir/all] Error 2
make[1]: *** [tests/cefclient/CMakeFiles/cefclient.dir/rule] Error 2
make: *** [cefclient] Error 2



Is cefclient missing an implementation of that?

Best Regards
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Branch 3163 Missing function on binary distrib

Postby magreenblatt » Thu Aug 17, 2017 5:19 pm

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

Re: Branch 3163 Missing function on binary distrib

Postby edgardog » Fri Aug 18, 2017 6:25 am



I looked at that before posting, but I think it did not apply since that error seems to happen while building CEF, the one that I have is after that. The Binary Distribution is generated, and with that I try to build cefclient and it fails since libcef.so has that method and apparently it is not implemented on cefclient.
Cefsimple has the same issue.

I'll try again with a clean checkout (the one I have is clean), and also an older branch (3112).

Thanks
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Branch 3163 Missing function on binary distrib

Postby magreenblatt » Fri Aug 18, 2017 10:34 am

Are you saying that cefsimple builds successfully as part of the CEF/Chromium build but then fails when built using the resulting binary distribution?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Branch 3163 Missing function on binary distrib

Postby edgardog » Fri Aug 18, 2017 11:38 am

I might not be using the proper terms, this is what I do:
Ubuntu 14 x64 computer, with /home/me/cef3163 , inside there automate-git.py:

Code: Select all
export CEF_USE_GN=1
export GYP_DEFINES='buildtype=Official branding=Chrome'
export GN_DEFINES="is_official_build=true use_gconf=false ffmpeg_branding=Chrome proprietary_codecs=true remove_webcore_debug_symbols=true is_debug=false symbol_level=1"


then I run:
Code: Select all
python automate-git.py --download-dir=/home/me/cef3163/code --branch=3163 --x64-build --force-update --no-debug-build --force-config --force-clean --force-clean-deps


everything works, and It ends up with a zip file on: cef3163/code/chromium/src/cef/binary_distrib

I copy that file someplace else, and after unzip it I create a build directory inside it, then inside the build directory I run:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..

Then build doing: make -j8 cefclient cefsimple

When doing that I get the error posted on the first post.

I tried using branch 3112 and following the exact same steps (replacing 3163 by 3112) and it build fine.
I did have a small hiccup when building 3163 (ran out of battery and started the build again), so it might have been that.
I'll try again tonight.
For the time being I'm happy I got 3112 working.
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Branch 3163 Missing function on binary distrib

Postby edgardog » Sat Aug 19, 2017 7:56 am

Tried again, with a clean checkout and ended up having the same problem:

Code: Select all
Linking CXX executable Release/cefclient
../../../Release/libcef.so: undefined reference to `safe_browsing::SettingsResetPromptController::ShowSettingsResetPrompt(Browser*, safe_browsing::SettingsResetPromptController*)'
collect2: error: ld returned 1 exit status
make[3]: *** [tests/cefclient/Release/cefclient] Error 1
make[2]: *** [tests/cefclient/CMakeFiles/cefclient.dir/all] Error 2
make[1]: *** [tests/cefclient/CMakeFiles/cefclient.dir/rule] Error 2
make: *** [cefclient] Error 2


Same GN and GYP options, same steps build 3112 correctly. But on 3163 when I use the cmake command to build cefclient/cefsimple it fails.
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Branch 3163 Missing function on binary distrib

Postby magreenblatt » Sat Aug 19, 2017 10:32 am

Please add a bug and link this thread.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Branch 3163 Missing function on binary distrib

Postby magreenblatt » Wed Sep 13, 2017 1:38 pm

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


Return to Support Forum

Who is online

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