Skip to content
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

LibXML2 Fails on Zorin 17 #60

Open
bwanshoom opened this issue Jan 24, 2025 · 2 comments
Open

LibXML2 Fails on Zorin 17 #60

bwanshoom opened this issue Jan 24, 2025 · 2 comments

Comments

@bwanshoom
Copy link

I get the following error when trying to compile libxml2:

CMake Error at /home/brian/src/ffmpeg-build-script/workspace/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS
Python_LIBRARIES Interpreter Development Development.Module
Development.Embed)
Call Stack (most recent call first):
/home/brian/src/ffmpeg-build-script/workspace/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
/home/brian/src/ffmpeg-build-script/workspace/share/cmake-3.31/Modules/FindPython.cmake:673 (find_package_handle_standard_args)
CMakeLists.txt:69 (find_package)

The fix is to replace this line (line 1563):
-DBUILD_SHARED_LIBS=OFF -G Ninja -Wno-dev
with this one:
-DBUILD_SHARED_LIBS=OFF -G Ninja -Wno-dev -DPython_EXECUTABLE=$(which python3)

That change should be harmless on any system. Zorin 17 is based on Ubuntu 22.04 so it may be an issue there as well?

@nwellnhof
Copy link

You probably don't need libxml2's Python bindings, so I'd suggest to build libxml2 with -DLIBXML2_WITH_PYTHON=OFF.

@bwanshoom
Copy link
Author

I was just running the script out of the box - if that's not needed then maybe it should be updated in the script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants