problem using cmake to create vs2017 workspace

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.

problem using cmake to create vs2017 workspace

Postby mok » Wed Sep 20, 2017 3:08 am

I've download cef-master project codes from github and bitbucket.
and cmake 3.9 win binary , wanna compile sample project of cef client.

refer to some introduction article, we can use cmake-gui to generate vs2017 .sln project file.
But. there is no CMakeLists.txt in the source code directory,
there are some CMakeLists.txt.in files in different direcotries, .in file seem for generate CMakeLists.txt file.
But how to generate CMakeLists.txt from CMakeLists.txt.in ?
.in file:
https://bitbucket.org/chromiumembedded/ ... ?at=master

I've tried rename from .txt.in to .txt but CMake runs error :
CMake Error at libcef_dll/CMakeLists.txt:20:
Parse error. Expected a command name, got unquoted argument with text
"{{".
the code in CMakeLists.txt.in is:
set(CEF_TARGET libcef_dll_wrapper)

{{ /////////Line20
'prefix': 'libcef',
'library': '${CEF_TARGET}',
'append_macro': 'LIBCEF_APPEND_PLATFORM_SOURCES',
'includes': [
'includes_common',
'autogen_cpp_includes',
'includes_capi',
'autogen_capi_includes',
'includes_wrapper',
'includes_win:WINDOWS',
'includes_mac:MACOSX',
'includes_linux:LINUX',
'libcef_dll_wrapper_sources_base',
'libcef_dll_wrapper_sources_common',
'autogen_client_side',
],
}}

is the .in file cmake list file ? how to generate a real CMakeLists.txt ?
how to generate a visual studio .sln file for compiling cef ?
mok
Newbie
 
Posts: 2
Joined: Wed Sep 20, 2017 2:22 am

Re: problem using cmake to create vs2017 workspace

Postby magreenblatt » Wed Sep 20, 2017 3:16 am

You should start with a binary distribution if you're planning to build an application using CEF. See https://bitbucket.org/chromiumembedded/cef-project
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: problem using cmake to create vs2017 workspace

Postby igjpalmer » Thu Nov 29, 2018 12:18 pm

I am having a similar issue right now trying to run cmake for cef version 071d1c16536f. I have been using the binary distribution, but there is a fix in a later version I need, but don't want to update my whole CEF library. It's a simple fix and if I could recompile libcef.dll locally it would solve a big issue for me with transparency and navigating pages. Is there any help you can provide about this cmake error?

Code: Select all
-- Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.15063.
CMake Warning at cmake/cef_variables.cmake:344 (message):
  CEF sandbox is not compatible with the current MSVC version (1914)
Call Stack (most recent call first):
  cmake/FindCEF.cmake:38 (include)
  CMakeLists.txt:187 (find_package)


CMake Error at libcef_dll/CMakeLists.txt:20:
  Parse error.  Expected a command name, got unquoted argument with text
  "{{".


Thanks,

Joe
igjpalmer
Techie
 
Posts: 16
Joined: Tue Jun 26, 2018 3:48 pm

Re: problem using cmake to create vs2017 workspace

Postby magreenblatt » Thu Nov 29, 2018 12:36 pm

After building CEF/Chromium locally you need to create a binary distribution. See https://bitbucket.org/chromiumembedded/ ... -packaging
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: problem using cmake to create vs2017 workspace

Postby igjpalmer » Thu Nov 29, 2018 12:59 pm

So I can't get the project to build via cmake because of this error. So before I could create a binary distribution I'd still need to build CEF from source and right now this error is preventing me from doing so. I'm really just trying to rebuild libcef_dll. I'm using Visual Studio 15 and have tried the cmake GUI and the cmake command line. Always the same error.
igjpalmer
Techie
 
Posts: 16
Joined: Tue Jun 26, 2018 3:48 pm

Re: problem using cmake to create vs2017 workspace

Postby magreenblatt » Thu Nov 29, 2018 1:06 pm

igjpalmer wrote:So I can't get the project to build via cmake because of this error. So before I could create a binary distribution I'd still need to build CEF from source and right now this error is preventing me from doing so. I'm really just trying to rebuild libcef_dll. I'm using Visual Studio 15 and have tried the cmake GUI and the cmake command line. Always the same error.

CMake is only used to build once you have a binary distribution. To build CEF/Chromium from source code follow the instructions in the above link.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 59 guests