make error on fresh ubuntu 16.04 install

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.

make error on fresh ubuntu 16.04 install

Postby wrightpt » Tue Nov 22, 2016 9:24 pm

I can build using he automated method but just downloading the binaries I run into this issue. This happens for Dev/trunk branch and Branch 2704
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..



Code: Select all
-- Build files have been written to: /home/c/Downloads/cef_binary_3.2704.1434.gec3e9ed_linux64/build



make -j4 cefclient cefsimple


Code: Select all
[100%] Linking CXX executable Debug/cefclient
/usr/bin/ld: warning: libgcrypt.so.11, needed by ../../Debug/libcef.so, not found (try using -rpath or -rpath-link)

*** Run the following command manually to set SUID permissions ***
EXE="/home/c/Downloads/cef_binary_3.2704.1434.gec3e9ed_linux64 (2)/build/cefclient/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE

[100%] Built target cefclient



Code: Select all
[100%] Linking CXX executable Debug/cefsimple
/usr/bin/ld: warning: libgcrypt.so.11, needed by ../../Debug/libcef.so, not found (try using -rpath or -rpath-link)
collect2: error: ld returned 1 exit status
cefsimple/CMakeFiles/cefsimple.dir/build.make:174: recipe for target 'cefsimple/Debug/cefsimple' failed
make[3]: *** [cefsimple/Debug/cefsimple] Error 1
CMakeFiles/Makefile2:195: recipe for target 'cefsimple/CMakeFiles/cefsimple.dir/all' failed
make[2]: *** [cefsimple/CMakeFiles/cefsimple.dir/all] Error 2
CMakeFiles/Makefile2:207: recipe for target 'cefsimple/CMakeFiles/cefsimple.dir/rule' failed
make[1]: *** [cefsimple/CMakeFiles/cefsimple.dir/rule] Error 2
Makefile:144: recipe for target 'cefsimple' failed
make: *** [cefsimple] Error 2


Why does it not find this library? libgcrypt.so.11
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: make error on fresh ubuntu 16.04 install

Postby magreenblatt » Tue Nov 22, 2016 9:40 pm

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: make error on fresh ubuntu 16.04 install

Postby wrightpt » Wed Nov 23, 2016 8:23 am

I ran into the following error when using the automated build


Generating CEF project files...
Creating /home/c/Music/chromium/src/out/Debug_GN_x64 directory.

________ running 'gn gen out/Debug_GN_x64' in '/home/c/Music/chromium/src'
ERROR at //printing/BUILD.gn:135:22: Script returned non-zero exit code.
cups_version = exec_script("cups_config_helper.py",
^----------
Current dir: /home/c/Music/chromium/src/out/Debug_GN_x64/
Command: python -- /home/c/Music/chromium/src/printing/cups_config_helper.py --api-version
Returned 1.
stderr:

Traceback (most recent call last):
File "/home/c/Music/chromium/src/printing/cups_config_helper.py", line 106, in <module>
sys.exit(main())
File "/home/c/Music/chromium/src/printing/cups_config_helper.py", line 76, in main
subprocess.call([cups_config, '--api-version'])
File "/usr/lib/python2.7/subprocess.py", line 523, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

See //BUILD.gn:264:7: which caused the file to be included.
"//printing:printing_unittests",
^------------------------------
Traceback (most recent call last):
File "tools/gclient_hook.py", line 135, in <module>
RunAction(src_dir, cmd)
File "/home/c/Music/chromium/src/cef/tools/gclient_util.py", line 39, in RunAction
command, cwd=dir, always=True)
File "/home/c/Music/depot_tools/gclient_utils.py", line 292, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "/home/c/Music/depot_tools/gclient_utils.py", line 538, in CheckCallAndFilter
rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out/Debug_GN_x64' returned non-zero exit status 1 in /home/c/Music/chromium/src
Traceback (most recent call last):
File "/home/c/Music/automate-git.py", line 942, in <module>
run(path, cef_src_dir, depot_tools_dir)
File "/home/c/Music/automate-git.py", line 55, in run
shell=(sys.platform == 'win32'))
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/c/Music/chromium/src/cef/cef_create_projects.sh']' returned non-zero exit status 1
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: make error on fresh ubuntu 16.04 install

Postby wrightpt » Wed Nov 23, 2016 8:28 am

I am trying automated build with --branch=2743 now
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: make error on fresh ubuntu 16.04 install

Postby wrightpt » Wed Nov 23, 2016 8:33 am

Generating CEF project files...

________ running '/usr/bin/python ../build/gyp_chromium cef.gyp -I cef.gypi' in '/home/c/Music/chromium/src/cef'
Updating projects from gyp files...
Package libpulse was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpulse.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpulse' found
gyp: Call to 'pkg-config --cflags libpulse' returned exit status 1 while in ../media/media.gyp.
Package libpci was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpci.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpci' found
gyp: Call to 'pkg-config --cflags libpci' returned exit status 1 while in ../build/linux/system.gyp.
Traceback (most recent call last):
File "tools/gclient_hook.py", line 106, in <module>
RunAction(cef_dir, gyper)
File "/home/c/Music/chromium/src/cef/tools/gclient_util.py", line 39, in RunAction
command, cwd=dir, always=True)
File "/home/c/Music/depot_tools/gclient_utils.py", line 292, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "/home/c/Music/depot_tools/gclient_utils.py", line 538, in CheckCallAndFilter
rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command '/usr/bin/python ../build/gyp_chromium cef.gyp -I cef.gypi' returned non-zero exit status 1 in /home/c/Music/chromium/src/cef
Traceback (most recent call last):
File "/home/c/Music/automate-git.py", line 942, in <module>
run(path, cef_src_dir, depot_tools_dir)
File "/home/c/Music/automate-git.py", line 55, in run
shell=(sys.platform == 'win32'))
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/c/Music/chromium/src/cef/cef_create_projects.sh']' returned non-zero exit status 1
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: make error on fresh ubuntu 16.04 install

Postby wrightpt » Wed Nov 23, 2016 8:34 am

thats a bummer. I think i am switching my Ubuntu version to 14.04
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: make error on fresh ubuntu 16.04 install

Postby magreenblatt » Wed Nov 23, 2016 9:21 am

Also make sure you run the install-build-deps.sh script before trying to build Chromium. See https://bitbucket.org/chromiumembedded/ ... inux-setup
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: make error on fresh ubuntu 16.04 install

Postby wrightpt » Wed Nov 23, 2016 9:44 am

i did forget to run install-build-deps.sh script. cant believe that.
I installed 14.04 and am running script now.

Had the following error when building from binary from cefbuilds.com on 14.04 before running the script. I just build a new machine. not sure if the chipset matters. 1151 intel chipset with asus motherboard.

[ 98%] [100%] [100%] Building CXX object cefsimple/CMakeFiles/cefsimple.dir/simple_app.cc.o
Building CXX object cefsimple/CMakeFiles/cefsimple.dir/cefsimple_linux.cc.o
Building CXX object cefsimple/CMakeFiles/cefsimple.dir/simple_handler.cc.o
Linking CXX executable Debug/cefclient
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make[3]: *** [cefclient/Debug/cefclient] Error 1
make[2]: *** [cefclient/CMakeFiles/cefclient.dir/all] Error 2
make[1]: *** [cefclient/CMakeFiles/cefclient.dir/rule] Error 2
make: *** [cefclient] Error 2
make: *** Waiting for unfinished jobs....
[100%] Building CXX object cefsimple/CMakeFiles/cefsimple.dir/simple_handler_linux.cc.o
Linking CXX executable Debug/cefsimple

*** Run the following command manually to set SUID permissions ***
EXE="/home/c/Downloads/cef_binary_3.2704.1434.gec3e9ed_linux64/build/cefsimple/Debug/chrome-sandbox" && sudo -- chown root:root $EXE && sudo -- chmod 4755 $EXE

[100%] Built target cefsimple


will post on how build do after the script runs
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: make error on fresh ubuntu 16.04 install

Postby wrightpt » Wed Nov 23, 2016 10:00 am

After insalling build scripts on fresh ubuntu 14.04 install I received the following when building from binary_3.2704.1434.gec3e9ed_linux64. cefsimple built propertly.

Linking CXX executable Debug/cefclient
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make[3]: *** [cefclient/Debug/cefclient] Error 1
make[2]: *** [cefclient/CMakeFiles/cefclient.dir/all] Error 2
make[1]: *** [cefclient/CMakeFiles/cefclient.dir/rule] Error 2
make: *** [cefclient] Error 2


still debugging
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: make error on fresh ubuntu 16.04 install

Postby wrightpt » Wed Nov 23, 2016 12:53 pm

it was my graphics card. I had to install the operating system plugged into the graphics card hdmi port instead of the motherboard hdmi port. i downloaded CEF binaries and they ran fine. I have not built using the automated method yet
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am


Return to Support Forum

Who is online

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