Exception when running cef_create_projects.sh on Mac

3 views
Skip to first unread message

Nathan Sobo

unread,
Jul 11, 2012, 4:42:36 PM7/11/12
to node-...@googlegroups.com
I'm getting an exception from GYP when I try to generate the CEF projects. Please excuse the huge chunk of output, but I want to ensure you have sufficient information to help me out... A transcript of the steps I performed is at the bottom of this message. Thanks!

Nathans-Retina-MBP:cef nathansobo$ ./cef_create_projects.sh 

Checking CEF and Chromium revisions...

________ running '/usr/bin/python tools/check_revision.py' in '/Users/nathansobo/sandbox/chromium/src/cef'
svn: '/Users/nathansobo/sandbox/chromium/src/cef' is not a working copy
svn: '/Users/nathansobo/sandbox/chromium/src' is not a working copy

WARNING: Incorrect Chromium URL; found None, expected http://src.chromium.org/svn/trunk/src

WARNING: Incorrect Chromium revision; found None, expected 128896

Please see CHROMIUM_BUILD_COMPATIBILITY.txt for instructions.
Using CEF revision None @ None
Using Chromium revision None @ None

Generating CEF version header file...

________ running '/usr/bin/python tools/make_version_header.py --header include/cef_version.h --version ../chrome/VERSION' in '/Users/nathansobo/sandbox/chromium/src/cef'
svn: '.' is not a working copy
File include/cef_version.h is already up to date.

Patching build configuration and source files for CEF...

________ running '/usr/bin/python tools/patcher.py --patch-config patch/patch.cfg' in '/Users/nathansobo/sandbox/chromium/src/cef'
Reading patch file /Users/nathansobo/sandbox/chromium/src/cef/patch/patches/gritsettings.patch
WARNING:root:already patched  ../tools/gritsettings/resource_ids
Reading patch file /Users/nathansobo/sandbox/chromium/src/cef/patch/patches/build.patch
WARNING:root:already patched  ../build/common.gypi
WARNING:root:already patched  ../build/mac/strip_save_dsym
Reading patch file /Users/nathansobo/sandbox/chromium/src/cef/patch/patches/tools_gyp.patch
WARNING:root:already patched  ../tools/gyp/pylib/gyp/input.py
Skipping patch file /Users/nathansobo/sandbox/chromium/src/cef/patch/patches/spi_webcore_364.patch

Generating CEF project files...

________ running '/usr/bin/python tools/gyp_cef cef.gyp -I cef.gypi' in '/Users/nathansobo/sandbox/chromium/src/cef'
Updating projects from gyp files...
Traceback (most recent call last):
  File "tools/gyp_cef", line 155, in <module>
    sys.exit(gyp.main(args))
  File "/Users/nathansobo/sandbox/chromium/src/tools/gyp/pylib/gyp/__init__.py", line 471, in main
    options.circular_check)
  File "/Users/nathansobo/sandbox/chromium/src/tools/gyp/pylib/gyp/__init__.py", line 111, in Load
    depth, generator_input_info, check, circular_check)
  File "/Users/nathansobo/sandbox/chromium/src/tools/gyp/pylib/gyp/input.py", line 2324, in Load
    VerifyNoGYPFileCircularDependencies(targets)
  File "/Users/nathansobo/sandbox/chromium/src/tools/gyp/pylib/gyp/input.py", line 1480, in VerifyNoGYPFileCircularDependencies
    ' '.join(bad_files)
gyp.input.CircularException: Some files not reachable, cycle in .gyp file dependency graph detected involving some or all of: cef.gyp ../third_party/nwebkit/nwebkit.gyp
Traceback (most recent call last):
  File "tools/gclient_hook.py", line 30, in <module>
    RunAction(cef_dir, gyper)
  File "/Users/nathansobo/sandbox/chromium/src/cef/tools/gclient_util.py", line 39, in RunAction
    command, cwd=dir, always=True)
  File "/Users/nathansobo/code/depot_tools/gclient_utils.py", line 214, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/Users/nathansobo/code/depot_tools/gclient_utils.py", line 391, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command /usr/bin/python tools/gyp_cef cef.gyp -I cef.gypi returned non-zero exit status 1 in /Users/nathansobo/sandbox/chromium/src/cef



Here are the steps I performed:

mkdir chromium
cd chromium
vi .gclient # paste the contents from the readme
gclient sync
# ... lots of git activity
cd src
git submodule add git://github.com/rogerwang/cef.git
cd cef
./cef_create_projects.sh



Roger WANG

unread,
Jul 11, 2012, 9:16:08 PM7/11/12
to node-...@googlegroups.com
Nathan Sobo <nat...@github.com> writes:

> gyp.input.CircularException: Some files not reachable, cycle in .gyp file
> dependency graph detected involving some or all of: cef.gyp
> ../third_party/nwebkit/nwebkit.gyp

would you try this first:

a. Create ~/.gyp/include.gypi

{

'variables':{

'mac_sdk': '10.6'

}

}

b. Chromium/src/cef/cef.gyp , modify:

# '../third_party/nwebkit/nwebkit.gyp:nwebkit',

c. Generate config.gypi

cd src/third_party/node

./configure

d. Src/build/common.gypi and src/cef/cef.gypi, modify:

'use_openssl%':1 to 'use_openssl%':0

e. Run cef_create_projects.sh, then run GYP_DEFINEDS='mac_sdk=10.6' gclient runhooks, then run xcodebuild -project cef.xcodeproj -configuration Release/Debug - target cefclient

f. Modify src/cef/include/cef_version.h, if file not exist, please execute src/cef_create_projects.sh first. Line 38:

#define CEF_REVISION None

To

#define CEF_REVISION 0

Or other number.

--
Roger WANG Intel Open Source Technology Center

Roger WANG

unread,
Jul 11, 2012, 9:24:06 PM7/11/12
to node-...@googlegroups.com
Roger WANG <roger...@intel.com> writes:

> Nathan Sobo <nat...@github.com> writes:
>
>> gyp.input.CircularException: Some files not reachable, cycle in .gyp file
>> dependency graph detected involving some or all of: cef.gyp
>> ../third_party/nwebkit/nwebkit.gyp
>
> would you try this first:

btw, we've been cooking binaries for all the 3 platforms. You can have a
try first:

https://s3.amazonaws.com/node-webkit/osx/cef_mac.pkg

Nathan Sobo

unread,
Jul 12, 2012, 12:51:26 AM7/12/12
to node-...@googlegroups.com
When I ran the .pkg file at that link I couldn't really see that it actually installed anything. So I ripped open the package and extracted the .app bundle. I'd really suggest *not* distributing as a .pkg file if at all possible. Why not just distribute a .dmg with the app bundle on it? Anyway, I extracted the app manually and tried to run it and got a crash on start with the following error: Looks like libv8 needs to be installed globally? Could you maybe bake it in. I'll keep trying to compile.

Process:         cefclient [99965]
Path:            /Users/USER/Downloads/cefclient.app/Contents/MacOS/cefclient
Identifier:      org.cef.cefclient
Version:         19.0.1082.0 (1082.0)
Code Type:       X86 (Native)
Parent Process:  launchd [112]

Date/Time:       2012-07-11 22:48:14.677 -0600
OS Version:      Mac OS X 10.7.4 (11E2068)
Report Version:  9

Interval Since Last Report:          602515 sec
Crashes Since Last Report:           30
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      F55772EC-1644-4EBC-AEC3-622CB64FC0B7

Crashed Thread:  0

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/lib/libv8.dylib
  Referenced from: /Users/USER/Downloads/cefclient.app/Contents/MacOS/../Frameworks/Chromium Embedded Framework.framework/Libraries/libcef.dylib
  Reason: image not found

Binary Images:
   0xff000 -   0x11affb +org.cef.cefclient (19.0.1082.0 - 1082.0) <4E2829F0-BF87-317C-AFEB-71D9438B5C3E> /Users/USER/Downloads/cefclient.app/Contents/MacOS/cefclient
  0x127000 -  0x2ad1feb +libcef.dylib (??? - ???) <02A9B00A-F0F2-39B7-99A9-155CE736A7DB> /Users/USER/Downloads/cefclient.app/Contents/Frameworks/Chromium Embedded Framework.framework/Libraries/libcef.dylib
0x8fefe000 - 0x8ff30aa7  dyld (195.6 - ???) <46F2FDF5-139A-3E41-921A-CCAF7B013ADD> /usr/lib/dyld
0x91e24000 - 0x91e24ff0  com.apple.ApplicationServices (41 - 41) <45032433-76F6-365A-95CA-641C9427EAA1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x95b1a000 - 0x965afff6  com.apple.AppKit (6.7.3 - 1138.47) <73F9D213-2E73-3D5E-A36C-942F5CB44E12> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x99cc9000 - 0x99d9faab  libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <C784297D-1FF6-3D89-9DE6-98C028AF73D2> /usr/lib/libobjc.A.dylib
0x9a7ad000 - 0x9a80fff3  libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <266CE9B3-526A-3C41-BA58-7AE66A3B15FD> /usr/lib/libstdc++.6.dylib
0x9c5ab000 - 0x9c5d9fe7  libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <01D38302-BC81-354A-B4E1-877D664D4754> /usr/lib/libSystem.B.dylib
0x9c677000 - 0x9c677ff2  com.apple.CoreServices (53 - 53) <F28F38DC-C5C1-399F-84D7-A28CCC269850> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x9c721000 - 0x9ca2bff3  com.apple.Foundation (6.7.2 - 833.25) <361418ED-589D-36DE-9668-A88B35937524> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x9ca8a000 - 0x9cc61fe7  com.apple.CoreFoundation (6.7.2 - 635.21) <4D1D2BAF-1332-32DF-A81B-7E79D4F0A6CB> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

Guo, GuoshengX

unread,
Jul 12, 2012, 9:01:46 PM7/12/12
to Nathan Sobo, node-...@googlegroups.com

I have updated .pkg file now ( https://s3.amazonaws.com/node-webkit/osx/cef_mac.pkg ). The new will copy libv8.dylib to correct directory (/usr/local/lib). And the app will be installed in /Applications, please double click cefclient icon to run it. I have tested it on different mac machines, and it worked. You can try it.  

Reply all
Reply to author
Forward
0 new messages