!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
130 Servers

Load older messages


SenderMessageTime
11 Nov 2021
@mobyturbo:matrix.orgEdLin left the room.08:02:47
@artturin:matrix.orgArtturin joined the room.20:49:18
@artturin:matrix.orgArtturin

gtk2 cross fails with

 no --force --ignore-theme-index         \
    --include-image-data                                                 \
    --source builtin_icons stock-icons > gtkbuiltincache.h.tmp &&        \
 mv gtkbuiltincache.h.tmp gtkbuiltincache.h
 /nix/store/phqa311klldrcbwid1i22dwnpfc9dnma-bash-5.1-p8/bin/bash: line 1: no: command not found
20:52:37
@artturin:matrix.orgArtturinhttps://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-2-24/gtk/Makefile.am#L144420:52:44
@artturin:matrix.orgArtturinits no because of https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-2-24/configure.ac#L91720:53:33
@artturin:matrix.orgArtturin it should probably be false? 20:58:12
@rick:matrix.ciphernetics.nlRick (Mindavi)
In reply to @artturin:matrix.org

gtk2 cross fails with

 no --force --ignore-theme-index         \
    --include-image-data                                                 \
    --source builtin_icons stock-icons > gtkbuiltincache.h.tmp &&        \
 mv gtkbuiltincache.h.tmp gtkbuiltincache.h
 /nix/store/phqa311klldrcbwid1i22dwnpfc9dnma-bash-5.1-p8/bin/bash: line 1: no: command not found
I do have some patches that may help in my pinephone-patches-3 tree
20:58:17
@artturin:matrix.orgArtturin * it should probably be true? 20:58:19
@rick:matrix.ciphernetics.nlRick (Mindavi)IIRC I build gtk2 natively and use the gtk-update-icon-cache from that20:59:50
@rick:matrix.ciphernetics.nlRick (Mindavi)Which is not ideal, but works21:00:00
@rick:matrix.ciphernetics.nlRick (Mindavi)And I think that was what's intended with that code anyway21:01:04
@artturin:matrix.orgArtturinfound yours https://github.com/Mindavi/nixpkgs/commit/e05bb81d64e41ab2ee590805ce6c9f91ce0a2d6221:02:34
@artturin:matrix.orgArtturinhttps://mail.gnome.org/archives/gtk-app-devel-list/2014-June/msg00018.html21:04:28
@rick:matrix.ciphernetics.nlRick (Mindavi)
In reply to @artturin:matrix.org
found yours https://github.com/Mindavi/nixpkgs/commit/e05bb81d64e41ab2ee590805ce6c9f91ce0a2d62
The commit message should be enough warning, I guess 😜
21:08:13
@artturin:matrix.orgArtturinhttps://mail.gnome.org/archives/commits-list/2013-January/msg02389.html21:12:21
@artturin:matrix.orgArtturintesting adding buildPackages.stdenv.cc and pkg-config to depsBuildBuild21:12:36
@rick:matrix.ciphernetics.nlRick (Mindavi)Oh, it should actually build gtk-update-icon-cache for the build system?21:13:53
@rick:matrix.ciphernetics.nlRick (Mindavi)That would be a lot nicer :)21:14:05
@artturin:matrix.orgArtturindoesn't work21:17:23
@artturin:matrix.orgArtturinsame error21:17:27
@artturin:matrix.orgArtturin

configure.ac

dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling

AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)

if test $cross_compiling = yes; then
  AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no)
  if test x$GTK_UPDATE_ICON_CACHE = xno; then
    REBUILD_PNGS=#
  fi
fi

AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)

if test ! -f $srcdir/gtk/gtkbuiltincache.h && 
   test "x$REBUILD_PNGS" = "x#" ; then
     AC_MSG_ERROR([
*** gtkbuiltincache.h is not in the tree, and cannot be built
*** because you don't have libpng, or (when cross-compiling) you 
*** don't have a prebuilt gtk-update-icon-cache on the build system.])
fi

21:17:48
@artturin:matrix.orgArtturin prebuilt gtk-update-icon-cache on the build system 21:17:58
@artturin:matrix.orgArtturinweird21:17:59
@artturin:matrix.orgArtturinwe dont hit that error though21:18:07
@artturin:matrix.orgArtturinbecause we dont reconfigure?21:19:04
@artturin:matrix.orgArtturintrying autoreconfHook21:19:07
@artturin:matrix.orgArtturinfail https://gist.github.com/Artturin/c0229dc69cbc3f9f47d3a800b592c2a221:22:00
@rick:matrix.ciphernetics.nlRick (Mindavi)All kind of gtk_doc stuff, hmm21:23:53
@rick:matrix.ciphernetics.nlRick (Mindavi)I'm not very familiar with automake or configure as a build system, I typically do some hacks here and there, but don't actually properly understand it21:24:30
@rick:matrix.ciphernetics.nlRick (Mindavi)But I remember there's a tool in the suite that tries to 'modernize' the script, maybe that's an option?21:24:57

Show newer messages


Back to Room ListRoom Version: 6