Hi, I'm running Archlinux 32bit on my laptop and so far I've gotten the IDE to compile without any major issues. When I started to compile libkovan I get the following error:
[ 0%] Building CXX object CMakeFiles/kovan.dir/src/ardrone_video_p.cpp.o
/home/wtan/Downloads/KISS/libkovan/src/ardrone_video_p.cpp: In member function ‘virtual bool ARDrone2Video::start(const Address&)’:
/home/wtan/Downloads/KISS/libkovan/src/ardrone_video_p.cpp:202:38: error: ‘avcodec_alloc_context’ was not declared in this scope
m_codecCtx = avcodec_alloc_context();
^
/home/wtan/Downloads/KISS/libkovan/src/ardrone_video_p.cpp:206:22: error: ‘AVCodecContext’ has no member named ‘error_recognition’
m_codecCtx->error_recognition = FF_ER_CAREFUL;
^
/home/wtan/Downloads/KISS/libkovan/src/ardrone_video_p.cpp:206:42: error: ‘FF_ER_CAREFUL’ was not declared in this scope
m_codecCtx->error_recognition = FF_ER_CAREFUL;
^
/home/wtan/Downloads/KISS/libkovan/src/ardrone_video_p.cpp: In static member function ‘static void ARDrone2Video::initAv()’:
/home/wtan/Downloads/KISS/libkovan/src/ardrone_video_p.cpp:436:16: error: ‘avcodec_init’ was not declared in this scope
avcodec_init();
^
CMakeFiles/kovan.dir/build.make:1598: recipe for target 'CMakeFiles/kovan.dir/src/ardrone_video_p.cpp.o' failed
make[2]: *** [CMakeFiles/kovan.dir/src/ardrone_video_p.cpp.o] Error 1
CMakeFiles/Makefile2:168: recipe for target 'CMakeFiles/kovan.dir/all' failed
make[1]: *** [CMakeFiles/kovan.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
I believe the error has something to do with libav. The version I'm using is 9.11 (the latest one found here: https://libav.org/download.html). If you need any more information I'll be glad to provide it for you.
Fixed it:
changed
File: ardrone_video_p.cpp
m_codecCtx = avcodec_alloc_context();
tom_codecCtx = avcodec_alloc_context3(NULL);
Line: 201m_codecCtx->error_recognition = FF_ER_CAREFUL;
tomcodecCtx->err_recognition = AV_EF_CRCCHECK;
Line: 205Other minor errors that I came across compiling cs2:
include/port_configuration.hpp
Changed
#include QMetatype
to#include QMetaType
I'm not sure how to link cs2 and the KISS IDE so any help with that would be great. Also I would like to change the install directory because I don't like keeping it in my Downloads folder.
For whatever reason this post isn't showing up in the forum.
Edit:
Credits to ryanvade's kiss-script for helping me fix some of the errors. https://github.com/ryanvade/kiss-script