Build cef with clang

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.

Build cef with clang

Postby Johnny » Mon Oct 02, 2017 3:42 am

Hello,

I try to build CEF with clang 4.0 for cross compiling on Windows 10.
So I downloaded https://bitbucket.org/chromiumembedded/cef/downloads/ , ninja and cmake.

I go into cef directory, rename CmakeList.txt.in in CmakeList.txt, and Start Cmake.
I specified toolchain file for cross compiling, with clang path.
I add ninja path into CMAKE_MAKE_VARIABLE (I am not sure if i must add ninja path) and re generate project.

But I have this message :
Code: Select all
CMake Error at C:/Toolchain/v9_clang-4.0.0-centos7/x86_64-unknown-linux-gnu/bin/clang++.exe:1:
  Parse error.  Expected a command name, got unquoted argument with text
  "MZ�".
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.7/Modules/CMakeDetermineSystem.cmake:88 (include)
  CMakeLists.txt:120 (project)

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage


So what is wrong ? Can I build cef with clang ?
Johnny
Newbie
 
Posts: 3
Joined: Mon Oct 02, 2017 3:23 am

Re: Build cef with clang

Postby magreenblatt » Mon Oct 02, 2017 3:56 am

MSVC is the only compiler supported on Windows currently.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Build cef with clang

Postby Johnny » Mon Oct 02, 2017 4:14 am

So I can not include cef into my my application ?
I must compile my software with cef into a *Unix distribution for realease it on this platforms ?

There is a roadmap to support clang on Windows ?
Johnny
Newbie
 
Posts: 3
Joined: Mon Oct 02, 2017 3:23 am

Re: Build cef with clang

Postby magreenblatt » Mon Oct 02, 2017 4:36 am

Cross-compilation from Windows to Linux is not tested/supported. I suggest you compile on a Linux host instead (using a VM for example).
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Build cef with clang

Postby Johnny » Mon Oct 02, 2017 6:22 am

I can not choose the host machine. The sofware's *Unix realease is build only by cross compilation.
I will try to rebuild my project with cef on Ubuntu.

Thanks for your answer
Johnny
Newbie
 
Posts: 3
Joined: Mon Oct 02, 2017 3:23 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 54 guests