Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2014 12:43:19 +0200
From:      Rainer Hurling <rhurlin@gwdg.de>
To:        "Jason E. Hale" <jhale@FreeBSD.org>
Cc:        ports@freebsd.org, Zenny <garbytrash@gmail.com>
Subject:   Re: opencv2 import problem with python
Message-ID:  <53B13F47.4030201@gwdg.de>
In-Reply-To: <CAJE75NGtkzesHXAUhdGx18Bv2YpmvtOfw7gLiABuV2R1BHHNEQ@mail.gmail.com>
References:  <CACuV5sCnYrScft%2BQT80Qfg_4su73q3z3xo37B2m5tGOs_aX5aw@mail.gmail.com>	<20140629083408.GR1560@funkthat.com>	<CACuV5sAVa_5Cpbj4f9QRUGy=gLGgQ2oCO9MsTo%2B6AiD0emevDQ@mail.gmail.com>	<CAJE75NFi7LZz1rjjOjBoFd_LFmBTgBO%2BNvnbY0oSxcGeJWuQAw@mail.gmail.com>	<53B102A3.9030909@gwdg.de> <CAJE75NGtkzesHXAUhdGx18Bv2YpmvtOfw7gLiABuV2R1BHHNEQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 30.06.2014 11:02 (UTC+1) schrieb Jason E. Hale:
> On Mon, Jun 30, 2014 at 2:24 AM, Rainer Hurling <rhurlin@gwdg.de> wrote:
>> Am 29.06.2014 19:50 (UTC+1) schrieb Jason E. Hale:
>> math/saga is a GIS application, which uses OpenCV in one of its modules.
>> For some month now, SAGA GIS disables this module at start time of the
>> program.
>>
>> I tried your patch for graphics/opencv, but nothing changed for me. It
>> seems, the opencv libs continue to be non usable.
>>
> The patch was for py-opencv only, so I'm not sure it would apply to
> saga.  I'll take a look at it though.

Ahh, ok. So I completely misunderstood, sorry.

Because of this thread, I had another look at my port math/saga. And it
came out, that I used LDFLAGS in a wrong context (graphics/opencv-core
instead of graphics/opencv). So my problem with SAGA GIS and OpenCV
should be solved.

I will file a PR for this. Sorry for the noise.

Regards,
Rainer Hurling

> 
>>> Note: you need to import numpy before cv2.
>>
>> Does this mean, we have to rebuild and reinstall math/py-numpy before
>> installing graphics/opencv? Do we have to also reinstall
>> graphics/opencv-core?
> 
> This would only apply to py-opencv, so that is the only port that
> would have to be rebuilt.  Sorry if that was unclear.  I meant that
> numpy should be imported at the python prompt before the opencv
> module.
> $python
>>>> import numpy
>>>> import cv2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53B13F47.4030201>