tfuxu / Halftone

Give your images that pixel art-like style
GNU General Public License v3.0
97 stars 16 forks source link

0.5.0: Build fails: Failed to locate “ui/dither_page.ui” in any source directory. #51

Closed yurivict closed 6 months ago

yurivict commented 9 months ago
WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug. Using both is redundant since they override each other. See: https://mesonbuild.com/Builtin-options.html#build-type-options
The Meson build system
Version: 1.2.3
Source dir: /usr/ports/graphics/halftone/work/Halftone-0.5.0
Build dir: /usr/ports/graphics/halftone/work/Halftone-0.5.0/_build
Build type: native build
Project name: halftone
Project version: 0.5.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program git found: YES (/usr/local/bin/git)
Found pkg-config: /usr/local/bin/pkgconf (2.0.3)
Run-time dependency glib-2.0 found: YES 2.78.0
Run-time dependency gtk4 found: YES 4.12.3
Run-time dependency libadwaita-1 found: YES 1.4.0
Run-time dependency pygobject-3.0 found: YES 3.42.2
Program python3 found: YES (/usr/ports/graphics/halftone/work/.bin/python3)
Configuring halftone using configuration
Configuring constants.py using configuration
halftone/meson.build:13: WARNING: The variable(s) 'TRANSLATE_URL' in the input file 'halftone/constants.in' are not present in the given configuration data.
Program blueprint-compiler found: YES (/usr/local/bin/blueprint-compiler)
Configuring io.github.tfuxu.Halftone.desktop.in using configuration
Program msgfmt found: YES (/usr/local/bin/msgfmt)
Program desktop-file-validate found: YES (/usr/local/bin/desktop-file-validate)
Found pkg-config: /usr/local/bin/pkgconf (2.0.3)
Build-time dependency gio-2.0 found: YES 2.78.0
Program /usr/local/bin/glib-compile-resources found: YES (/usr/local/bin/glib-compile-resources)
Configuring io.github.tfuxu.Halftone.appdata.xml.in using configuration
data/meson.build:39: WARNING: The variable(s) 'TRANSLATE_URL' in the input file 'data/io.github.tfuxu.Halftone.appdata.xml.in.in' are not present in the given configuration data.
Program appstream-util found: NO
Configuring io.github.tfuxu.Halftone.gschema.xml using configuration
Program glib-compile-schemas found: YES (/usr/local/bin/glib-compile-schemas)
Program msginit found: YES (/usr/local/bin/msginit)
Program msgmerge found: YES (/usr/local/bin/msgmerge)
Program xgettext found: YES (/usr/local/bin/xgettext)
Dependency gio-2.0 found: YES 2.78.0 (cached)
Program /usr/local/bin/glib-compile-schemas found: YES (/usr/local/bin/glib-compile-schemas)
Program gtk4-update-icon-cache found: YES (/usr/local/bin/gtk4-update-icon-cache)
Program update-desktop-database found: YES (/usr/local/bin/update-desktop-database)
Build targets in project: 17

halftone 0.5.0

  User defined options
    auto_features     : enabled
    buildtype         : release
    infodir           : share/info
    mandir            : man
    optimization      : plain
    prefix            : /usr/local
    strip             : True
    python.bytecompile: -1
    b_colorout        : never

Found ninja-1.11.1 at /usr/local/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
===>  Building for halftone-0.5.0
[  7% 7/13] /usr/local/bin/msgfmt -o po/it/LC_MESSAGES/halftone.mo ../po/it.po
[ 15% 8/13] /usr/local/bin/msgfmt -o po/pt_BR/LC_MESSAGES/halftone.mo ../po/pt_BR.po
[ 23% 9/13] /usr/local/bin/msgfmt -o po/nl/LC_MESSAGES/halftone.mo ../po/nl.po
[ 30% 10/13] /usr/local/bin/msgfmt -o po/pl/LC_MESSAGES/halftone.mo ../po/pl.po
[ 38% 11/13] /usr/local/bin/msgfmt -o po/sk/LC_MESSAGES/halftone.mo ../po/sk.po
[ 46% 12/13] /usr/local/bin/msgfmt -o po/ru/LC_MESSAGES/halftone.mo ../po/ru.po
[ 53% 12/13] /usr/local/bin/msgfmt -o po/tr/LC_MESSAGES/halftone.mo ../po/tr.po
[ 61% 12/13] /usr/local/bin/msgfmt -o po/uk/LC_MESSAGES/halftone.mo ../po/uk.po
[ 69% 12/13] /usr/local/bin/msgfmt -o po/zh_CN/LC_MESSAGES/halftone.mo ../po/zh_CN.po
[ 76% 12/13] /usr/local/bin/meson --internal msgfmthelper --msgfmt=/usr/local/bin/msgfmt data/io.github.tfuxu.Halftone.desktop.in data/io.github.tfuxu.Halftone.desktop desktop ../data/../po
[ 84% 12/13] /usr/local/bin/meson --internal msgfmthelper --msgfmt=/usr/local/bin/msgfmt data/io.github.tfuxu.Halftone.appdata.xml.in data/io.github.tfuxu.Halftone.appdata.xml xml ../data/../po
[ 92% 12/13] /usr/local/bin/blueprint-compiler batch-compile data/ui/. ../data/ui ../data/ui/dither_page.blp ../data/ui/help_overlay.blp ../data/ui/main_window.blp ../data/ui/preferences_window.blp ../data/ui/report_page.blp
usage: blueprint-compiler [-h] [--version] command ...

positional arguments:
  command
    compile      Compile blueprint files
    batch-compile
                 Compile many blueprint files at once
    port         Interactive porting tool
    lsp          Run the language server (for internal use by IDEs)
    help         Show this message

optional arguments:
  -h, --help     show this help message and exit
  --version      show program's version number and exit
[100% 13/13] /usr/local/bin/glib-compile-resources ../data/halftone.gresource.xml --sourcedir /usr/ports/graphics/halftone/work/Halftone-0.5.0/_build/data --sourcedir data/ui --sourcedir ../data --internal --generate --target data/halftone.gresource --dependency-file data/halftone.gresource.d
FAILED: data/halftone.gresource 
/usr/local/bin/glib-compile-resources ../data/halftone.gresource.xml --sourcedir /usr/ports/graphics/halftone/work/Halftone-0.5.0/_build/data --sourcedir data/ui --sourcedir ../data --internal --generate --target data/halftone.gresource --dependency-file data/halftone.gresource.d
../data/halftone.gresource.xml: Failed to locate “ui/dither_page.ui” in any source directory.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

blueprint-compiler-0.10.0 FreeBSD 13.2

tfuxu commented 8 months ago

I remember this issue from when python-argparse package interfered with Blueprint in Arch, someone had that issue with Halftone here.

From what I checked, Freshports has py-argparse package, so it's possible you have it installed. If so, try uninstalling it (also double check with pip list) and then retry building Halftone.

tfuxu commented 8 months ago

@yurivict Have this fixed your issue?