Link error when building cef-project

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.

Link error when building cef-project

Postby xaphere » Sun Apr 09, 2017 5:06 am

I followed the setup steps from the overview page of the cef-project. But when I try to build the project I get:

LNK2019 unresolved external symbol _cef_sandbox_info_create referenced in function "public: __thiscall CefScopedSandboxInfo::CefScopedSandboxInfo(void)" (??0CefScopedSandboxInfo@@QAE@XZ) ceftests F:\Programming\cpp\cef-project\build\third_party\cef\cef_binary_3.2924.1570.g558741c_windows32\tests\ceftests\run_all_unittests.obj 1

LNK2019 unresolved external symbol _cef_sandbox_info_destroy referenced in function "public: __thiscall CefScopedSandboxInfo::~CefScopedSandboxInfo(void)" (??1CefScopedSandboxInfo@@QAE@XZ) ceftests F:\Programming\cpp\cef-project\build\third_party\cef\cef_binary_3.2924.1570.g558741c_windows32\tests\ceftests\run_all_unittests.obj 1

I'm building on Windows 7 x64 with Visual Studio 2017.
The project was generated with cmake 3.71

Any help will be greatly appreciated.
xaphere
Newbie
 
Posts: 2
Joined: Sun Apr 09, 2017 4:39 am

Re: Link error when building cef-project

Postby amaitland » Sun Apr 09, 2017 5:56 pm

Use VS2015
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Link error when building cef-project

Postby xaphere » Sun Apr 09, 2017 10:25 pm

Thanks amaitland. I'll try VS2015. But is there any particular reason 2017 would not work?

I was looking around the projects and saw that those functions are defined in libcef_dll/sandbox/sandbox_win.cc, but the whole sandbox folder is missing from spotify builds been downloaded from cmake.

Am I missing some setup step?
xaphere
Newbie
 
Posts: 2
Joined: Sun Apr 09, 2017 4:39 am

Re: Link error when building cef-project

Postby amaitland » Sun Apr 09, 2017 10:50 pm

Read https://bitbucket.org/chromiumembedded/ ... uild-steps

See comments about sandboxing in particular

`cef_sandbox.lib` provides support for sandboxing.

If you don't need it, then you can disable it.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Link error when building cef-project

Postby tottekarlsson » Wed Jun 13, 2018 5:49 pm

It seems that even when disabling the USE_SANDBOX flag in CMake, the test projects build (using vs2017) still gives unresolved externals to "sandbox stuff":

run_all_unittests.obj : error LNK2019: unresolved external symbol _cef_sandbox_info_create referenced in function "public: __thiscall CefScopedSandboxInfo::CefScopedSandboxInfo(void)" (??0CefScopedSandboxInfo@@QAE@XZ)
run_all_unittests.obj : error LNK2019: unresolved external symbol _cef_sandbox_info_destroy referenced in function "public: __thiscall CefScopedSandboxInfo::~CefScopedSandboxInfo(void)" (??1CefScopedSandboxInfo@@QAE@XZ)

-tk
tottekarlsson
Newbie
 
Posts: 1
Joined: Wed Jun 13, 2018 5:29 pm

Re: Link error when building cef-project

Postby magreenblatt » Wed Jun 13, 2018 9:28 pm

What CEF and VS2017 versions?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

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