We have moved to a new Sailfish OS Forum. Please start new discussions there.

opencv - sailfishOS IDE

asked 2014-02-27 19:04:25 +0300

Matl gravatar image

updated 2016-10-26 15:38:19 +0300

jiit gravatar image


I want to create an Sailfish app for Jolla with C++ and openCV. I worked with openCV and standard computers, but I have no experience with openCV and mobile devices. How do I have to integrate the openCV libraries into the sailfishOS IDE?

If I integrate the standard libraries like in x64 / x86 programs:

INCLUDEPATH += /usr/include/opencv \
               /usr/include/opencv2 \
LIBS += -lopencv_core

and include them with:

#include <cv.h>

it is not posiible to use the opencv functions.

Has anybody experiences with openCV, the SailfishOS IDE and Jolla?

edit retag flag offensive close delete



You may have more luck with responses and assistance if you ask on #sailfishos on Freenode, you'll find programmers there that should be able to help.

steph ( 2014-03-03 00:15:21 +0300 )edit

2 Answers

Sort by » oldest newest most voted

answered 2015-01-19 18:12:00 +0300

Some people have repositories containing OpenCV in Mer Obs (i.e. this one https://build.merproject.org/package/show/home:nielnielsen/opencv).

I was myself looking for info about this about a week ago and I wrote a short tutorial how to add repos from Mer Obs to the build machine + install them so that you can use them in the SDK. You can find the tutorial from here:


edit flag offensive delete publish link more


I will take a look at it soon :) Thanks so far.

Matl ( 2015-02-28 14:58:01 +0300 )edit

answered 2015-01-19 14:33:35 +0300

Kontio gravatar image

OpenCV is not part of Sailfish OS (or Mer/Nemo), so it can't just be "added". In order to make use of it you would need to build the library for the device first, so you could make use of it in an application.

You can find some pointers on how that could be done in the answer to an SDL2 question.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2014-02-27 19:04:25 +0300

Seen: 963 times

Last updated: Jan 19 '15