You are not logged in.

#1 2019-05-15 09:57:00

tannenbaum
Member
Registered: 2019-01-23
Posts: 8

Compile ffmpeg with tensorflow

I'm trying to compile ffmpeg with --enable-libtensorflow \

Sadly it is not found (ERROR: libtensorflow not found) despite tensorflow is present to my system:

Name            : tensorflow
Version         : 1.13.1-5
Description     : Library for computation using data flow graphs for scalable machine learning
Architecture    : x86_64
URL             : [url]https://www.tensorflow.org/[/url]
Licenses        : APACHE
Groups          : None
Provides        : None
Depends On      : c-ares
Optional Deps   : tensorboard: Tensorflow visualization toolkit
Required By     : mpv-git  python-imageai-git  python-tensorflow
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 473.52 MiB
Packager        : Konstantin Gizdov
Build Date      : Tue Apr 23 18:20:29 2019
Install Date    : Wed Apr 24 10:26:38 2019
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Has anybody else occurred this problem?

Last edited by tannenbaum (2019-05-15 18:07:14)

Offline

#2 2019-05-15 14:34:48

jinpin
Member
Registered: 2019-05-15
Posts: 7

Re: Compile ffmpeg with tensorflow

Maybe some necessary headers are missing.

Offline

#3 2019-05-15 15:04:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,423

Re: Compile ffmpeg with tensorflow

Post the entire output instead of the last thing you see, and use [ code ] tags when doing so (adjust your existing post to that effect as well please)

Offline

#4 2019-05-15 18:07:25

tannenbaum
Member
Registered: 2019-01-23
Posts: 8

Re: Compile ffmpeg with tensorflow

Here is my config.log from ffmpeg:

https://pastebin.com/xQnzFTZm

Offline

#5 2019-05-15 18:16:58

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: Compile ffmpeg with tensorflow

gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -std=c11 -fomit-frame-pointer -fPIC -pthread -I/usr/include/p11-kit-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/fribidi -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/fribidi -I/usr/include/openjpeg-2.3 -I/usr/include/opus -I/usr/include/opus -D_REENTRANT -I/usr/include/svt-av1 -c -o /tmp/ffconf.tpYm9VGH/test.o /tmp/ffconf.tpYm9VGH/test.c

/usr/include/tensorflow is not in the include paths.
Edit:
Does adding the following to configure help?

--extra-cflags='-I/usr/include/tensorflow'

Last edited by loqs (2019-05-15 19:15:15)

Offline

Board footer

Powered by FluxBB