-
Notifications
You must be signed in to change notification settings - Fork 18
Offline build #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Until bigcat88/pillow_heif#128 is resolved
Yes, you can, first, when building, the presence of the libheif library is checked, if it is, then nothing is built and does not download. It checks for libheif with the commands: pillow_heif/libheif/linux_build_libs.py Lines 108 to 116 in 7319c50
|
yeah, in Flatpak this command do not see that libheif is installed. EDITED: Need to implement searching libraries using |
It's because I think gcc looks only in
|
Thank you it seems to work:
Build log
Flatpak manifestapp-id: com.example.test
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
modules:
- name: libaom
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DBUILD_SHARED_LIBS=1
- -DENABLE_EXAMPLES=OFF
- -DENABLE_TESTDATA=OFF
- -DENABLE_TESTS=OFF
- -DENABLE_TOOLS=OFF
sources:
- type: archive
url: https://storage.googleapis.com/aom-releases/libaom-3.6.1.tar.gz
sha256: 42b862f58b3d00bd3902d2dc469526574f5b012e5b178e6a9652845a113d6887
- name: libde265
buildsystem: cmake-ninja
sources:
- type: archive
url: https://github.com/strukturag/libde265/archive/v1.0.12/libde265-1.0.12.tar.gz
sha256: c7e5443c9387ef2ee7bd3a25b4cfeb1a66d038584cf0ab21a4a28db64f224584
cleanup:
- /bin
- name: x265
builddir: true
subdir: source
buildsystem: cmake-ninja
config-opts:
- -DBUILD_SHARED_LIBS=ON
sources:
- type: archive
url: https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.5.tar.gz
sha256: e70a3335cacacbba0b3a20ec6fecd6783932288ebc8163ad74bcc9606477cae8
- name: libheif
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DAOM_ENCODER=ON
- -DWITH_EXAMPLES=OFF
sources:
- type: archive
url: https://github.com/strukturag/libheif/archive/v1.16.2/libheif-1.16.2.tar.gz
sha256: d207f2ff5c86e6af3621c237f186130b985b7a9ff657875944b58ac5d27ba71c
- name: python3-Pillow
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} "Pillow" --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/0f/8b/2ebaf9adcf4260c00f842154865f8730cf745906aa5dd499141fb6063e26/Pillow-10.0.0.tar.gz
sha256: 9c82b5b3e043c7af0d95792d0d20ccf68f61a1fec6b3530e718b688422727396
- name: python3-pillow-heif
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} . --no-build-isolation
sources:
- type: git
url: https://github.com/bigcat88/pillow_heif.git
branch: libheif-extra-build-dirs
commit: 4b4ad2ab7dfa5d222f8bbf2d0375ecd06e8b8dfc |
Fixed in |
Describe the bug
Hello, I'm trying to build this in a flatpak environment which has no network access, I added the necessary libraries listed in
pillow_heif/libheif/linux_build_libs.py
Lines 12 to 15 in 7319c50
But it still seems to try downloading them for some reason. Is a fully offline build not possible?
Dependencies I added:
See the minimal manifest below
Steps/Code to Reproduce
flatpak install org.freedesktop.Platform//22.08
,flatpak install org.freedesktop.Sdk//22.08
flatpak-builder build --force-clean test.yaml
Expected Results
It should find that libaom, libde265, libheif and x265 are already installed
Actual Results
Tries to download them
Versions
The text was updated successfully, but these errors were encountered: