Opened 8 years ago

Closed 8 years ago

#37530 closed defect (duplicate)

OpenCV 2.4.3 fails to build on fresh install of Mountain Lion

Reported by: macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: opencv


I'm on a freshly installed Mountain Lion with all current updates installed (Mac OS X 10.8.2), including a current XCode with Unix commandline tools (i.e. clang, etc) installed. I've installed MacPorts from the *.mpkg binary installer, issued "sudo port selfupdate" and installed just three packages (automake, autoconf, libtool) and then tried to install opencv including the Python 2.7 wrappers.

"sudo port install opencv +python27" fetched all dependencies, downloaded and extracted the OpenCV tarball, but failed configuring it. The error is (see attached logfile) stated below. Cleaning and trying again did result in an identical error.

:info:configure -- The CXX compiler identification is GNU 4.2.1
:info:configure -- The C compiler identification is GNU 4.2.1
:info:configure CMake Error at /opt/local/share/cmake-2.8/Modules/Platform/Darwin.cmake:190 (message):
:info:configure   CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but CMAKE_OSX_SYSROOT:
:info:configure    "/"
:info:configure   is not set to a MacOSX SDK with a recognized version.  Either set
:info:configure   CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
:info:configure   empty.
:info:configure Call Stack (most recent call first):
:info:configure   /opt/local/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
:info:configure   CMakeLists.txt:61 (project)
:info:configure -- Configuring incomplete, errors occurred!
:info:configure Exit code: 1

A short web search resulted in the info that this might be due to a broken cmake. This is what I found:
MacPorts cmake ticket #37527

Attachments (1)

main_log_original (84.3 KB) - added by macports@… 8 years ago.
log file from initial run (including dependency installation)

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by macports@…

Attachment: main_log_original added

log file from initial run (including dependency installation)

comment:1 Changed 8 years ago by macports@…

I must add, that "sudo port clean opencv" plus "sudo port install opencv" works (i.e., building without Python). I suspect the problem to be Mountain Lion platform python (no mac ports python installed).

comment:2 Changed 8 years ago by ryandesign (Ryan Schmidt)

Resolution: duplicate
Status: newclosed

Duplicate of #37527.

Note: See TracTickets for help on using tickets.