It seems the “make” fails during the ffmpeg build. First it was complaining about unknown options. I have identified the following unknown options:
“–disable-iwmmxt”, “–disable-libdirac”, --disable-mlib", “–disable-sram”, “–disable-vis”, “–enable-aandct”, “–enable-fastdiv”, “–enable-golomb”, “–enable-huffman”, “–enable-lpc”.
I have edited the ./lib/ffmpeg/CMakeLists.txt file to remove the unknown options. Now I get the following error during “make”:
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file “config.log” produced by configure as this will help
solve the problem.
make[2]: *** [lib/ffmpeg/ffmpeg/src/ffmpeg-stamp/ffmpeg-configure] Error 1
make[1]: *** [lib/ffmpeg/CMakeFiles/ffmpeg.dir/all] Error 2
make: *** [all] Error
Just finish on a fresh install (ALL) to have a clean Ubuntu 16.04 up to date (In a Vmware guest system)
Status now : (sorry it’s in French (but easy to translate) … ) .
I get an error also for ffmpeg (but a little different)
Error copying directory from “/root/sources/OpenPHT-1.6.0.113-46fadd5e/lib/ffmpeg” to “/root/sources/OpenPHT-1.6.0.113-46fadd5e/lib/ffmpeg/ffmpeg/src/ffmpeg”.
lib/ffmpeg/CMakeFiles/ffmpeg.dir/build.make:89 : la recette pour la cible « lib/ffmpeg/ffmpeg/src/ffmpeg-stamp/ffmpeg-download » a échouée
make[2]: *** [lib/ffmpeg/ffmpeg/src/ffmpeg-stamp/ffmpeg-download] Erreur 1
CMakeFiles/Makefile2:385 : la recette pour la cible « lib/ffmpeg/CMakeFiles/ffmpeg.dir/all » a échouée
make[1]: *** [lib/ffmpeg/CMakeFiles/ffmpeg.dir/all] Erreur 2
Makefile:149 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2
During Cmake only ONE none blocking problem persist :
– No package ‘libshairplay’ found
even
+++++++
root@philippe-VM16-04:~/sources/OpenPHT-1.6.0.113-46fadd5e# dpkg -l libshairplay*
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Architecture Description
++±=============================-===================-===================-===============================================================
ii libshairplay-dev:amd64 0.9.0.1-2~xenial amd64 Free portable AirPlay server implementation (development files)
ii libshairplay0:amd64 0.9.0.1-2~xenial amd64 Free portable AirPlay server implementation (development files)
root@philippe-VM16-04:~/sources/OpenPHT-1.6.0.113-46fadd5e#
+++++++
Philippe.
NB I have strange line that appear in orange and large ??? sorry but I don’t know why …
following your remark … I have use SHAIRPLAY and SHAIRPORT
Also I have not see in the long list of cmake variable : USE_INTERNAL_FFMPEG …
so in 16.04 ffmpeg (provide in Ubuntu) is at good level 2.8 …
so adding this variable with NO bypass the ffmpeg problem …
Now I will run the make (and re-run each time a new library is missing) … but all any step by step advance …
I will inform of result here … for the moment make just pass the 50% … so nothing sure but one more one by one we progress …
Hi,
some **success **…
It’s late (in France) but the compile and link + texture generation is complete without any fatal error (only some warning (as usual) in the code)
…
[100%] Linking CXX executable plexhometheater
[100%] Built target OpenPHT
Scanning dependencies of target CompressTextures
[100%] Generating Textures.xbt
…
[100%] Built target CompressTextures
I don’t have the time and experience to build it myself but it would be so great to have binaries of OpenPHT for Ubuntu, or at least a comprehensive guide on how to compile. Hope you guys can get it done!
F.Y.I. (after a first series of tests … )
under Ubuntu 16.04 … **OpenPHT seems to run as well ** (even for the moment I will run only short tests)
Now I can (based on this) try to solve the problem with ffmpeg :
Error copying directory from “/root/sources/OpenPHT-1.6.0.113-46fadd5e/lib/ffmpeg” to “/root/sources/OpenPHT-1.6.0.113-46fadd5e/lib/ffmpeg/ffmpeg/src/ffmpeg”.
to be able to use the integrated ffmpeg and not the Ubuntu one (2.8.6) … (for coherency)
following your remark … I have use SHAIRPLAY and SHAIRPORT
Also I have not see in the long list of cmake variable : USE_INTERNAL_FFMPEG …
so in 16.04 ffmpeg (provide in Ubuntu) is at good level 2.8 …
so adding this variable with NO bypass the ffmpeg problem …
Hello,
I ran into the same FFMPEG problem and would like to bypass as well, FFMPEG is installed and good on Ubuntu 14.04.
however if I saerch for Use_Internal_FFMPEG I get a lot of files with this text.
No don’t edit anythings … just add in cmake command :
-DUSE_INTERNAL_FFMPEG=OFF
It’s all and enough …
in fact you can have ALL the possible parameters by doing :
in root folder of the OpenPHT source
cmake -LAH … unfortunately a long list but fortunately with a comment before each … to identify the usage …
ex.
… …
// Use internal FFmpeg?
USE_INTERNAL_FFMPEG:BOOL=ON
… …
-- Looking for FFmpeg library avdevice - not found
-- Looking for FFmpeg library avfilter - not found
-- Looking for FFmpeg library postproc - not found
-- Looking for FFmpeg library swresample - not found
CMake Error at plex/CMakeModules/FindFFmpeg.cmake:141 (MESSAGE):
Could not find FFMPEG
Also note that the system bundled ffmpeg do not have some kodi specific patches and a plex.direct specific patch. Using ffmpeg avio as network transport will not work correctly.
yeah so i installed that package and got hit with this on the make
[ 8%] Performing configure step for ‘ffmpeg’
Unknown option “–disable-iwmmxt”.
See /home/htpc/openpht1.6/lib/ffmpeg/ffmpeg/src/ffmpeg/configure --help for available options.
lib/ffmpeg/CMakeFiles/ffmpeg.dir/build.make:107: recipe for target ‘lib/ffmpeg/ffmpeg/src/ffmpeg-stamp/ffmpeg-configure’ failed
make[2]: *** [lib/ffmpeg/ffmpeg/src/ffmpeg-stamp/ffmpeg-configure] Error 1
CMakeFiles/Makefile2:385: recipe for target ‘lib/ffmpeg/CMakeFiles/ffmpeg.dir/all’ failed
make[1]: *** [lib/ffmpeg/CMakeFiles/ffmpeg.dir/all] Error 2
Makefile:149: recipe for target ‘all’ failed
make: *** [all] Error 2
woof i forgot to cmake with -DUSE_INTERNAL_FFMPEG=OFF
since i did that things look clean. thanks man
Okay so after getting that additional package installed this worked:
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCOMPRESS_TEXTURES=ON -DENABLE_AUTOUPDATE=ON -DENABLE_SHAIRPLAY=OFF -DENABLE_SHAIRPORT=ON -DUSE_INTERNAL_FFMPEG=OFF “~/OpenPHT-1.6.0.113-46fadd5e/”
make
sudo make install
TonioRoffo it looks like you need to install at least these additional packages:
libavdevice-dev libavdevice-dev libpostproc-dev libswresample-dev
sudo apt install each one should be fine
Note that libswresample-dev package is not available on Ubuntu 14.04, so the cmake will fail even if using the -DUSE_INTERNAL_FFMPEG=OFF option.
It seems like the only option is to use a ppa to install ffmpeg or compile yourself. The internal ffmpeg provided with OpenPHT1.6 fails during compilation on Ubuntu.