Aclocal version in GNOME 40 Sdk is too new to build libraw?

I’m trying to build libraw 0.20.2 using org.gnome.Sdk//40, but I get the following error:

config.status: executing libtool commands
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /run/build/libraw/missing aclocal-1.15 -I m4
/run/build/libraw/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         '' or m4 files included by ''.
         The 'aclocal' program is part of the GNU Automake package:
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
make: *** [Makefile:653: aclocal.m4] Error 127
Error: module libraw: Child process exited with code 2

The Sdk has aclocal-1.16.

you should regenerate the configure files.

Yes, I saw other apps using autoreconf to build libraw and I copied their snippet, but it didn’t work for me. Here’s an example from PhotoQt.
I guess that the autoreconf shell command is supposed to be run before the build, but on my system it’s not.

I have to use the simple buildsystem and list all the commands in the right order. This works:

- name: libraw
    buildsystem: simple
      - --disable-examples
      - --disable-jasper
      - --disable-static
      - --enable-jpeg
      - --enable-lcms
      - --enable-openmp
      - autoreconf --install --force
      - ./configure --prefix=/app
      - make
      - make install
      - type: archive
        sha256: dc1b486c2003435733043e4e05273477326e51c3ea554c6864a4eafaff1004a6
      - /share/doc

This package build it this way

1 Like

PhotoQt builds from git.

Also there is a difference between shell to run commands and script for Not sure why (haven’t looked further)