[MacPorts] #32094: opencv will not build
#32094: opencv will not build --------------------------------+------------------------------------------- Reporter: trog24@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: opencv --------------------------------+------------------------------------------- I started out with the same cannot be built error: {{{ Error: opencv 2.3.1a cannot be built while opencv 2.2.0 is installed and active. Error: Please deactivate opencv 2.2.0 first. Error: Target org.macports.build returned: incompatible opencv version active Log for opencv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/main.log Error: Unable to upgrade port: 1 To report a bug, see <http://guide.macports.org/#project.tickets> }}} I then deactivated opencv and continued the upgrade of outdated. Opencv did not update. I then tried sudo port install opencv and got the following error: {{{ Error: Target org.macports.build returned: shell command failed (see log for details) Log for opencv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} I thought that it remnants remained from the previous attempt and did the following: sudo port clean opencv Before reattempting the install, I thought that it may be better if I uninstalled opencv. I then made another attempt at installing and got the following error: {{{ ---> Computing dependencies for opencv ---> Fetching archive for opencv ---> Attempting to fetch opencv-2.3.1a_1.darwin_9.ppc.tgz from http://packages.macports.org/opencv ---> Fetching opencv ---> Verifying checksum(s) for opencv ---> Extracting opencv ---> Applying patches to opencv ---> Configuring opencv ---> Building opencv Error: Target org.macports.build returned: shell command failed (see log for details) Log for opencv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} Attached is the log file from the failure. Please note that this is the PowerPC version. -- Ticket URL: <https://trac.macports.org/ticket/32094> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv will not build --------------------------------+------------------------------------------- Reporter: trog24@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: opencv --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * cc: trog24@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv will not build --------------------------------+------------------------------------------- Reporter: trog24@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by ebudda@…): Fixed by using 3rd party libpng installer -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv will not build --------------------------------+------------------------------------------- Reporter: trog24@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by dersh@…): For what it is worth, I am having a similar problem. But the log file looks a little different, so I decided to post as well. My log file is attached. -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv will not build --------------------------------+------------------------------------------- Reporter: trog24@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by trog24@…): opencv still will not build. See attached log. -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv will not build --------------------------------+------------------------------------------- Reporter: trog24@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by o.schmalz@…): Same error, log attached. Mac OS X 10.5, OpenCV 2.3.1a How can I build opencv? -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv: ld: duplicate symbol std::tr1::placeholders::(anonymous namespace)::_10 --------------------------------+------------------------------------------- Reporter: trog24@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: leopard | Port: opencv --------------------------------+------------------------------------------- Changes (by ryandesign@…): * cc: ebudda@…, dersh@…, o.schmalz@… (added) * keywords: => leopard Comment: The error in trog24's first and second logs is: {{{ :info:build ld: duplicate symbol std::tr1::placeholders::(anonymous namespace)::_10 in CMakeFiles/opencv_ts.dir/src/ts.o and CMakeFiles/opencv_ts.dir/src/precomp.o :info:build collect2: ld returned 1 exit status :info:build make[2]: *** [lib/libopencv_ts.2.3.1.dylib] Error 1 }}} This is the error this ticket will be about. Has duplicate #33098 (o.schmalz's ticket). Both users are on Leopard. ----- ebudda's log shows a different error: {{{ :info:build ld: warning: ignoring file /Library/Frameworks//libpng.framework/libpng, missing required architecture x86_64 in file :info:build Undefined symbols for architecture x86_64: :info:build "_png_create_write_struct", referenced from: }}} This is unrelated, and not a MacPorts problem; the problem is that /Library/Frameworks/libpng.framework exists; delete it, clean opencv, try again. ----- dersh's log shows yet a third different error: {{{ :info:build ld: warning: duplicate dylib /opt/local/lib/libz.dylib :info:build Undefined symbols: :info:build "_png_set_gray_1_2_4_to_8", referenced from: :info:build cv::PngDecoder::readData(cv::Mat&) in grfmt_png.o :info:build ld: symbol(s) not found }}} This is unrelated. This [https://github.com/mxcl/homebrew/pull/6424 Homebrew bug report] includes the suggestion that this could be due to the presence of /Library/Frameworks/Mono.framework; if you have this, or /Library/Frameworks/libpng.framework, delete them, clean opencv, and try again. If that doesn't work, file a new ticket, since the issue is unrelated to the issue this ticket was filed about. -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv: ld: duplicate symbol std::tr1::placeholders::(anonymous namespace)::_10 --------------------------------+------------------------------------------- Reporter: trog24@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: leopard | Port: opencv --------------------------------+------------------------------------------- Comment(by ryandesign@…): Replying to [comment:6 o.schmalz@…]:
Same error, log attached. Mac OS X 10.5, OpenCV 2.3.1a How can I build opencv?
I do not know, and we do not have a MacPorts maintainer for opencv right now. I suggest you report the problem to the developers of opencv. -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv: ld: duplicate symbol std::tr1::placeholders::(anonymous namespace)::_10 --------------------------------+------------------------------------------- Reporter: trog24@… | Owner: raphael@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Keywords: leopard | Port: opencv --------------------------------+------------------------------------------- Changes (by raphael@…): * owner: macports-tickets@… => raphael@… * status: new => assigned * version: 2.0.3 => Comment: According to [http://comments.gmane.org/gmane.comp.lib.opencv/50383 this mailing list post] disabling the build of the tests helps. I'll test that. -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv: ld: duplicate symbol std::tr1::placeholders::(anonymous namespace)::_10 ---------------------------------+------------------------------------------ Reporter: trog24@… | Owner: raphael@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: leopard Port: opencv | ---------------------------------+------------------------------------------ Changes (by raphael@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r89507. -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32094: opencv: ld: duplicate symbol std::tr1::placeholders::(anonymous namespace)::_10 ---------------------------------+------------------------------------------ Reporter: trog24@… | Owner: raphael@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: leopard Port: opencv | ---------------------------------+------------------------------------------ Comment(by dersh@…): Replying to [comment:7 ryandesign@…]:
This is unrelated. This [https://github.com/mxcl/homebrew/pull/6424 Homebrew bug report] includes the suggestion that this could be due to the presence of /Library/Frameworks/Mono.framework; if you have this, or /Library/Frameworks/libpng.framework, delete them, clean opencv, and try again. If that doesn't work, file a new ticket, since the issue is unrelated to the issue this ticket was filed about.
Deleting the Mono framework did the job for me (it has been there for many years, and hasn't caused problems before.) -- Ticket URL: <https://trac.macports.org/ticket/32094#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts