Hard to work with cef

279 views
Skip to first unread message

Azarus X

unread,
Sep 2, 2014, 2:24:05 AM9/2/14
to chromi...@chromium.org
Hey guys i can not see the point of the bunch of tools that i need to compile Cef. I just wanted to modify a small piece of the code but it takes a day to compile, it just pain. No one out there wants to use these tools just to build this application.
Can you please provide something easier method. Or at least think about it.
I had a lot of errors i had to fix when i wanted to setup the enviroment and compile the code.
It took a days to fix these things. I just want to let you know it's a big pain and lot of time. And i just wanted to modify the code a bit, compile and use.

Torne (Richard Coles)

unread,
Sep 2, 2014, 5:11:34 AM9/2/14
to aza...@gmail.com, Chromium-dev
On 2 September 2014 07:24, Azarus X <aza...@gmail.com> wrote:
Hey guys i can not see the point of the bunch of tools that i need to compile Cef. I just wanted to modify a small piece of the code but it takes a day to compile, it just pain. No one out there wants to use these tools just to build this application.

Chromium is a very large project. It's not the tools that make it complex and slow to build, it's the sheer size of it. CEF is also not part of the Chromium project and if you have issues with CEF that aren't caused by Chromium then you should talk to them about it :)
 
Can you please provide something easier method. Or at least think about it.
I had a lot of errors i had to fix when i wanted to setup the enviroment and compile the code.
It took a days to fix these things. I just want to let you know it's a big pain and lot of time. And i just wanted to modify the code a bit, compile and use.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Thiago Farina

unread,
Sep 2, 2014, 11:22:21 AM9/2/14
to rdesi...@gmail.com, Richard Coles, aza...@gmail.com, Chromium-dev



On Tue, Sep 2, 2014 at 7:13 AM, RDesingraj <rdesi...@gmail.com> wrote:
May I know how to build a chromium browser, exactly like http://www.mpeg.org/chrome/Win/CEF.zip. I am working in depot_tools to get the sources of chromium from Git. After I am going to build using Ninja cmd to get the exe. Is this enough to get the browser like in the following link? http://www.mpeg.org/chrome/Win/CEF.zip


If there is anything missing there, please let us know, so we can improve our docs.

--
Thiago Farina

Azarus X

unread,
Sep 2, 2014, 4:29:23 PM9/2/14
to chromi...@chromium.org, rdesi...@gmail.com, to...@chromium.org, aza...@gmail.com


Isn't it easier to provide one big zip that contains everything to build chromium?

Thiago Farina

unread,
Sep 2, 2014, 5:07:36 PM9/2/14
to aza...@gmail.com, chromi...@chromium.org, rdesi...@gmail.com, to...@chromium.org
When the project is big like this, the answer is never easy. But once you have everything setup, it shouldn't be that hard to build it.

Hey, it is just a matter of cloning depot_tools, putting it in your PATH, then you need either gcc or clang + ninja, don't forget to run build/install-build-deps.sh (well that is from Linux perspective).

 Hope that helps.


--
Thiago Farina

Azarus X

unread,
Sep 4, 2014, 12:40:19 AM9/4/14
to chromi...@chromium.org
Hey,

Day 2:

ninja: error: loading 'build.ninja': No such file or directory
ninja: Entering directory `out/Debug'

:D

Thiago Farina

unread,
Sep 4, 2014, 2:34:15 AM9/4/14
to aza...@gmail.com, chromi...@chromium.org
Ouch.

Have you run either gclient runhooks or ./build/gyp_chromium?

This should generate the ninja build files from the GYP files in your out/Debug directory.

--
Thiago Farina

Azarus X

unread,
Sep 4, 2014, 2:28:23 PM9/4/14
to chromi...@chromium.org, aza...@gmail.com
I just ran fetch chromium and after downloading i got some errors:

[1:09:03] Resolving deltas: 100% (3268/3268)
[1:09:03] remote: Total 9064 (delta 3268), reused 9064 (delta 3268)
[1:09:03] Checking connectivity... done.
----------------------------------------
Traceback (most recent call last):
  File "C:\depot_tools\gclient.py", line 2201, in <module>
    sys.exit(Main(sys.argv[1:]))
  File "C:\depot_tools\gclient.py", line 2189, in Main
    return dispatcher.execute(OptionParser(), argv)
  File "C:\depot_tools\subcommand.py", line 245, in execute
    return command(parser, args[1:])
  File "C:\depot_tools\gclient.py", line 1967, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "C:\depot_tools\gclient.py", line 1478, in RunOnDeps
    work_queue.flush(revision_overrides, command, args, options=self._options)
  File "C:\depot_tools\gclient_utils.py", line 994, in run
    self.item.run(*self.args, **self.kwargs)
  File "C:\depot_tools\gclient.py", line 796, in run
    file_list)
  File "C:\depot_tools\gclient_scm.py", line 159, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "C:\depot_tools\gclient_scm.py", line 394, in update
    self._DeleteOrMove(options.force)
  File "C:\depot_tools\gclient_scm.py", line 221, in _DeleteOrMove
    os.makedirs(bad_scm_dir)
  File "C:\depot_tools\python276_bin\lib\os.py", line 150, in makedirs
    makedirs(head, mode)
  File "C:\depot_tools\python276_bin\lib\os.py", line 157, in makedirs
    mkdir(name, mode)
WindowsError: [Error 112] There is not enough space on the disk: 'C:\\chrome\\_bad_scm\\src'
Traceback (most recent call last):
  File "C:\depot_tools\\fetch.py", line 317, in <module>
    sys.exit(main())
  File "C:\depot_tools\\fetch.py", line 313, in main
    return run(options, spec, root)
  File "C:\depot_tools\\fetch.py", line 307, in run
    return checkout.init()
  File "C:\depot_tools\\fetch.py", line 122, in init
    self.run_gclient(*sync_cmd)
  File "C:\depot_tools\\fetch.py", line 76, in run_gclient
    return self.run(cmd_prefix + cmd, **kwargs)
  File "C:\depot_tools\\fetch.py", line 66, in run    return subprocess.check_call(cmd, **kwargs)
  File "C:\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('c:\\depot_tools\\python276_bin\\python.exe', 'c:\\depot_tools\\gclient.py', 'sync')' returned non-zero exit status 1

After this i ran gclient runhooks again and now its downloading a lot of stuff.

Thiago Farina

unread,
Sep 4, 2014, 2:40:54 PM9/4/14
to Azarus X, Chromium-dev, Primiano Tucci
Are you sure you have enough space on your hard disk to checkout chromium? You need some Gigabytes of space to download it. You may pass --no-history to fetch. See Primiano's recent "PSA: fetch now supports --no-history to reduce checkout time/size" thread.

Regards,

--
Thiago Farina

Azarus X

unread,
Sep 4, 2014, 3:01:21 PM9/4/14
to chromi...@chromium.org, aza...@gmail.com, prim...@chromium.org
gclient runhooks produced some errors as well:

Copying to final location...
Cleaning up temporaries...

Traceback (most recent call last):
  File "toolchain2013.py", line 494, in <module>
    sys.exit(main())
  File "toolchain2013.py", line 473, in main
    CopyToFinalLocation(extracted, target_dir)
  File "toolchain2013.py", line 369, in CopyToFinalLocation
    shutil.copy2(full_source, full_target)
  File "C:\depot_tools\python276_bin\lib\shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "C:\depot_tools\python276_bin\lib\shutil.py", line 84, in copyfile
    copyfileobj(fsrc, fdst)
  File "C:\depot_tools\python276_bin\lib\shutil.py", line 52, in copyfileobj
    fdst.write(buf)
IOError: [Errno 28] No space left on device

Traceback (most recent call last):
  File "C:\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 271, in <module>
    sys.exit(main())
  File "C:\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 253, in main
    subprocess.check_call(args)

  File "C:\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\depot_tools\\python276_bin\\python.exe', 'toolchain2013.py', '--targetdir', 'vs2013_files', '--sha1', '3fa540f7ff4aaf5e1e0d2dca1f4b99dda91bb281', '--express']' returned non-zero exit status 1

Traceback (most recent call last):
  File "src/build/landmines.py", line 137, in <module>
    sys.exit(main())
  File "src/build/landmines.py", line 124, in main
    gyp_environment.SetEnvironment()
  File "C:\chrome\src\build\gyp_environment.py", line 33, in SetEnvironment
    vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
  File "C:\chrome\src\build\vs_toolchain.py", line34, in SetEnvironmentAndGetRuntimeDllDirs    Update()
  File "C:\chrome\src\build\vs_toolchain.py", line158, in Update    subprocess.check_call(get_toolchain_args)

  File "C:\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call


And yes i have enough disk space.



Marshall Greenblatt

unread,
Sep 4, 2014, 3:15:10 PM9/4/14
to aza...@gmail.com, chromium-dev, prim...@chromium.org
On Thu, Sep 4, 2014 at 3:01 PM, Azarus X <aza...@gmail.com> wrote:
gclient runhooks produced some errors as well:

If you want a clean Chromium checkout try running the following from the src directory:

git clean -dffx
gclient sync --reset --jobs 16

This will delete and re-download any third-party dependencies that may be causing git to fail. Add `--with_branch_heads` to the gclient command if you're trying to build a release branch.
 

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Scott Graham

unread,
Sep 4, 2014, 4:42:03 PM9/4/14
to aza...@gmail.com, chromium-dev, Primiano Tucci
On Thu, Sep 4, 2014 at 12:01 PM, Azarus X <aza...@gmail.com> wrote:
gclient runhooks produced some errors as well:

Copying to final location...
Cleaning up temporaries...

Traceback (most recent call last):
  File "toolchain2013.py", line 494, in <module>
    sys.exit(main())
  File "toolchain2013.py", line 473, in main
    CopyToFinalLocation(extracted, target_dir)
  File "toolchain2013.py", line 369, in CopyToFinalLocation
    shutil.copy2(full_source, full_target)
  File "C:\depot_tools\python276_bin\lib\shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "C:\depot_tools\python276_bin\lib\shutil.py", line 84, in copyfile
    copyfileobj(fsrc, fdst)
  File "C:\depot_tools\python276_bin\lib\shutil.py", line 52, in copyfileobj
    fdst.write(buf)
IOError: [Errno 28] No space left on device

This error would tend to indicate you do not have enough disk space. That's storing things in TEMP, perhaps on a different drive.
 

Traceback (most recent call last):
  File "C:\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 271, in <module>
    sys.exit(main())
  File "C:\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 253, in main
    subprocess.check_call(args)

  File "C:\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\depot_tools\\python276_bin\\python.exe', 'toolchain2013.py', '--targetdir', 'vs2013_files', '--sha1', '3fa540f7ff4aaf5e1e0d2dca1f4b99dda91bb281', '--express']' returned non-zero exit status 1

Traceback (most recent call last):
  File "src/build/landmines.py", line 137, in <module>
    sys.exit(main())
  File "src/build/landmines.py", line 124, in main
    gyp_environment.SetEnvironment()
  File "C:\chrome\src\build\gyp_environment.py", line 33, in SetEnvironment
    vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
  File "C:\chrome\src\build\vs_toolchain.py", line34, in SetEnvironmentAndGetRuntimeDllDirs    Update()
  File "C:\chrome\src\build\vs_toolchain.py", line158, in Update    subprocess.check_call(get_toolchain_args)

  File "C:\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call


And yes i have enough disk space.



Primiano Tucci

unread,
Sep 5, 2014, 4:15:18 AM9/5/14
to Scott Graham, aza...@gmail.com, chromium-dev
You definitely ran out of space.
As Thiago suggested, you can save ~6 gbs by doing

fetch --no-history chromium


Azarus X

unread,
Sep 5, 2014, 1:08:47 PM9/5/14
to chromi...@chromium.org
Eh, ~50+ GB Disk space is not enough? :DDDD

Primiano Tucci

unread,
Sep 5, 2014, 1:12:56 PM9/5/14
to aza...@gmail.com, Chromium-dev
As Scott just pointed out, probably you have enough space on the drive where you keep the source code but NOT on C: That script is using %TEMP% (usually on C:) as a staging area for installation.


On Fri, Sep 5, 2014 at 6:08 PM, Azarus X <aza...@gmail.com> wrote:
Eh, ~50+ GB Disk space is not enough? :DDDD

--
Reply all
Reply to author
Forward
Message has been deleted
0 new messages