jkotra / eOVPN

OpenVPN Configuration Manager.
GNU General Public License v3.0
70 stars 9 forks source link

Error while installing, dependency "gobject-introspection-1.0" not found #11

Closed kurdtpage closed 3 years ago

kurdtpage commented 3 years ago
kurdtpage@mint:~/eOVPN$ meson build -Dprefix=/usr
The Meson build system
Version: 0.53.2
Source dir: /home/kurdtpage/eOVPN
Build dir: /home/kurdtpage/eOVPN/build
Build type: native build
Project name: eovpn
Project version: 0.01
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 (requests, psutil) found: YES (/usr/bin/python3) modules: requests, psutil
Message: /usr
Message: /usr/lib/python3.8/site-packages/
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Found CMake: /usr/bin/cmake (3.16.3)
Run-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig and cmake)

meson.build:30:0: ERROR: Dependency "gobject-introspection-1.0" not found, tried pkgconfig and cmake

A full log can be found at /home/kurdtpage/eOVPN/build/meson-logs/meson-log.txt

I installed via sudo apt-get install gobject-introspection (which seemed to install fine) but still comes up with the same error above

Contents of log file:

Build started at 2021-02-24T11:04:46.567412
Main binary: /usr/bin/python3
Build Options: -Dprefix=/usr
Python system: Linux
The Meson build system
Version: 0.53.2
Source dir: /home/kurdtpage/eOVPN
Build dir: /home/kurdtpage/eOVPN/build
Build type: native build
Project name: eovpn
Project version: 0.01
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
Program python3 (requests, psutil) found: YES (/usr/bin/python3) modules: requests, psutil
Message: /usr
Message: /usr/lib/python3.8/site-packages/
Pkg-config binary for MachineChoice.HOST 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
Trying pkg-config binary pkg-config for machine MachineChoice.HOST at ['/usr/bin/pkg-config']
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Determining dependency 'gobject-introspection-1.0' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: 
Called `/usr/bin/pkg-config --modversion gobject-introspection-1.0` -> 1

CMake binary for MachineChoice.HOST is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Trying CMake binary cmake for machine MachineChoice.HOST at ['/usr/bin/cmake']
Found CMake: /usr/bin/cmake (3.16.3)
Extracting basic cmake information
Try CMake generator: auto
No CFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
No CXXFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Failed to find a fortran compiler for CMake. This might cause CMake to fail.
Called `/usr/bin/cmake --trace-expand .` in /home/kurdtpage/eOVPN/build/meson-private/cmake_gobject-introspection-1.0 -> 0
  -- Module search paths:    ['/', '/opt', '/usr', '/usr/local']
  -- CMake root:             /usr/share/cmake-3.16
  -- 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 gobject-introspection-1.0 found: NO (tried pkgconfig and cmake)

meson.build:30:0: ERROR: Dependency "gobject-introspection-1.0" not found, tried pkgconfig and cmake
jkotra commented 3 years ago

I belive you need to install libgirepository1.0-dev which provides corresponding .pc file.

Almost all distributions can run python GTK applications out-of-box (for example: Ubuntu and it's derivatives), building through meson is for developers only, you can comment out these dependencies by editing meson.build

Use Flatpak distribution for stable performance.

kurdtpage commented 3 years ago

Good to know, thanks for that. The readme.md file says to use meson: https://github.com/jkotra/eOVPN#install Might pay to update to link to the flatpak file