Code: Alles auswählen
Zum Bau wird das Python im Host-Verzeichnis benutzt.
Code: Alles auswählen
Zum Bau wird das Python im Host-Verzeichnis benutzt.
Wie gesagt ... das ist das kompilierte Python für die Box. Das läuft nicht auf dem Host.jokel hat geschrieben: ↑Sa 20. Jan 2024, 13:18 und wenn anstattdas .build verzeichnis nehmen würde ?Code: Alles auswählen
Zum Bau wird das Python im Host-Verzeichnis benutzt.
Code: Alles auswählen
PKG_PYTHON_HOST_PLATFORM = arm-linux-gnueabihf
PKG_PYTHON_SYSCONFIGDATA_PATH = $(TARGET_PYTHON_PATH)/_sysconfigdata__linux_*.py
PKG_PYTHON_SYSCONFIGDATA_NAME = `{ [ -e $(PKG_PYTHON_SYSCONFIGDATA_PATH) ] && basename $(PKG_PYTHON_SYSCONFIGDATA_PATH) .py; } || true`
# Target python packages
TARGET_PKG_PYTHON_ENV = \
_PYTHON_HOST_PLATFORM="$(PKG_PYTHON_HOST_PLATFORM)" \
_PYTHON_PROJECT_BASE="$(TARGET_PYTHON_PATH)" \
_PYTHON_SYSCONFIGDATA_NAME="$(PKG_PYTHON_SYSCONFIGDATA_NAME)" \
Code: Alles auswählen
(venv) [jokel ~]# python pluto.py -i /temp/pluto -d /temp/pluto -c /temp/pluto -e /temp/pluto
Traceback (most recent call last):
File "/var/root/pluto.py", line 22, in <module>
from lxml import etree as lmntree
ImportError: /var/root/venv/lib/python3.11/site-packages/lxml/etree.cpython-311-arm-linux-gnueabihf.so: undefined symbol: xmlC14NDocSaveTo
Code: Alles auswählen
diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk
index 268f2f8d..ca438e98 100644
--- a/package/libxml2/libxml2.mk
+++ b/package/libxml2/libxml2.mk
@@ -9,15 +9,17 @@ LIBXML2_DIR = libxml2-$(LIBXML2_VERSION)
LIBXML2_SOURCE = libxml2-$(LIBXML2_VERSION).tar.xz
LIBXML2_SITE = https://download.gnome.org/sources/libxml2/$(basename $(LIBXML2_VERSION))
+LIBXML2_DEPENDENCIES = python3
+
LIBXML2_CONFIG_SCRIPTS = xml2-config
LIBXML2_CONF_OPTS = \
--datarootdir=$(REMOVE_datarootdir) \
--enable-shared \
--disable-static \
- --without-python \
+ --with-python \
--without-debug \
- --without-c14n \
+ --with-c14n \
--without-legacy \
--without-catalog \
--without-docbook \
ok mach ich .. bin auch darüber gestolpert .. lese grade das ..vanhofen hat geschrieben: ↑So 21. Jan 2024, 14:45 Probiere mal das, jokel.
Code: Alles auswählen
diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk index 268f2f8d..a819e408 100644 --- a/package/libxml2/libxml2.mk +++ b/package/libxml2/libxml2.mk @@ -17,7 +17,7 @@ LIBXML2_CONF_OPTS = \ --disable-static \ --without-python \ --without-debug \ - --without-c14n \ + --with-c14n \ --without-legacy \ --without-catalog \ --without-docbook \
ging schon .. jetzt kommt das
Code: Alles auswählen
(venv) [jokel ~]# python pluto.py -i /temp/pluto -d /temp/pluto -c /temp/pluto -e /temp/pluto
Traceback (most recent call last):
File "/var/root/venv/lib/python3.11/site-packages/wand/api.py", line 159, in <module>
libraries = load_library()
^^^^^^^^^^^^^^
File "/var/root/venv/lib/python3.11/site-packages/wand/api.py", line 148, in load_library
raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
OSError: cannot find library; tried paths: []
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/root/pluto.py", line 23, in <module>
from wand.image import Image
File "/var/root/venv/lib/python3.11/site-packages/wand/image.py", line 18, in <module>
from . import assertions
File "/var/root/venv/lib/python3.11/site-packages/wand/assertions.py", line 156, in <module>
from .color import Color # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/root/venv/lib/python3.11/site-packages/wand/color.py", line 10, in <module>
from .api import library
File "/var/root/venv/lib/python3.11/site-packages/wand/api.py", line 183, in <module>
raise ImportError('MagickWand shared library not found.\n'
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install
https://docs.wand-py.org/en/latest/guide/install.html
(venv) [jokel ~]#
Code: Alles auswählen
WARN: Option 'xml2-config' is deprecated. Use 'with-xml2-config' instead.
WARN: Option 'xslt-config' is deprecated. Use 'with-xslt-config' instead.
Code: Alles auswählen
PYTHON_LXML_BUILD_OPTS = \
--with-xslt-config=$(HOST_DIR)/bin/xslt-config \
--with-xml2-config=$(HOST_DIR)/bin/xml2-config