Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tip-of-tree does not compile (cmake configuration failure) #63

Closed
aslushnikov opened this issue Jan 24, 2020 · 1 comment
Closed

tip-of-tree does not compile (cmake configuration failure) #63

aslushnikov opened this issue Jan 24, 2020 · 1 comment

Comments

@aslushnikov
Copy link

Hi!

I'm trying to compile tip-of-tree libwpe on Ubuntu. I do the following steps:

  1. git clone https://github.com/WebPlatformForEmbedded/libwpe
  2. cd libwpe
  3. cmake .

Here is what I get:

aslushnikov:~/prog/libwpe(master)$ cmake .
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CXX_HAS_FLAG_-fno-exceptions
-- Performing Test CXX_HAS_FLAG_-fno-exceptions - Success
-- Performing Test CXX_HAS_FLAG_-fno-rtti
-- Performing Test CXX_HAS_FLAG_-fno-rtti - Success
-- Performing Test CXX_HAS_FLAG_-Wall
-- Performing Test CXX_HAS_FLAG_-Wall - Success
-- Performing Test CC_HAS_FLAG_-Wall
-- Performing Test CC_HAS_FLAG_-Wall - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'egl'
--   Found egl, version 19.2.1
CMake Error at cmake/FindEGL.cmake:53 (target_link_libraries):
  Cannot specify link libraries for target "GL::egl" which is not built by
  this project.
Call Stack (most recent call first):
  CMakeLists.txt:51 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/aslushnikov/prog/libwpe/CMakeFiles/CMakeOutput.log".

Note: this worked fine on version 1.4.0; it looks like this commit changed the EGL discovery somehow and CMake is unhappy.

I tried compiling under clean ubuntu docker image with the same results.

Is this a bug in cmake configuration, or do I miss something?

Thanks!

@zdobersek
Copy link
Contributor

Reproduced the same problem.

d395e44 should fix this. AFAIU the error is a quirk of older CMake versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants