Build Script for Linux

9 replies [Last post]
ryanvade
Title: NooBot
Joined: 10/25/2012
Posts:
BotPoints: 57
User offline. Last seen 2 years 32 weeks ago.

Hello everyone. I have been working on a build script for KISS IDE on Linux. I will attach it to this post and keep it up to date at https://github.com/ryanvade/Second-Repo The build-2.sh script. I am testing it on Debian based systems, Fedora and Arch Linux. If anyone has another distro they would like me to work into the script just ask.

Notice: Please add: #include to libkovan/src/kovan_module_p.cpp OR it won't compile.
Also, to use script download the following:
i2c_wrapper
kiss
ks2
libkar
libkovan
libkovanserial
pcompiler

Download the scrpt, rename build.sh place all the files in a directory called kiss-script:
chmod +x ./build.sh
./build.sh

I will add git to the script later. Sorry for the inconvenience.

AttachmentSize
build.txt7.71 KB
ryanvade
Title: NooBot
Joined: 10/25/2012
Posts:
BotPoints: 57
User offline. Last seen 2 years 32 weeks ago.

Here is another update. Just do the following:
git clone https://github.com/ryanvade/kiss-script.git

Everything is there. I will try to keep it up to date.

NOTICE: libkovan is BROKE. There have been changes in FFmpeg that libkovan has not taken into effect. I wish the kipr devs would keep track of these kinds of things. ;(

[ 65%] 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 2

av_open_input_file, is not available any more (use avformat_open_input) which is normally put in configure.

ryanvade
Title: NooBot
Joined: 10/25/2012
Posts:
BotPoints: 57
User offline. Last seen 2 years 32 weeks ago.

I also would like some help with the kernel module and daemon

ryanvade
Title: NooBot
Joined: 10/25/2012
Posts:
BotPoints: 57
User offline. Last seen 2 years 32 weeks ago.

I fixed the libav* problem. The script will fix it on RHEL systems. Script tested and confirmed working on Ubuntu 13.04 and Fedora 18. I am now going to work on Arch and OpenSuse support.

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 3 years 43 weeks ago.

Thanks for doing this. Sorry I keep making things difficult. :P We are using an older version of libav* on the Link because that's what our package manager offers. :/ The kernel module will only work on the KIPR Link. The simulator implements a UDP server that mimics the kernel module. Which daemon?

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.

ryanvade
Title: NooBot
Joined: 10/25/2012
Posts:
BotPoints: 57
User offline. Last seen 2 years 32 weeks ago.

Kovan-Serial has a dbus folder. I assumed this was for a connection daemon of some kind. I guess it is for the link as well?

Also, this script works on Arch systems with yaourt installed now. ;)

ryanvade
Title: NooBot
Joined: 10/25/2012
Posts:
BotPoints: 57
User offline. Last seen 2 years 32 weeks ago.

oh, and in the interest of using the most up to date software:
http://libav.org/download.html

Libav* is in such current development it is highly worth it to use the most up to date versions. If for no other reason than speed and stability increases.

Ponivnret
Title: NooBot
Joined: 07/29/2016
Posts:
BotPoints: 22
User offline. Last seen 1 year 19 weeks ago.

this is very great and brilliant information
192.168.o.1

Jordyn21
Title: NooBot
Joined: 03/31/2017
Posts:
BotPoints: 42
User offline. Last seen 9 weeks 4 days ago.

Very nice post.thanks for sharing such an effective post. wondershare filmora

panistefanin
Title: NooBot
Joined: 05/29/2017
Posts:
BotPoints: 42
User offline. Last seen 4 weeks 6 days ago.

Thanks for the useful information! I helped your advice!
sprint corporate