Building cefclient for 3.2272.1998 fails in Mac OS X

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.

Building cefclient for 3.2272.1998 fails in Mac OS X

Postby mic » Tue Feb 02, 2016 10:28 am

I have successfully built CEF 3.2272.1998 from source on the Mac. Working with the generated binary distribution, building the cefclient demo app fails because the file <build folder>/chromium/src/cef/binary_distrib/cef_binary_3.2272.1998_macosx64/cefclient/test_runner.cc contains the following line:

Code: Select all
...
#include "cefclient/resource.h"
...


This file does not in fact exist in the generated binary distribution. Looking at the downloadable Mac OS X distribution for branch 2272, the file is present, but appears to be specific to Microsoft Visual C++ runing in Windows, since it contains the following lines near the top:

Code: Select all
...
// Microsoft Visual C++ generated include file.
// Used by cefclient.rc
...


So, maybe the file is not needed for OS X, but is mistakenly included anyway. Is this a bug in the build, or have I done something wrong?
mic
Mentor
 
Posts: 82
Joined: Fri Jan 29, 2016 12:59 pm

Re: Building cefclient for 3.2272.1998 fails in Mac OS X

Postby magreenblatt » Tue Feb 02, 2016 11:15 am

Not copying resource.h is a bug that has been fixed in newer CEF versions. To fix the problem you can manually copy that file into the generated binary distribution.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Building cefclient for 3.2272.1998 fails in Mac OS X

Postby mic » Tue Feb 02, 2016 11:27 am

Thanks. Since there are a number of these resource.h files in the source distribution, where should I copy it from?
mic
Mentor
 
Posts: 82
Joined: Fri Jan 29, 2016 12:59 pm

Re: Building cefclient for 3.2272.1998 fails in Mac OS X

Postby magreenblatt » Tue Feb 02, 2016 11:33 am

tests/cefclient/resource.h
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Building cefclient for 3.2272.1998 fails in Mac OS X

Postby mic » Tue Feb 02, 2016 12:40 pm

Thank you sir. That has fixed my problem.
mic
Mentor
 
Posts: 82
Joined: Fri Jan 29, 2016 12:59 pm


Return to Support Forum

Who is online

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