Skip to content

Instantly share code, notes, and snippets.

@OliPelz
Last active November 20, 2019 19:08
Show Gist options
  • Save OliPelz/a121ca269789a22848823ae1fa8424b2 to your computer and use it in GitHub Desktop.
Save OliPelz/a121ca269789a22848823ae1fa8424b2 to your computer and use it in GitHub Desktop.
Install SikuliX on Fedora 25

Notes on Installing SikuliX on fedora 25

dnf groupinstall -y "Development Tools" 
dnf install -y cmake gcc git pkgconfig ffjpeg g++ gtk+-devel libjpeg-devel libtiff-devel jasper-devel libpng-devel zlib-devel libicu-devel unzip numpy python-devel autoconf automake libtool pango pango-devel cairo cairo-devel

now compile and install opencv2 because the opencv3 which comes with fedora 25 does not work with SikuliX

mkdir ~/opencv-2.4.13; cd $_
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.13/opencv-2.4.13.zip
unzip opencv-2.4.13.zip
cd opencv-2.4.13
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON -DENABLE_PRECOMPILED_HEADERS=OFF ..
make 
make install

update ldconfig path with new opencv2

touch /etc/ld.so.conf.d/opencv.conf
echo /usr/local/lib >> /etc/ld.so.conf.d/opencv.conf
ldconfig

further dependencies needed for SikuliX 1.1.0

dnf install -y tesseract xdotool wmctrl redhat-lsb

now install SikuliX 1.1.0

mkdir ~/SikuliX; cd $_
wget https://launchpad.net/sikuli/sikulix/1.1.0/+download/sikulixsetup-1.1.0.jar
java -jar sikulixsetup-1.1.0.jar

click 1.)

wait, done!

start with

java -jar sikulix.jar
@ndinev
Copy link

ndinev commented Sep 24, 2017

I found solution. You need to add following steps.

  1. Add Fusion repo for ffmpeg. Install ffmpeg instead ffjpeg
  2. g++ in Fedora 25/26 is gcc-c++
  3. After compilation, move release/lib to /usr/local/lib

Hope this help

@sikulifedora
Copy link

Hello.
Please tell how - Add Fusion repo for ffmpeg ?

And compile - error ffmpeg/avformat.h - not found

@ndinev
Copy link

ndinev commented Jul 26, 2018

Please follow the link provided in the instruction p.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment