0

我按照GENIVI指南的步骤进行操作。

构建wayland-ivi-extension:

$ git clone https://github.com/GENIVI/wayland-ivi-extension.git

$ mkdir build-wayland-ivi-extension

$ cd build-wayland-ivi-extension

$ cmake ./ -DBUILD_ILM_API_TESTS=1 ../wayland-ivi-extension

$ make

$ make install

执行时出现错误:

cmake ./ -DBUILD_ILM_API_TESTS=1 ../wayland-ivi-extension

错误日志:</p>

-- The C compiler identification is GNU 5.4.0

-- The CXX compiler identification is GNU 5.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

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 

-- Checking for module 'wayland-client>=1.13.0'


CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
  protocol/CMakeLists.txt:25 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/nlin/Wayland/build-wayland-ivi-extension/CMakeFiles/CMakeOutput.log".
4

1 回答 1

0

编译需要一些已安装的软件包Wayland-ivi-extension 先决条件: - Weston - 需要 CMake(2.6 版或更高版本) - 打开 GLES 和 EGL 以用于示例应用程序 - Gtest 用于测试套件

sudo apt-get install pkg-config 
sudo apt-get install libwayland-dev

然后尝试运行cmake命令。如果有任何错误,请随时联系。

于 2018-09-11T13:28:34.190 回答