CMake Error

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.

CMake Error

Postby alebo611 » Wed Dec 21, 2016 8:51 am

Hi

I try to follow the tutorial on how to build CEF.
After cloning the git project: git clone https://bitbucket.org/chromiumembedded/cef-project.git
I do cd to cef-project and issue command:

cmake .

The build does not complete but eventually throws an error:

Code: Select all
CMake Error: Problem with archive_read_open_file(): Unrecognized archive format
CMake Error: Problem extracting tar: /application/cef-project/third_party/cef/cef_binary_3.2704.1427.g95055fe_linux32.tar.bz2
CMake Error at CMakeLists.txt:49 (find_package):
  By not providing "FindCEF.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "CEF", but
  CMake did not find one.

  Could not find a package configuration file provided by "CEF" with any of
  the following names:

    CEFConfig.cmake
    cef-config.cmake

  Add the installation prefix of "CEF" to CMAKE_PREFIX_PATH or set "CEF_DIR"
  to a directory containing one of the above files.  If "CEF" provides a
  separate development package or SDK, be sure it has been installed.


When I investigate
/application/cef-project/third_party/cef/cef_binary_3.2704.1427.g95055fe_linux32.tar.bz2

its actually a html file that says authentication is needed. Part of it:
Code: Select all
      <h3>
        Web Page Warning!
      </h3>
      <div class="notice">
        <p>
          You have tried to access a web page which requires authentication. <br> 
          You may click Proceed if the web page is business related.
        </p>
        <p>
          URL: opensource.spotify.com/cefbuilds/cef_binary_3.2704.1427.g95055fe_linux32.tar.bz2
          <br />
          Category: Internet Radio and TV
        </p>
       
      </a>


Can somebody tell me what Im doing wrong??
alebo611
Techie
 
Posts: 10
Joined: Wed Dec 21, 2016 8:38 am

Re: CMake Error

Postby magreenblatt » Wed Dec 21, 2016 9:50 am

Can you download files from http://opensource.spotify.com/cefbuilds/index.html by clicking the links? Perhaps you're behind some type of proxy?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CMake Error

Postby alebo611 » Wed Dec 21, 2016 10:25 am

Yes I was. I worked pass that by downloading the file manually and replacing the bz2 file.
Then cmake extracted the file and continued. But now it run into another error:

-- Configuring incomplete, errors occurred!
See also "/application/cef-project/CMakeFiles/CMakeOutput.log".

this is the last part of CMakeOutput.log:

Code: Select all
/usr/bin/cmake -E cmake_progress_report /application/cef-project/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3654648611.dir/src.cxx.o
/usr/bin/c++    -DCOMPILER_SUPPORTS_NO_NARROWING   -Wno-narrowing -o CMakeFiles/cmTryCompileExec3654648611.dir/src.cxx.o -c /application/cef-project/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec3654648611
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3654648611.dir/link.txt --verbose=1
/usr/bin/c++    -DCOMPILER_SUPPORTS_NO_NARROWING    CMakeFiles/cmTryCompileExec3654648611.dir/src.cxx.o  -o cmTryCompileExec3654648611 -rdynamic
make[1]: Leaving directory '/application/cef-project/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0; }
alebo611
Techie
 
Posts: 10
Joined: Wed Dec 21, 2016 8:38 am

Re: CMake Error

Postby magreenblatt » Wed Dec 21, 2016 10:30 am

What OS and compiler do you have installed?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CMake Error

Postby alebo611 » Thu Dec 22, 2016 2:49 am

OS: Debian Jessie.
g++ (Debian 4.9.2-10) 4.9.2
alebo611
Techie
 
Posts: 10
Joined: Wed Dec 21, 2016 8:38 am

Re: CMake Error

Postby alebo611 » Thu Dec 22, 2016 3:48 am

I think I found the problem, I downloaded a newer (later) version. I'll try again with the correct version.
alebo611
Techie
 
Posts: 10
Joined: Wed Dec 21, 2016 8:38 am

Re: CMake Error

Postby alebo611 » Thu Dec 22, 2016 6:07 am

I managed to build the whole thing now! :)
But when starting the cefsimple application just hangs forever.
It should be mentioned that I did the cmake and make in the cef-project dir, not an own build dir because it didnt work for me to issue the make command in the build dir.
alebo611
Techie
 
Posts: 10
Joined: Wed Dec 21, 2016 8:38 am

Re: CMake Error

Postby magreenblatt » Fri Dec 23, 2016 5:25 am

Does the application window appear? Are there any errors on the console? You had proxy issues previously, so perhaps it can't reach google.com (the default URL).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CMake Error

Postby CraigZ » Fri Dec 23, 2016 5:33 am

alebo611 wrote:I managed to build the whole thing now! :)
But when starting the cefsimple application just hangs forever.
It should be mentioned that I did the cmake and make in the cef-project dir, not an own build dir because it didnt work for me to issue the make command in the build dir.


did you have the .. at the end of the cmake command when in the build directory? I only say as i did exactly this when first building :oops:
CraigZ
Newbie
 
Posts: 5
Joined: Fri Dec 23, 2016 4:44 am

Re: CMake Error

Postby alebo611 » Fri Dec 23, 2016 5:45 am

(Thanks for taking your time !)

Yes now I managed to build in the desginated build directory.
The application however behaves the same. It just hangs, and no application window is visible.
(I can reach http://www.google.com perfectly with a wget or similar, and it doesnt help to point out a local file eighter)
A system out println reveals that it hangs already on the line:

Code: Select all
int exit_code = CefExecuteProcess(main_args, NULL, NULL);


in cefsimple_linux.cc

moreover a ps looks like this:

root 8007 5500 0 11:42 tty1 00:00:00 /application/cef-project/third_party/build/cef/cefsimple/Release/cefsimple
root 8010 8007 0 11:42 tty1 00:00:00 [cefsimple] <defunct>
root 8089 27223 0 11:43 tty2 00:00:00 grep cef
alebo611
Techie
 
Posts: 10
Joined: Wed Dec 21, 2016 8:38 am

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 88 guests