CMAKE error while Native App Tutorials

Hi, I was trying Native Apps tutorials in ubuntu 22.04
everything was going fine,

in step 01.building an App, when i command 'cmake ..'

CMake Deprecation Warning at CMakeLists.txt:17 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'wayland-webos-client'
-- No package 'wayland-webos-client' found
CMake Error at /usr/local/share/cmake-3.30/Modules/FindPkgConfig.cmake:645 (message):
The following required packages were not found:

  • wayland-webos-client

Call Stack (most recent call first):
/usr/local/share/cmake-3.30/Modules/FindPkgConfig.cmake:873 (_pkg_check_modules_internal)
CMakeLists.txt:26 (pkg_check_modules)

-- Configuring incomplete, errors occurred!

this error comes out.
the major problem seems like 'wayland-webos-client' is not found

i double-checked NDK, npm libraries, github directories, downloaded the newest Cmake, but i have no idea how to find those package.

it might be very grateful if you give me some advice

Hi @harp_seal, welcome to the forum.

I'll forward this post to our development team. Depending on the priority of internal tasks, it may take some time to get an answer.

Thanks!

@harp_seal,

It seemed like cmake cannot find wayland-webos-client package when it builds the sample native app. It means the NDK is not installed properly.

Check whether the wayland-webos-client.pc file is generated or not.

By default, the NDK will be installed on ~/opt/webos-sdk-x86_64. Enter the following commands.

# Move into the directory,
cd ~/opt/webos-sdk-x86_64
# Find the file
find . -name "wayland-webos-client*"
# Output example
./sysroots/cortexa72-webos-linux/usr/share/pkgconfig/wayland-webos-client.pc

If you find the file, check the content of it.

cat sysroots/cortexa72-webos-linux/usr/share/pkgconfig/wayland-webos-client.pc
# Copyright (c) 2013-2018 LG Electronics, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

libdir=/usr/lib
includedir=/usr/include

Name: wayland-webos-client
Description: Wayland protocol extensions for webOS
Version: 1.0.0
Requires.private: wayland-client
Libs: -L${libdir} -lwayland-webos-client -L/data001/jenkins/gecko/webosose_raspberrypi4-64/build/BUILD/work/raspberrypi4_64-webos-linux/webos-wayland-extensions/1.0.0-47-r6/recipe-sysroot/usr/lib -lwayland-client
Cflags: -I${includedir}

If you cannot find the file, please re-build the NDK.

Thanks