Open russel opened 5 years ago
The pkgconfig file for gobject introspection, and the gir files we actually depend on are part of the libgirepository1.0-dev
package on debian.
I've added girtod (and GlibD) to code.dlang.org, that should fix the first error though you will still need libgirepository1.0-dev
in both cases.
I was focused on the wrong package. :-( And I was using the one machine that didn't already have it installed. :-( :-(
For the Dub build:
|> dub build --compiler=ldc2
Invalid source/import path: /home/users/russel/Repositories/Git/Forks/GlibD/generated
Running pre-generate commands for glibd...
Fetching girtod 0.16.1...
Please note that you need to use `dub run <pkgname>` or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem.
Building package girtod in /home/users/russel/.dub/packages/girtod-0.16.1/girtod/
Running pre-generate commands for girtod...
Performing "$DFLAGS" build using /usr/bin/dmd for x86_64.
girtod 0.16.1: building configuration "application"...
Linking...
Running ../../../../.dub/packages/girtod-0.16.1/girtod/girtod -i src -o generated --use-runtime-linker
copying file [src/gtkd] to [generated/gtkd]
Configuration 'library' of package glibd contains no source files. Please add {"targetType": "none"} to its package description to avoid building it.
Main package must have a binary target type, not none. Cannot build.
I'm not quite sure why it is trying to use DMD in the middle there.
For the Meson build, which is more important in my current context:
|> meson --prefix=$HOME/Built ~/Repositories/Git/Forks/GlibD
The Meson build system
Version: 0.48.0
Source dir: /home/users/russel/Repositories/Git/Forks/GlibD
Build dir: /home/users/russel/BuildArea/GlibD
Build type: native build
Project name: GlibD
Project version: 2.0.0
Native D compiler: ldc2 (llvm 1.11.0 "LDC - the LLVM D compiler (1.11.0):")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29)
Dependency glib-2.0 found: YES 2.58.1
Dependency gobject-2.0 found: YES 2.58.1
Dependency gio-2.0 found: YES 2.58.1
Dependency gobject-introspection-1.0 found: YES 1.58.0
Program girtod found: YES (/home/users/russel/Built/bin/girtod)
Message: Generating D interfaces from GIR...
Build targets in project: 2
Found ninja-1.8.2 at /usr/bin/ninja
515 anglides:~/BuildArea/GlibD
|> ninja
[330/330] Linking target tests/gobject/value_test.
The dub build used to work, but there seems to be a regression in how the preGenerateCommands are handled. https://github.com/dlang/dub/issues/1474
I cloned the repository, then tried:
then I tried the Meson build:
which is a bit sad since: