Opened 12 years ago

Closed 12 years ago

#37074 closed defect (fixed)

opencv @2.4.3_1 does not add apple-gcc42 dependency when needed

Reported by: david@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: opencv

Description

opencv @2.4.3, Revision 1 fails to install. From the log:

:info:configure CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:43 (MESSAGE):
:info:configure   Could not find compiler set in environment variable CXX:
:info:configure 
:info:configure   /opt/local/bin/g++-apple-4.2.

Installing the apple-gcc42 port fixes the problem.

I looked at the opencv Portfile and it doesn't specify apple-gcc42 explicitly, it only blacklists gcc-4.0 and llvm-gcc-4.2 and clang.

I don't know if it is possible to specify "any 1 of x or y or z compiler ports" as a dependency, and give a nicer error message if that dependency isn't met? We probably don't want to explicitly set apple-gcc42 as a build requirement, because the user might have another valid compiler available.

Change History (2)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to stromnov@…
Port: opencv added

In the future, please fill in the Port field and Cc the port maintainer(s).

comment:2 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Summary: opencv fails to install (opencv @2.4.3, Revision 1)opencv @2.4.3_1 does not add apple-gcc42 dependency when needed
Note: See TracTickets for help on using tickets.