From owner-freebsd-ports@FreeBSD.ORG Mon Jun 30 10:43:22 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1F1F308; Mon, 30 Jun 2014 10:43:22 +0000 (UTC) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82E4F27A6; Mon, 30 Jun 2014 10:43:22 +0000 (UTC) Received: from gate.nw-fva.de ([134.76.242.1] helo=pc028.nfv) by mailer.gwdg.de with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1X1Z3P-00036A-GB; Mon, 30 Jun 2014 12:43:19 +0200 Message-ID: <53B13F47.4030201@gwdg.de> Date: Mon, 30 Jun 2014 12:43:19 +0200 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "Jason E. Hale" Subject: Re: opencv2 import problem with python References: <20140629083408.GR1560@funkthat.com> <53B102A3.9030909@gwdg.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - Cc: ports@freebsd.org, Zenny X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2014 10:43:22 -0000 Am 30.06.2014 11:02 (UTC+1) schrieb Jason E. Hale: > On Mon, Jun 30, 2014 at 2:24 AM, Rainer Hurling 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