You are not logged in.
Hello. I am trying to build KIPR IDE from a script I made. Everything works fine on Ubuntu 13.04 so I thought I would try it on Arch Linux. I keep getting this error:
Building CXX object CMakeFiles/kovan.dir/src/ardrone_video_p.cpp.o
/build/kiss-script/libkovan/src/ardrone_video_p.cpp: In member function ‘virtual bool ARDrone2Video::start(const Address&)’:
/build/kiss-script/libkovan/src/ardrone_video_p.cpp:201:16: warning: ‘AVCodecContext* avcodec_alloc_context()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3565) [-Wdeprecated-declarations]
m_codecCtx = avcodec_alloc_context();
^
/build/kiss-script/libkovan/src/ardrone_video_p.cpp:201:38: warning: ‘AVCodecContext* avcodec_alloc_context()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3565) [-Wdeprecated-declarations]
m_codecCtx = avcodec_alloc_context();
^
/build/kiss-script/libkovan/src/ardrone_video_p.cpp:205:22: error: ‘AVCodecContext’ has no member named ‘error_recognition’
m_codecCtx->error_recognition = FF_ER_CAREFUL;
^
/build/kiss-script/libkovan/src/ardrone_video_p.cpp:205:42: error: ‘FF_ER_CAREFUL’ was not declared in this scope
m_codecCtx->error_recognition = FF_ER_CAREFUL;
^
make[2]: *** [CMakeFiles/kovan.dir/src/ardrone_video_p.cpp.o] Error 1
make[1]: *** [CMakeFiles/kovan.dir/all] Error 2
make: *** [all] Error 2The script and source code is on github:
git clone git://github.com/ryanvade/kiss-script.git Again, this works fine on Ubuntu. Why it does not work on Arch is beyond me. Any help would be appreciated.
Last edited by ryanvade (2013-05-31 06:05:02)
Offline
well, AVCodec tells me we're dealing with ffmpeg. What version is on the Ubuntu box that the build works with? Or are they using the "libav" fork?
Last edited by Scimmia (2013-05-29 22:40:07)
Offline
FFmpeg development is very active and and Arch does a good job of keeping up with releases. Paraphrased from FFmpeg Developer Documentation - Release Process:
FFmpeg maintains a set of release branches. We promise to our users that shared libraries from any FFmpeg release never break programs that have been compiled against previous versions of the same release series in any case! However, from time to time, we do make API changes that require adaptations in applications. Such changes are only allowed in (new) major releases and require further steps such as bumping library version numbers and/or adjustments to the symbol versioning file.
What is available in Ubuntu is not only old, but is not from FFmpeg (although they still package a fake "ffmpeg" and most users are unaware of the origins--those tricksy maintainers). If you want to get your code to work with FFmpeg and libav you can target an equivalent or compatible set of releases or provide version specific code. As this is an Arch forum, and we have no need for the libav fork, I recommend simply dumping support for Ubuntu and libav. You have several options on how to proceed.
Also see the APIchanges file.
Last edited by DrZaius (2013-05-30 00:08:42)
Offline
Thank you for the responses. The version of what is supposed to be libavcodec is 0.8.6 (6:0.8.6). That is on my Ubuntu machine. I would love to stop the support for Ubuntu but it is not my call. This software is designed for STUDENTS. And since these students are not advanced enough for Arch (Mostly Middle school to High School. I am not saying they are dumb, just inexperienced) they stick with Ubuntu. If they use Linux at all anyway. In all truthfulness I am not the author of the software. I was just asked by a group of students to help them install the software on their computers.
I searched around and found a lack of instructions for building and installing so I decided to write a script. When I found out that the developers at KIPR don't keep their development and release code separate, it was time for me to take matters into my own hands. I got it working on Ubuntu. A mean feat too. Most of the code was broken in some way. Apparently the KIPR devs are very ignorant of Linux ways. Most users of the KIPR software use Windows, and even then it is broken. I was at a conference that showed the students how to use the software. They spent over an hour working out bugs. It was as if they hadn't even experienced the debug stage. Don't even ask me about the KIPR link that this software is supposed to work with. It runs on Linux but is completely trash. Not from a hardware standpoint, it is programmed badly. I wish they could use Arduino's instead. How easy that would be......KIPR just makes me sick.
I am forced to keep working with Ubuntu. It is nice for netbooks, but not for programming. Thanks for the links, I will be using them. If anyone has other information I would greatly appreciate it.
Offline
libav 0.8.6 is old (surprise!). Try ffmpeg-compat, you should be able to point the compiler at the old libs.
Offline
How would I do that with cmake? Very newbie question. I normally prefer to use NEW software...
Offline
I figured it out. The scrpt works on Fedora which is using the same version of libav. It won't take long to get Arch support. Thanks again for all the help.
Offline