XDG-APP: Building an APP with multiple libraries



I'm trying to build an APP to create a bundle. I've folow tutorials and created a JSON file to do so, but I found a problem with a library written in Vala.

Because of this I'm trying to create  a Runtime/SDK using the required libraries for my APP. As this is a problem with open source projects, I've created a JSON file to create this runtime/sdk with the following:

{
  "app-id": "org.gnome.Sdk.gxml",
  "build-runtime":true,
  "runtime": "org.gnome.Platform",
  "runtime-version": "3.18",
  "sdk": "org.gnome.Sdk",
  "modules": [
    {
      "name": "ligee",
      "config-opts": ["--disable-introspection"],
      "sources": [
        {
          "type": "archive",
          "url": "https://download.gnome.org/sources/libgee/0.18/libgee-0.18.0.tar.xz",
          "sha256": "4ad99ef937d071b4883c061df40bfe233f7649d50c354cf81235f180b4244399"
        }
      ]
    },
    {
      "name": "gxml",
      "config-opts": ["--disable-introspection"],
      "sources": [
        {
          "type": "archive",
          "url": "https://download.gnome.org/sources/gxml/0.8/gxml-0.8.2.tar.xz",
          "sha256": "79bb09746ba03d617b7045a486f679a9bd2fb3ec088c2ed6017b27a27d560773"
        }
      ]
    }
  ]
}

When I try to build this runtime using:

xdg-app-builder -v ./gxml org.gnome.Sdk.gxml.json

Build starts, but fail not found a "eu-strip" (script?) with following messages:

Trace is:

Downloading sources
Initializing build dir
Commiting stage init to cache
Starting build of org.gnome.Sdk.gxml
========================================================================
Building module ligee in /home/despinosa/Proyectos/PKG/pwmc-cfdi/.xdg-app-builder/build/ligee-9
========================================================================
Running: xdg-app build --nofilesystem=host --filesystem=/home/despinosa/Proyectos/PKG/pwmc-cfdi/.xdg-app-builder/build/ligee-9 --bind-mount=/run/build-runtime/ligee=/home/despinosa/Proyectos/PKG/pwmc-cfdi/.xdg-app-builder/build/ligee-9 --build-dir=/run/build-runtime/ligee /home/despinosa/Proyectos/PKG/pwmc-cfdi/gxml ./configure --prefix=/usr --disable-introspection
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-freedesktop-linux/bin/ld
checking if the linker (/usr/x86_64-freedesktop-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-freedesktop-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-freedesktop-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for gobject-introspection... no (disabled, use --enable-introspection to enable)
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gee-0.8.pc
config.status: creating benchmark/Makefile
config.status: creating doc/Makefile
config.status: creating gee/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Running: xdg-app build --nofilesystem=host --filesystem=/home/despinosa/Proyectos/PKG/pwmc-cfdi/.xdg-app-builder/build/ligee-9 --bind-mount=/run/build-runtime/ligee=/home/despinosa/Proyectos/PKG/pwmc-cfdi/.xdg-app-builder/build/ligee-9 --build-dir=/run/build-runtime/ligee /home/despinosa/Proyectos/PKG/pwmc-cfdi/gxml make -j8 -l16
make  all-recursive
make[1]: Entering directory '/run/build-runtime/ligee'
Making all in gee
make[2]: Entering directory '/run/build-runtime/ligee/gee'
  CC       libgee_0_8_la-assemblyinfo.lo
  CC       libgee_0_8_la-abstractcollection.lo
  CC       libgee_0_8_la-abstractbidirsortedset.lo
  CC       libgee_0_8_la-abstractbidirlist.lo
  CC       libgee_0_8_la-abstractbidirsortedmap.lo
  CC       libgee_0_8_la-abstractlist.lo
  CC       libgee_0_8_la-abstractmap.lo
  CC       libgee_0_8_la-abstractmultimap.lo
  CC       libgee_0_8_la-abstractmultiset.lo
  CC       libgee_0_8_la-abstractqueue.lo
  CC       libgee_0_8_la-abstractset.lo
  CC       libgee_0_8_la-abstractsortedmap.lo
  CC       libgee_0_8_la-abstractsortedset.lo
  CC       libgee_0_8_la-arraylist.lo
  CC       libgee_0_8_la-arrayqueue.lo
  CC       libgee_0_8_la-bidiriterator.lo
  CC       libgee_0_8_la-bidirlist.lo
  CC       libgee_0_8_la-bidirlistiterator.lo
  CC       libgee_0_8_la-bidirmapiterator.lo
  CC       libgee_0_8_la-bidirsortedset.lo
  CC       libgee_0_8_la-collection.lo
  CC       libgee_0_8_la-bidirsortedmap.lo
  CC       libgee_0_8_la-comparable.lo
  CC       libgee_0_8_la-concurrentlist.lo
  CC       libgee_0_8_la-concurrentset.lo
  CC       libgee_0_8_la-deque.lo
  CC       libgee_0_8_la-functions.lo
  CC       libgee_0_8_la-future.lo
  CC       libgee_0_8_la-hashable.lo
  CC       libgee_0_8_la-hashmap.lo
  CC       libgee_0_8_la-hashmultimap.lo
  CC       libgee_0_8_la-hashmultiset.lo
  CC       libgee_0_8_la-hashset.lo
  CC       libgee_0_8_la-hazardpointer.lo
  CC       libgee_0_8_la-iterable.lo
  CC       libgee_0_8_la-iterator.lo
  CC       libgee_0_8_la-lazy.lo
  CC       libgee_0_8_la-linkedlist.lo
  CC       libgee_0_8_la-lightmapfuture.lo
  CC       libgee_0_8_la-list.lo
  CC       libgee_0_8_la-listiterator.lo
  CC       libgee_0_8_la-map.lo
  CC       libgee_0_8_la-mapiterator.lo
  CC       libgee_0_8_la-multimap.lo
  CC       libgee_0_8_la-multiset.lo
  CC       libgee_0_8_la-priorityqueue.lo
  CC       libgee_0_8_la-promise.lo
  CC       libgee_0_8_la-queue.lo
  CC       libgee_0_8_la-readonlybidirlist.lo
  CC       libgee_0_8_la-readonlybidirsortedset.lo
  CC       libgee_0_8_la-readonlybidirsortedmap.lo
  CC       libgee_0_8_la-readonlycollection.lo
  CC       libgee_0_8_la-readonlylist.lo
  CC       libgee_0_8_la-readonlymap.lo
  CC       libgee_0_8_la-readonlymultimap.lo
  CC       libgee_0_8_la-readonlymultiset.lo
  CC       libgee_0_8_la-readonlyset.lo
  CC       libgee_0_8_la-readonlysortedmap.lo
  CC       libgee_0_8_la-readonlysortedset.lo
  CC       libgee_0_8_la-set.lo
  CC       libgee_0_8_la-sortedmap.lo
  CC       libgee_0_8_la-sortedset.lo
  CC       libgee_0_8_la-streamiterator.lo
  CC       libgee_0_8_la-task.lo
  CC       libgee_0_8_la-teeiterator.lo
  CC       libgee_0_8_la-timsort.lo
  CC       libgee_0_8_la-traversable.lo
  CC       libgee_0_8_la-treemap.lo
  CC       libgee_0_8_la-treemultimap.lo
  CC       libgee_0_8_la-treemultiset.lo
  CC       libgee_0_8_la-treeset.lo
  CC       libgee_0_8_la-unfolditerator.lo
  CC       libgee_0_8_la-unrolledlinkedlist.lo
  CCLD     libgee-0.8.la
make[2]: Leaving directory '/run/build-runtime/ligee/gee'
Making all in tests
make[2]: Entering directory '/run/build-runtime/ligee/tests'
  CC       tests-testarraylist.o
  CC       tests-testbidirsortedset.o
  CC       tests-testarrayqueue.o
  CC       tests-testbidirlist.o
  CC       tests-testbidirsortedmap.o
  CC       tests-testconcurrentlist.o
  CC       tests-testcollection.o
  CC       tests-testcase.o
  CC       tests-testconcurrentset.o
  CC       tests-testdata.o
  CC       tests-testdeque.o
  CC       tests-testfunctions.o
  CC       tests-testhashmap.o
  CC       tests-testhashmultimap.o
  CC       tests-testhashmultiset.o
  CC       tests-testhashset.o
  CC       tests-testlinkedlist.o
  CC       tests-testlinkedlistasdeque.o
  CC       tests-testlist.o
  CC       tests-testmain.o
  CC       tests-testmap.o
  CC       tests-testmultimap.o
  CC       tests-testmultiset.o
  CC       tests-testpriorityqueue.o
  CC       tests-testqueue.o
  CC       tests-testreadonlybidirlist.o
  CC       tests-testreadonlycollection.o
  CC       tests-testreadonlylist.o
  CC       tests-testreadonlymap.o
  CC       tests-testreadonlyset.o
  CC       tests-testset.o
  CC       tests-testsortedset.o
  CC       tests-testsortedmap.o
  CC       tests-testtreemap.o
  CC       tests-testtreemultimap.o
  CC       tests-testtreemultiset.o
  CC       tests-testtreeset.o
  CC       tests-testunrolledlinkedlist.o
  CC       tests-testunrolledlinkedlistasdeque.o
  CCLD     tests
make[2]: Leaving directory '/run/build-runtime/ligee/tests'
make[2]: Entering directory '/run/build-runtime/ligee'
make[2]: Leaving directory '/run/build-runtime/ligee'
make[1]: Leaving directory '/run/build-runtime/ligee'
Running: xdg-app build --nofilesystem=host --filesystem=/home/despinosa/Proyectos/PKG/pwmc-cfdi/.xdg-app-builder/build/ligee-9 --bind-mount=/run/build-runtime/ligee=/home/despinosa/Proyectos/PKG/pwmc-cfdi/.xdg-app-builder/build/ligee-9 --build-dir=/run/build-runtime/ligee /home/despinosa/Proyectos/PKG/pwmc-cfdi/gxml make install
Making install in gee
make[1]: Entering directory '/run/build-runtime/ligee/gee'
  CCLD     libgee-0.8.la
make[2]: Entering directory '/run/build-runtime/ligee/gee'
  CCLD     libgee-0.8.la
 /usr/bin/mkdir -p '/usr/lib'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libgee-0.8.la '/usr/lib'
libtool: install: /usr/bin/install -c .libs/libgee-0.8.so.2.5.1 /usr/lib/libgee-0.8.so.2.5.1
libtool: install: (cd /usr/lib && { ln -s -f libgee-0.8.so.2.5.1 libgee-0.8.so.2 || { rm -f libgee-0.8.so.2 && ln -s libgee-0.8.so.2.5.1 libgee-0.8.so.2; }; })
libtool: install: (cd /usr/lib && { ln -s -f libgee-0.8.so.2.5.1 libgee-0.8.so || { rm -f libgee-0.8.so && ln -s libgee-0.8.so.2.5.1 libgee-0.8.so; }; })
libtool: install: /usr/bin/install -c .libs/libgee-0.8.lai /usr/lib/libgee-0.8.la
libtool: finish: PATH="/app/bin:/usr/bin:/sbin" ldconfig -n /usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/share/vala/vapi'
 /usr/bin/install -c -m 644 gee-0.8.vapi '/usr/share/vala/vapi'
 /usr/bin/mkdir -p '/usr/include/gee-0.8'
 /usr/bin/install -c -m 644 gee.h '/usr/include/gee-0.8'
make[2]: Leaving directory '/run/build-runtime/ligee/gee'
make[1]: Leaving directory '/run/build-runtime/ligee/gee'
Making install in tests
make[1]: Entering directory '/run/build-runtime/ligee/tests'
make[2]: Entering directory '/run/build-runtime/ligee/tests'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/run/build-runtime/ligee/tests'
make[1]: Leaving directory '/run/build-runtime/ligee/tests'
make[1]: Entering directory '/run/build-runtime/ligee'
make[2]: Entering directory '/run/build-runtime/ligee'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/usr/lib/pkgconfig'
 /usr/bin/install -c -m 644 gee-0.8.pc '/usr/lib/pkgconfig'
make[2]: Leaving directory '/run/build-runtime/ligee'
make[1]: Leaving directory '/run/build-runtime/ligee'
stripping /home/despinosa/Proyectos/PKG/pwmc-cfdi/gxml/usr/lib/libgee-0.8.so.2.5.1 to /home/despinosa/Proyectos/PKG/pwmc-cfdi/gxml/usr/lib/debug/usr/lib/libgee-0.8.so.2.5.1.debug
error: Falló al ejecutar el proceso hijo «eu-strip» (No existe el archivo o el directorio)






--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates: LIBRE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]