From owner-freebsd-stable@FreeBSD.ORG Sun Jun 29 08:34:10 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 59CDECAF for ; Sun, 29 Jun 2014 08:34:10 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 38C8A2523 for ; Sun, 29 Jun 2014 08:34:09 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s5T8Y8BQ009933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Jun 2014 01:34:09 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s5T8Y8RE009932; Sun, 29 Jun 2014 01:34:08 -0700 (PDT) (envelope-from jmg) Date: Sun, 29 Jun 2014 01:34:08 -0700 From: John-Mark Gurney To: Zenny Subject: Re: opencv2 import problem with python Message-ID: <20140629083408.GR1560@funkthat.com> Mail-Followup-To: Zenny , "freebsd-stable@freebsd.org" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Sun, 29 Jun 2014 01:34:09 -0700 (PDT) Cc: "freebsd-stable@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:34:10 -0000 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."