kryskool / cefpython

Automatically exported from code.google.com/p/cefpython
0 stars 1 forks source link

error compiling on Ubuntu 12.10 #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Follow instructions in "Building on Linux" wiki page
2.On the step "Updating the Chromium sources"
3.Get error

What do you see instead?

/usr/bin/python: can't open file 'src/cef/tools/gclient_hook.py': [Errno 2] No 
such file or directory
Error: Command /usr/bin/python src/cef/tools/gclient_hook.py returned non-zero 
exit status 2

Attempting to rerun the command (as per the directions) results in the same 
error

What version of the product are you using? On what operating system?

CEF3, Ubuntu 12.10 64bit

Please provide any additional information below.

copying the cef3@1290 dir to src/cef seems to work, but then I got another 
error, which may be a seperate issue:
Generating CEF project files...

________ running '/usr/bin/python tools/gyp_cef cef.gyp -I cef.gypi' in 
'/media/james/FreeAgent Drive2/CEFPy Stuff/chromium/src/cef'
Updating projects from gyp files...
/bin/sh: 1: ../build/linux/python_arch.sh: Permission denied
gyp: Call to '../build/linux/python_arch.sh /usr/lib/libpython2.6.so.1.0' 
returned exit status 126. while trying to load cef.gyp
Traceback (most recent call last):
  File "src/cef/tools/gclient_hook.py", line 32, in <module>
    RunAction(cef_dir, gyper)
  File "/media/james/FreeAgent Drive2/CEFPy Stuff/chromium/src/cef/tools/gclient_util.py", line 39, in RunAction
    command, cwd=dir, always=True)
  File "/home/james/depot_tools/gclient_utils.py", line 216, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/home/james/depot_tools/gclient_utils.py", line 472, 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 /media/james/FreeAgent 
Drive2/CEFPy Stuff/chromium/src/cef
Error: Command /usr/bin/python src/cef/tools/gclient_hook.py returned non-zero 
exit status 1 in /media/james/FreeAgent Drive2/CEFPy Stuff/chromium

I re-ran with sudo (hoping to resolve the permissions error) but it failed with 
a command: gclient not found error.  So I attempted to sudo export path, but 
apparently that doesn't work- got a command: export not found error.

Now I'm stuck.  I'll try adding gclient to my path permanently, but I don't 
have time to try it at the moment... will report back if that helps resolve it.

Original issue reported on code.google.com by jlv@ensigntech.com on 2 Aug 2013 at 2:12

GoogleCodeExporter commented 9 years ago
I have updated the "Download the Chromium sources" section on the BuildOnLinux
wiki page, see point 2:

    The path to the chromium/ directory should be as short as possible and should not
    contain any spaces. An example of a bad path is "/media/james/FreeAgent 
    Drive2/CEFPy Stuff/chromium". An example of a good path is "/home/user/chromium".

I see a total of four directories with spaces in your logs:

    FreeAgent Drive2
    CEFPy Stuff
    python tools
    python src

Get rid of the spaces and make the path short.

The "depot_tools" directory must be in your PATH.

Original comment by czarek.t...@gmail.com on 2 Aug 2013 at 7:08

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 10 Jan 2014 at 6:43