Closed neilyoung closed 4 months ago
Source install also fails:
(Linux.4.9.337-tegra.cpython3.9) (av) ubuntu@jetson:~/PyAV$ make
CFLAGS="-O0" LDFLAGS="" python3 setup.py build_ext --inplace --debug
running build_ext
building 'av.codec.codec' extension
gcc -pthread -B /home/ubuntu/archiconda3/envs/av/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O3 -Wall -fPIC -O3 -isystem /home/ubuntu/archiconda3/envs/av/include -fPIC -O3 -isystem /home/ubuntu/archiconda3/envs/av/include -O0 -fPIC -g -I/usr/local/include -I/home/ubuntu/PyAV/venvs/Linux.4.9.337-tegra.cpython3.9/include -I/home/ubuntu/archiconda3/envs/av/include/python3.9 -c src/av/codec/codec.c -o build/temp.linux-aarch64-cpython-39/src/av/codec/codec.o
src/av/codec/codec.c: In function ‘__pyx_pymod_exec_codec’:
src/av/codec/codec.c:8353:48: error: ‘AV_CODEC_CAP_OTHER_THREADS’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_SLICE_THREADS’?
__pyx_t_8 = __Pyx_PyInt_From___pyx_anon_enum(AV_CODEC_CAP_OTHER_THREADS); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 104, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~~~~~~
AV_CODEC_CAP_SLICE_THREADS
src/av/codec/codec.c:8353:48: note: each undeclared identifier is reported only once for each function it appears in
error: command '/usr/bin/gcc' failed with exit code 1
Makefile:14: recipe for target 'build' failed
make: *** [build] Error 1
Whatsoever...
but works with ffmpeg 6.x
IMPORTANT: Be sure to replace all template sections {{ like this }} or your issue may be discarded.
Overview
Conda installation of PyAV doesn't load on Jetson Nano after successful installation
Expected behavior
Should install
Actual behavior
Build report:
Investigation
Tried to make it work on several ways.
Reproduction
Versions
(av) ubuntu@jetson:~/PyAV$ python -m av --version Traceback (most recent call last): File "/home/ubuntu/archiconda3/envs/av/lib/python3.9/runpy.py", line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/home/ubuntu/archiconda3/envs/av/lib/python3.9/runpy.py", line 147, in _get_module_details return _get_module_details(pkg_main_name, error) File "/home/ubuntu/archiconda3/envs/av/lib/python3.9/runpy.py", line 111, in _get_module_details import(pkg_name) File "/home/ubuntu/PyAV/av/init.py", line 31, in
from av.audio.resampler import AudioResampler
File "av/audio/resampler.pyx", line 1, in init av.audio.resampler
cimport libav as lib
File "/home/ubuntu/PyAV/av/filter/init.py", line 1, in
from .filter import Filter, FilterFlags, filter_descriptor, filters_available
File "av/filter/filter.pyx", line 1, in init av.filter.filter
cimport libav as lib
File "av/filter/graph.pyx", line 1, in init av.filter.graph
import warnings
File "av/filter/context.pyx", line 1, in init av.filter.context
from av.audio.frame cimport alloc_audio_frame
File "av/filter/link.pyx", line 1, in init av.filter.link
cimport libav as lib
ImportError: /home/ubuntu/PyAV/av/filter/pad.cpython-39-aarch64-linux-gnu.so: undefined symbol: avfilter_filter_pad_count
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.3.0 (conda-forge gcc 12.3.0-5) configuration: --prefix=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac --cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-cc --cxx=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-c++ --nm=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-nm --ar=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/aarch64-conda-linux-gnu-ar --disable-doc --disable-openssl --enable-demuxer=dash --enable-hardcoded-tables --enable-libfreetype --enable-libharfbuzz --enable-libfontconfig --enable-libopenh264 --enable-libdav1d --enable-cross-compile --arch=aarch64 --target-os=linux --cross-prefix=aarch64-conda-linux-gnu- --host-cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/x86_64-conda-linux-gnu-cc --enable-gnutls --enable-libmp3lame --enable-libvpx --enable-libass --enable-pthreads --enable-libopenvino --enable-gpl --enable-libx264 --enable-libx265 --enable-libaom --enable-libsvtav1 --enable-libxml2 --enable-pic --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libopus --pkg-config=/home/conda/feedstock_root/build_artifacts/ffmpeg_1710227021650/_build_env/bin/pkg-config libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 libpostproc 57. 3.100 / 57. 3.100