Cannot compile for Ubuntu 22.04.2 LTS
dodancs opened this issue · 2 comments
dodancs commented
Hi, I was trying to compile this on Ubuntu 22.04 and I cannot figure out why it does not find the wayland-client
package. I have already tried to install the following packages:
- libwayland-dev
- libwayland-client++0
- libwayland-client0
- libwayland-client-extra++0
- libegl-dev
- libtls-dev
Here is the output log:
The Meson build system
Version: 0.61.2
Source dir: /usr/src/waynergy
Build dir: /usr/src/waynergy/build
Build type: native build
Project name: waynergy
Project version: 0.0.15
C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency wayland-client found: NO (tried cmake)
meson.build:26:0: ERROR: Pkg-config binary for machine 1 not found. Giving up.
A full log can be found at /usr/src/waynergy/build/meson-logs/meson-log.txt
/usr/src/waynergy/build/meson-logs/meson-log.txt
:
Build started at 2023-04-06T17:39:25.059950
Main binary: /usr/bin/python3
Build Options:
Python system: Linux
The Meson build system
Version: 0.61.2
Source dir: /usr/src/waynergy
Build dir: /usr/src/waynergy/build
Build type: native build
Project name: waynergy
Project version: 0.0.15
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:
-----
Sanity check compile stderr:
-----
Running test binary command: /usr/src/waynergy/build/meson-private/sanitycheckc.exe
C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:
-----
Sanity check compile stderr:
-----
Running test binary command: /usr/src/waynergy/build/meson-private/sanitycheckc.exe
C compiler for the build machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
C linker for the build machine: cc ld.bfd 2.38
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Pkg-config binary for 1 is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Pkg-config binary for machine 1 not found. Giving up.
CMake binary for 1 is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Found CMake: /usr/bin/cmake (3.22.1)
Extracting basic cmake information
CMake Toolchain: Calling CMake once to generate the compiler state
Calling CMake (['/usr/bin/cmake']) in /usr/src/waynergy/build/meson-private/__CMake_compiler_info__ with:
- "--trace-expand"
- "--trace-format=json-v1"
- "--no-warn-unused-cli"
- "--trace-redirect=cmake_trace.txt"
- "-G"
- "Ninja"
- "-DCMAKE_TOOLCHAIN_FILE=/usr/src/waynergy/build/meson-private/__CMake_compiler_info__/CMakeMesonTempToolchainFile.cmake"
- "."
Try CMake generator: auto
Calling CMake (['/usr/bin/cmake']) in /usr/src/waynergy/build/meson-private/cmake_wayland-client with:
- "--trace-expand"
- "--trace-format=json-v1"
- "--no-warn-unused-cli"
- "--trace-redirect=cmake_trace.txt"
- "-DCMAKE_TOOLCHAIN_FILE=/usr/src/waynergy/build/meson-private/cmake_wayland-client/CMakeMesonToolchainFile.cmake"
- "."
-- Module search paths: ['/', '/opt', '/usr', '/usr/local']
-- CMake root: /usr/share/cmake-3.22
-- CMake architectures: ['i386-linux-gnu', 'x86_64-linux-gnu']
-- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share', 'lib/i386-linux-gnu', 'lib/x86_64-linux-gnu']
Preliminary CMake check failed. Aborting.
Run-time dependency wayland-client found: NO (tried cmake)
meson.build:26:0: ERROR: Pkg-config binary for machine 1 not found. Giving up.
r-c-f commented
It looks like pkgconf
is missing.
dodancs commented
It looks like
pkgconf
is missing.
Nice, that was it! Thanks!