# CMAKE error while Native App Tutorials

**URL:** <https://forum.webosose.org/t/cmake-error-while-native-app-tutorials/4638>\
**Category:** Uncategorized\
**Created:** [October 5, 2024, 4:08pm UTC](https://forum.webosose.org/t/cmake-error-while-native-app-tutorials/4638 "2024-10-05T16:08:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![harp\_seal](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@harp\_seal](https://forum.webosose.org/u/harp_seal)\
**Post date:** [October 5, 2024, 4:08pm UTC](https://forum.webosose.org/t/cmake-error-while-native-app-tutorials/4638/1 "2024-10-05T16:08:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [October 7, 2024, 12:11am UTC](https://forum.webosose.org/t/cmake-error-while-native-app-tutorials/4638/2 "2024-10-07T00:11:14Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [October 14, 2024, 7:24am UTC](https://forum.webosose.org/t/cmake-error-while-native-app-tutorials/4638/3 "2024-10-14T07:24:57Z")

</div>

@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.

```auto
# 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.

```auto
cat sysroots/cortexa72-webos-linux/usr/share/pkgconfig/wayland-webos-client.pc

```

```auto
# 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
