Problem opencv with static compilation

asked 2015-05-13 02:23:05 -0600

oneirics gravatar image

updated 2015-05-15 02:19:00 -0600

Hello everyone !

I have an issue since some days. Let me explain : I am trying to create a video processing software. Everything works good, except now when I want to deploy this application statically . Now when I compile in static, I can no longer open the imagges and videos yet opened well before ... This is my simplify code:

void traitement_mouvement::mouvement(String url)
{
qDebug()<<"running app";

VideoCapture capture(url);

    if (!capture.isOpened())
    {
        qDebug()<<"Problem opening video";
        qDebug() << QString::fromStdString(url);
    }

The video does not open and there are no errors . I just have my qDebug () which tells me that the video does not open ... If anyone has a solution I'm interested.

Thanks in advance

edit retag flag offensive close merge delete

Comments

even with static libs, you will still need the opencv_ffmpeg.so around.

berak gravatar imageberak ( 2015-05-15 02:22:22 -0600 )edit

Hum, yes but i need a static lib of opencv_ffmpeg... because when i compile opencv to static libs using cmake, opencv_ffmpeg still remains a dynamique lib. How can i do ?

oneirics gravatar imageoneirics ( 2015-05-17 07:46:39 -0600 )edit