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

Cannot build AVM dependency with CONFIG_ML_PART_SPLIT=1 #2622

Open
y-guyon opened this issue Feb 17, 2025 · 0 comments
Open

Cannot build AVM dependency with CONFIG_ML_PART_SPLIT=1 #2622

y-guyon opened this issue Feb 17, 2025 · 0 comments

Comments

@y-guyon
Copy link
Collaborator

y-guyon commented Feb 17, 2025

Removing the following line:

set(CONFIG_ML_PART_SPLIT 0 CACHE INTERNAL "")

leads to the following error:

libavif/build/_deps/libaom-src/third_party/tensorflow/tensorflow/lite/schema/schema_generated.h:21:10: fatal error: flatbuffers/flatbuffers.h: No such file or directory

when using the following build command lines at head:

cmake -S . -B build -DBUILD_SHARED_LIBS=OFF -DAVIF_CODEC_AVM=LOCAL \
  -DAVIF_LIBYUV=LOCAL -DAVIF_LIBSHARPYUV=LOCAL -DAVIF_JPEG=LOCAL \
  -DAVIF_ZLIBPNG=LOCAL -DAVIF_BUILD_APPS=ON \
  -DCMAKE_C_FLAGS_RELEASE="-static" -DCMAKE_EXE_LINKER_FLAGS="-static"
# Prints "Building TFLite from local sources..."
cmake --build build --parallel

Doing the following prior to the build command lines above:

cd ext
./avm.sh

gives the following error:

/usr/bin/ld: cannot find -l_aom_dep_lib_avm-NOTFOUND: No such file or directory

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

1 participant