Unable to build GENIVI wayland-ivi-extension on ClearLinux

Hi Team,

I am trying to build wayland-ivi-extension following the links:
https://at.projects.genivi.org/wiki/display/WIE/Quick+start
and

However, it gives following error on ClearLinux machine. I already installed a ClearLinux bundle: weston-extras, does not resolve the error.
Can you please help on package needed to add for resolving this error:

praful@prfl-clr ~/workspace/wayland-ivi/wayland-ivi-extension/build-wayland-ivi-extension $ cmake ./ -DBUILD_ILM_API_TESTS=1 …/
– The C compiler identification is GNU 9.1.1
– The CXX compiler identification is GNU 9.1.1
– Check for working C compiler: /usr/bin/gcc
– Check for working C compiler: /usr/bin/gcc – 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/g++
– Check for working CXX compiler: /usr/bin/g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.2”)
– Checking for module ‘wayland-client>=1.13.0’
– Found wayland-client, version 1.17.0
– Checking for module ‘wayland-server>=1.13.0’
– Found wayland-server, version 1.17.0
CMake Warning (dev) at CMakeLists.txt:34 (add_subdirectory):
The source directory

/home/praful/workspace/wayland-ivi/wayland-ivi-extension/weston-ivi-shell

does not contain a CMakeLists.txt file.

CMake does not support this case but it used to work accidentally and is
being allowed for compatibility.

Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run
“cmake --help-policy CMP0014” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Checking for module ‘wayland-client’
– Found wayland-client, version 1.17.0
CMake Warning (dev) at ivi-layermanagement-api/ilmCommon/CMakeLists.txt:28 (GET_TARGET_PROPERTY):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run “cmake --help-policy CMP0045” for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target “ilmControl”.
This warning is for project developers. Use -Wno-dev to suppress it.

– gtest_INCLUDE_DIRS: /usr/include
– gtest_LIBRARIES: /usr/lib64/libgtest.so;/usr/lib64/libgtest_main.so
– Checking for module ‘glesv2’
– Found glesv2, version 19.2.0-devel
– Checking for module ‘egl’
– Found egl, version 19.2.0-devel
– Checking for module ‘wayland-egl’
– Found wayland-egl, version 18.1.0
– Checking for module ‘wayland-cursor’
– Found wayland-cursor, version 1.17.0
– Checking for module ‘wayland-server’
– Found wayland-server, version 1.17.0
– Checking for module ‘pixman-1’
– Found pixman-1, version 0.38.4
CMake Warning (dev) at ivi-input-modules/ivi-input-controller/CMakeLists.txt:30 (GET_TARGET_PROPERTY):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run “cmake --help-policy CMP0045” for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target “ivi-controller”.
This warning is for project developers. Use -Wno-dev to suppress it.

– Checking for module ‘libweston-desktop-6’
– No package ‘libweston-desktop-6’ found
CMake Error at /usr/share/cmake-3.14/Modules/FindPkgConfig.cmake:457 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.14/Modules/FindPkgConfig.cmake:642 (_pkg_check_modules_internal)
ivi-id-agent-modules/ivi-id-agent/CMakeLists.txt:28 (pkg_check_modules)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
IVI_CONTROLLER_INCLUDE_DIRS
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller

– Configuring incomplete, errors occurred!
See also “/home/praful/workspace/wayland-ivi/wayland-ivi-extension/build-wayland-ivi-extension/CMakeFiles/CMakeOutput.log”.
See also “/home/praful/workspace/wayland-ivi/wayland-ivi-extension/build-wayland-ivi-extension/CMakeFiles/CMakeError.log”.

1 Like

Hi Team,

I could get rid of ‘libweston-desktop-6’ error by installing weston package: GitHub - clearlinux-pkgs/weston

Since, weston-dev is not available as bundle on clearlinux. We need to generate rpms for weston-dev using weston package.

However, we are again stuck with the error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
IVI_CONTROLLER_INCLUDE_DIRS

Kindly help to resolve this error. The variable “IVI_CONTROLLER_INCLUDE_DIRS” should be populated automatically by cmake, but does not seem to work. Complete log pasted below:

praful@prfl-clr ~/workspace/wayland-ivi/wayland-ivi-extension/build $ cmake -DBUILD_ILM_API_TESTS=1 …/
CMake Deprecation Warning at CMakeLists.txt:26 (cmake_policy):
The OLD behavior for policy CMP0014 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Deprecation Warning at CMakeLists.txt:27 (cmake_policy):
The OLD behavior for policy CMP0045 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

– Checking for module ‘wayland-client>=1.13.0’
– Found wayland-client, version 1.17.0
– Checking for module ‘wayland-server>=1.13.0’
– Found wayland-server, version 1.17.0
CMake Deprecation Warning at ivi-layermanagement-api/ilmCommon/CMakeLists.txt:25 (cmake_policy):
The OLD behavior for policy CMP0045 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

– Checking for module ‘wayland-client’
– Found wayland-client, version 1.17.0
– gtest_INCLUDE_DIRS: /usr/include
– gtest_LIBRARIES: /usr/lib64/libgtest.so;/usr/lib64/libgtest_main.so
CMake Deprecation Warning at ivi-input-modules/ivi-input-controller/CMakeLists.txt:24 (cmake_policy):
The OLD behavior for policy CMP0045 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

– Checking for module ‘wayland-server’
– Found wayland-server, version 1.17.0
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
IVI_CONTROLLER_INCLUDE_DIRS
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller
used as include directory in directory /home/praful/workspace/wayland-ivi/wayland-ivi-extension/ivi-input-modules/ivi-input-controller

– Configuring incomplete, errors occurred!
See also “/home/praful/workspace/wayland-ivi/wayland-ivi-extension/build/CMakeFiles/CMakeOutput.log”.
See also “/home/praful/workspace/wayland-ivi/wayland-ivi-extension/build/CMakeFiles/CMakeError.log”.