eog(eye of gnome)のビルド

Ubuntu 20.20 daily build.




Ubuntu20.20のeogは2020/03/07時点ではversionが3.35.92で、gitリポジトリは3.35.93となっている。


# ソース取得とmesonビルド
```
git clone https://gitlab.gnome.org/GNOME/eog.git
cd eog
sudo apt install meson
meson build/
```

# gio-2.0 依存解決
```
 Found pkg-config: /usr/bin/pkg-config (0.29.1)
Found CMake: /usr/bin/cmake (3.16.3)
Run-time dependency gio-2.0 found: NO (tried pkgconfig and cmake)

meson.build:108:0: ERROR: Dependency "gio-2.0" not found, tried pkgconfig and cmake
```

これを解決するのは `libgio-cil libgio2.0-cil-devlibgio3.0-cil libgio3.0-cil-dev ` ではない。
`sudo apt install libglib2.0-dev`
で解決。

```
MN@daisy-bell:eog/$ meson build/
~
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency gio-2.0 found: YES 2.64.0
Run-time dependency gio-unix-2.0 found: YES 2.64.0
Found CMake: /usr/bin/cmake (3.16.3)
~
```

```
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency gio-2.0 found: YES 2.64.0
Run-time dependency gio-unix-2.0 found: YES 2.64.0
Found CMake: /usr/bin/cmake (3.16.3)
Run-time dependency gnome-desktop-3.0 found: NO (tried pkgconfig and cmake)
```
`sudo apt install libgnome-desktop-3-dev`

```
Run-time dependency gnome-desktop-3.0 found: YES 3.35.91
Found CMake: /usr/bin/cmake (3.16.3)
Run-time dependency libpeas-gtk-1.0 found: NO (tried pkgconfig and cmake)
```



`sudo apt install libpeas-dev`


```
Found CMake: /usr/bin/cmake (3.16.3)
Run-time dependency libexif found: NO (tried pkgconfig and cmake)

meson.build:144:2: ERROR: Assert failed: libexif support requested but library not found. Please use -Dlibexif=false
```
`sudo apt install libexif-dev`

```
Found CMake: /usr/bin/cmake (3.16.3)
Run-time dependency lcms2 found: NO (tried pkgconfig and cmake)
```
`sudo apt install liblcms2-dev`

```
Has header "zlib.h" : YES
Checking for function "inflate" : NO
Library z found: YES
Checking for function "inflate" with dependency -lz: YES
Checking for function "crc32" with dependency -lz: YES
Run-time dependency libexif found: YES 0.6.21
Has header "libexif/exif-data.h" with dependency libexif: YES
Run-time dependency lcms2 found: YES 2.9
Found CMake: /usr/bin/cmake (3.16.3)
Run-time dependency exempi-2.0 found: NO (tried pkgconfig and cmake)

meson.build:161:2: ERROR: Dependency "exempi-2.0" not found, tried pkgconfig and cmake
```
`sudo apt install libexempi-dev`

```
Has header "zlib.h" : YES
Checking for function "inflate" : NO
Library z found: YES
Checking for function "inflate" with dependency -lz: YES
Checking for function "crc32" with dependency -lz: YES
Run-time dependency libexif found: YES 0.6.21
Has header "libexif/exif-data.h" with dependency libexif: YES
Run-time dependency lcms2 found: YES 2.9
Run-time dependency exempi-2.0 found: YES 2.5.1
Found CMake: /usr/bin/cmake (3.16.3)
Run-time dependency libjpeg found: NO (tried pkgconfig and cmake)
Checking for function "jpeg_destroy_decompress" with dependency not-found: NO

meson.build:169:2: ERROR: Assert failed: libjpeg support requested but library not found. Please use -Dlibjpeg=false (some programs using GTK+ may not work properly) ```
`sudo apt install libjpeg-dev`

あと
`sudo apt install librsvg2-dev`


```
Has header "zlib.h" : YES
Checking for function "inflate" : NO
Library z found: YES
Checking for function "inflate" with dependency -lz: YES
Checking for function "crc32" with dependency -lz: YES
Run-time dependency libexif found: YES 0.6.21
Has header "libexif/exif-data.h" with dependency libexif: YES
Run-time dependency lcms2 found: YES 2.9
Run-time dependency exempi-2.0 found: YES 2.5.1
Run-time dependency libjpeg found: YES 2.0.3
Checking for function "jpeg_destroy_decompress" with dependency libjpeg: YES
Has header "jpeglib.h" with dependency libjpeg: YES
Checking for function "jpeg_simple_progression" with dependency libjpeg: YES
Checking if "libjpeg version is 8 or greater" with dependency libjpeg compiles: YES
Run-time dependency gobject-introspection-1.0 found: YES 1.63.2
Run-time dependency librsvg-2.0 found: YES 2.46.4
Run-time dependency gdk-3.0 found: YES 3.24.13
Run-time dependency x11 found: YES 1.6.9
Configuring org.gnome.eog.desktop.in using configuration
WARNING: Gettext not found, all translation targets will be ignored.
Configuring org.gnome.eog.gschema.xml using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Compiler for C supports link arguments -Wl,--version-script,/home/nuka/eog/src/symbol.map: YES
Program msgfmt found: NO

plugins/meson.build:1:0: ERROR: Program(s) ['msgfmt'] not found or not executable
```
`sudo apt install gettext`


```
Message: Configure summary:

  Source code location .......:  /home/nuka/eog
  Compiler ...................:  gcc
  Extra Compiler Warnings ....:  -Werror=format=2 -Werror=implicit-function-declaration -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith -Werror=return-type -Wnested-externs -Wstrict-prototypes
  EXIF support ...............:  true
  XMP support ................:  true
  JPEG support ...............:  true
  Colour management support ..:  true
  GObject Introspection.......:  true

Build targets in project: 25

Found ninja-1.10.0 at /usr/bin/ninja
```
以上meson成功。


# 無視
```
Has header "zlib.h" : YES
Checking for function "inflate" : NO
Library z found: YES
```
は無視して良い模様。


# ビルド
```
cd build
ninja
```
`[70/70] Generating Eog-3.0.typelib with a custom command.`

# 実行
以下のパスに実行ファイルが生成されている。
`build/$ ./src/eog`





0 件のコメント:

コメントを投稿

TIGORA(ティゴラ)のトレッキング シューズ

 TIGORA(ティゴラ)の トレッキング シューズを買いました。 メインの靴がアシックスウォーキングで街歩き用なのですが、これまではこれで高尾山などの軽い山も登っていました。 今回、靴底があまりに摩耗したこともあってアシックスウォーキングを買い替えたのですが、ついでに消耗が激...