Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chromium Embedded Framework won't build or run

I'm trying out the tutorial for Windows on the wikipage of CEF at https://bitbucket.org/chromiumembedded/cef/wiki/Tutorial.

However, the CEF builds for 32 bit and 64 bit won't build/run on Visual Studio 2010.

By the way, I'm running Windows 7 (64 bit) and Visual Studio 2010.

Here are the errors:

32 bit Build

- error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in simple_app.obj
- (A THOUSAND LINES OF ERRORS)
- out\Debug\cefsimple.exe : fatal error LNK1120: 11 unresolved externals

64 bit Build

- out\Debug\obj\libcef_dll_wrapper\transfer_util.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
- LINK : fatal error LNK1104: cannot open file 'C:\Users\Benj\Desktop\Blueprint Gaming\Chromium Embedded Framework\64 Bit\cef_binary_3.1921.1661_windows64\out\Debug\lib\libcef_dll_wrapper.lib'
like image 909
benjtupas Avatar asked Apr 23 '14 03:04

benjtupas


People also ask

Is Chromium embedded framework a virus?

While it looks very much like Google Chrome, the Chromium browser is not an impostor - it's actually an open-source project. It means that trusted developers can contribute to the project with a source code. Chromium browser is as safe as Chrome when it's downloaded from a trusted source.

Does electron use Chromium embedded framework?

Each window in Electron app represents a Chromium window that renders specific web page or HTML. The GUI of Electron apps is built using HTML, CSS, and JavaScript.

Is Chromium a framework?

The Chromium Embedded Framework (CEF) is an open-source software framework for embedding a Chromium web browser within another application.


1 Answers

I assume you are referring to either the cef_simple or the cef_client projects that come bundled with the libraries...

Fix

Set the macro value for CEF_ENABLE_SANDBOX to 0 in cef_simple.cpp and cefclient_win.cpp

What's happening

The error indicates that a library you are linking to is not compatible with simple_app.obj. In this case, this library (cef_sandbox.lib) is built with _MSC_VER 1800 (that's VS2013 beta, if I am not wrong) while your current environment is _MSC_VER 1600 (VS2010).

Had the same problem a couple days back - cheers!

like image 183
Sharadh Avatar answered Oct 22 '22 15:10

Sharadh