From owner-freebsd-stable@FreeBSD.ORG Sun Jun 29 08:47:07 2014 Return-Path: Delivered-To: freebsd-stable@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 328E12B5; Sun, 29 Jun 2014 08:47:07 +0000 (UTC) Received: from mail-ob0-x236.google.com (mail-ob0-x236.google.com [IPv6:2607:f8b0:4003:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4D8D2618; Sun, 29 Jun 2014 08:47:06 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id nu7so7409760obb.41 for ; Sun, 29 Jun 2014 01:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xcmYkRwzV7NValYaMX404r2PYbEx57shKb7di/q6MrY=; b=znKw+i98P9EPr5rpaUqp01pjCNA7mKZ0YrH5qKBhg6dSZPYjwMQlWEhd03gAdBQJuQ Iru9tVJu48fGzT1J4U0IOhPTXvBUgPz7y1WEl6jYCODcKi9ysh+F0qSXwI8ahRlOhAtT RXS1c8YzBAtyskQF5XdyQRQBADZZdynNc4wtLGjuuC43TAe7MkIJ/l+Y0DLE5RLYsKcu n8FJiQx2d6fcti/eE4OkzldkEaDglERQyxgqNn8tv1/azhc74M92bIGn60FRRkUt1UWo O3zNH/tBw9DCMP+IdrjmpxJ/YC+ll5azgVZ1pF0v8pchVVrwAth7wk65xcSGXZvmogaF Mdrw== MIME-Version: 1.0 X-Received: by 10.182.115.199 with SMTP id jq7mr812973obb.70.1404031626217; Sun, 29 Jun 2014 01:47:06 -0700 (PDT) Received: by 10.202.182.130 with HTTP; Sun, 29 Jun 2014 01:47:06 -0700 (PDT) In-Reply-To: <20140629083408.GR1560@funkthat.com> References: <20140629083408.GR1560@funkthat.com> Date: Sun, 29 Jun 2014 10:47:06 +0200 Message-ID: Subject: Re: opencv2 import problem with python From: Zenny To: "freebsd-stable@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: jhale@FreeBSD.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2014 08:47:07 -0000 Thanks John: I am getting the following: "% grep ZTIN2cv15FeatureDetectorE /usr/local/lib/* Binary file /usr/local/lib/libopencv_contrib.so matches Binary file /usr/local/lib/libopencv_contrib.so.2 matches Binary file /usr/local/lib/libopencv_contrib.so.2.4.7 matches Binary file /usr/local/lib/libopencv_features2d.so matches Binary file /usr/local/lib/libopencv_features2d.so.2 matches Binary file /usr/local/lib/libopencv_features2d.so.2.4.7 matches Binary file /usr/local/lib/libopencv_legacy.so matches Binary file /usr/local/lib/libopencv_legacy.so.2 matches Binary file /usr/local/lib/libopencv_legacy.so.2.4.7 matches Binary file /usr/local/lib/libopencv_stitching.so matches Binary file /usr/local/lib/libopencv_stitching.so.2 matches Binary file /usr/local/lib/libopencv_stitching.so.2.4.7 matches I am CCing this mail to jhale for his attention, who is reportedly the maintainer accoring to the ports Makefile. /z On Sun, Jun 29, 2014 at 10:34 AM, John-Mark Gurney wrote: > Zenny wrote this message on Sun, Jun 29, 2014 at 10:24 +0200: > > Hi: > > > > I am trying to run opencv2 and installed it using the pkg binaries > (opencv > > and py27-opencv). > > > > However when I try to import opencv2 module, it outputs: > > > > "% python > > Python 2.7.6 (default, Mar 4 2014, 19:30:28) > > [GCC 4.2.1 Compatible FreeBSD Clang 3.3 (tags/RELEASE_33/final 183502)] > on > > freebsd10 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import cv2 > > Traceback (most recent call last): > > File "", line 1, in > > ImportError: /usr/local/lib/python2.7/site-packages/cv2.so: Undefined > > symbol "_ZTIN2cv15FeatureDetectorE" > > >>>" > > > > cv2.so file does exist. Any hints to run opencv2 in FreeBSD 10.0 will be > > appreciated! Thanks! > > Sounds like one of the libraries that cv2.so depends upon wasn't linked > w/ cv2.so... doing a: grep ZTIN2cv15FeatureDetectorE /usr/local/lib/* > should identify it, and you should report it to opencv2's maintainer > to fix.. > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." >