-
Notifications
You must be signed in to change notification settings - Fork 36
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
Doesn't seem to compile anymore #10
Comments
Odd. This is after an rpi-update just now: rpi:/home/dickon/src/omxtxtoo/omxtx/ (0) 3 $ make rpi:/home/dickon/src/omxtxtoo/omxtx/ (0) 5 $ You probably need a newer libav*. I forget the version I'm using. |
I am getting the same error on Arch linux. Probably because I don't have the libav @dickontoo @rickarddahlstrand Can I ask what distro you both are using? Have you had success in compiling it with updating libav? |
Raspbian for me. There's a suitable libav at http://newsplodge.fluff.org/~dickon/ffmpeg.tar.bz2 which is simply a tarball of the build tree of the version I used at the time. It'll need unpacking and a 'make install'ing. |
Thanks for the package! Still compiling… but will report back. |
The ffmpeg package you provided was a nice step forward. But I'm still getting an error when trying to compile omxtx. Different errors than before though:
|
Thanks Dickontoo for OMXTX. As long as I compile this with ffmpeg 1.06 libraries, everything works well. |
Please paste the compile session -- how does it fail? |
Hi, here is the paste: gcc -Wall -Wno-format -g -I/opt/vc/include/IL -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -L/usr/local/lib -I/usr/local/include -c omxtx.c |
anyone else making it work latest ffmpeg libraries? |
[UPDATE BELOW!!!] sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get -y install git make libmp3lame-dev libopenjpeg-dev libschroedinger-dev libspeex-dev libtheora-dev libvorbis-dev libx264-dev #libs for compiling ffmpeg
cd
wget http://ffmpeg.org/releases/ffmpeg-2.8.4.tar.bz2
tar -xf ffmpeg-2.8.4.tar.bz2
cd ffmpeg-2.8.4
./configure --enable-gpl --enable-postproc --enable-pthreads --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-shared --enable-nonfree --enable-libvorbis --enable-libspeex --enable-libschroedinger --enable-avfilter --enable-libopenjpeg --enable-version3 --enable-libmp3lame --enable-runtime-cpudetect --extra-cflags=-I/usr/local/include --extra-ldflags='-L/usr/local/lib -Xlinker -R/usr/local/lib'
make
sudo make install
# sudo apt-get autoclean && sudo apt-get clean && sudo apt-get autoremove
# sudo apt-get -y install libav-dbg libav-doc libav-tools libavcodec-dev libavfilter-dev libavformat-dev libavifile-0.7-dev libavresample-dev libavutil-dev libgroove-dev libswscale-dev # needed for omxtx?
cd
git clone https://github.com/dickontoo/omxtx
cd omxtx
nano omxtx.c ...change... static int mapcodec(enum CodecID id) ...to... static int mapcodec(enum AVCodecID id) ...save changes, exit, then... make [Update 2016-01-19]The following works on a fresh install of the "Minibian" Raspbian Jessie image: apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade Get the tools needed for apt-get -y install curl binutils Get curl -L --output /usr/bin/rpi-update https://raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update && chmod +x /usr/bin/rpi-update Run the rpi-update Handy utils for long-running SSH compile sessions: apt-get -y install screen reptyr Tools & libs for compiling apt-get -y install git bzip2 gcc make libmp3lame-dev libopenjpeg-dev libschroedinger-dev libspeex-dev libtheora-dev libvorbis-dev libx264-dev Download, extract source, wget http://ffmpeg.org/releases/ffmpeg-2.8.4.tar.bz2
tar xjf ffmpeg-2.8.4.tar.bz2
cd ffmpeg-2.8.4
./configure --enable-gpl --enable-postproc --enable-pthreads --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-shared --enable-nonfree --enable-libvorbis --enable-libspeex --enable-libschroedinger --enable-avfilter --enable-libopenjpeg --enable-version3 --enable-libmp3lame --enable-runtime-cpudetect --extra-cflags=-I/usr/local/include --extra-ldflags='-L/usr/local/lib -Xlinker -R/usr/local/lib'
make ...now wait for four hours - it is a LONG compile! make install
cd
git clone https://github.com/dickontoo/omxtx
cd omxtx Install your favourite text editor: apt-get -y install nano Edit the nano omxtx.c Change... static int mapcodec(enum CodecID id) ...to... static int mapcodec(enum AVCodecID id) ...save and make
nano /boot/config.txt Modify the GPU memory split:
Finally reboot to load modified configuration: reboot |
Default format changed to MKV, CodecID->AVCodecID (dickontoo#10)
I have now followed instructions to install ffmpeg 2.8.2 and try to clone and compile omxtx on a Raspberry 3 with Pixel 1.1 (Jessie Raspberry I think). I get some compilation warnings and the linker fails. I have not seen the "@LIBAVUTIL_54" suffix before. Have I missed a step?
|
... 8< ... snip
I had the same issue when installing libavutil-dev with apt-get and later installing ffmpeg from git. After removing libavutil-dev and doing a fresh install from git, it vanished. Maybe it helps. |
I get this error when trying to compile on an update system.
root@sovrum:~/dd/omxtx# make
gcc -Wall -Wno-format -g -I/opt/vc/include/IL -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -L/usr/local/lib -I/usr/local/include -c omxtx.c
omxtx.c:281:26: warning: ‘enum CodecID’ declared inside parameter list [enabled by default]
omxtx.c:281:34: error: parameter 1 (‘id’) has incomplete type
omxtx.c: In function ‘filter’:
omxtx.c:785:4: warning: ‘destruct’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:1095) [-Wdeprecated-declarations]
omxtx.c:785:4: warning: ‘av_destruct_packet’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3436) [-Wdeprecated-declarations]
omxtx.c:788:9: warning: unused variable ‘err’ [-Wunused-variable]
omxtx.c: In function ‘freepacket’:
omxtx.c:1214:2: warning: ‘destruct’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:1095) [-Wdeprecated-declarations]
omxtx.c:1214:2: warning: ‘av_destruct_packet’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3436) [-Wdeprecated-declarations]
omxtx.c: In function ‘main’:
omxtx.c:1659:5: warning: ‘destruct’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:1095) [-Wdeprecated-declarations]
make: *** [omxtx.o] Error 1
The text was updated successfully, but these errors were encountered: