Open luminoso opened 2 years ago
Humm stolen the module from discord https://github.com/flathub/com.discordapp.Discord/blob/90d9f1a0c350b4d479738476e53fea4bba473a83/com.discordapp.Discord.json#L68 , bumped version and added as a module
- name: libcxx
buildsystem: cmake-ninja
builddir: true
make-args:
- cxx
no-make-install: true
config-opts:
- "-DCMAKE_BUILD_TYPE=Release"
cleanup:
- "/include"
- "/lib/*.a"
build-commands:
- ninja install-libcxxabi
- ninja install-libcxx
sources:
- type: archive
url: https://releases.llvm.org/9.0.0/llvm-9.0.0.src.tar.xz
sha256: d6a0565cf21f22e9b4353b2eb92622e8365000a9e90a16b09b56f8157eabfe84
- type: archive
url: https://releases.llvm.org/9.0.0/libcxx-9.0.0.src.tar.xz
sha256: 3c4162972b5d3204ba47ac384aa456855a17b5e97422723d4758251acf1ed28c
dest: projects/libcxx
- type: archive
url: https://releases.llvm.org/9.0.0/libcxxabi-9.0.0.src.tar.xz
sha256: 675041783565c906ac2f7f8b2bc5c40f14d871ecfa8ade34855aa18de95530e9
dest: projects/libcxxabi
And now all libraries are loaded:
libc++.so.1 => /app/lib/libc++.so.1 (0x00007f22997f2000)
libunwind.so.1 => /app/lib/libunwind.so.1 (0x00007f22997d7000)
libc++abi.so.1 => /app/lib/libc++abi.so.1 (0x00007f229979f000)
However the maximum version I can push is 9.0.0. Other llvm releases have a different structure. I'm not sure if this is the way to go
Thank you for making this flatpak release.
I was using it and noticed that
ICAClient/util/HdxRtcEngine
is missing three dependencies, two of them can be built together.This can by checked by doing
ldd /app/ICAClient/linuxx64/util/HdxRtcEngine
inside therun.sh
script, where we can see that:The first one,
libunwind.so.1
, I fixed by adding two more steps to themodules
:and editing
run.sh
to include the lib:this way we can check that library is there to be found and loaded:
However, I have no idea how to do the same for libc++ and libc++abi. My understanding is that they can be bundled together? But unfortunately my limited knowledge of flatpak packaging is blocking me from progressing from here.
Any ideas on how to progress from here?