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

opencv - sailfishOS IDE

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

Matl gravatar image

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

jiit gravatar image

Hey,

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

Comments

3

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 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

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

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:

https://gist.github.com/skvark/49a2f1904192b6db311a

edit flag offensive delete publish link more

Comments

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

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

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

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

Follow
3 followers

Stats

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

Seen: 983 times

Last updated: Jan 19 '15