Build under Mac OS X fails at r8047 due to OpenCVDetectCXXCompiler.cmake (Bug #1854)


Added by Steve Nicholson almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-04-26
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:build/install
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

I'm running under OS X 10.7.3 with Xcode 4.3.2 (and its command line tools) installed. Building breaks beginning with r8047 due to changes in OpenCVDetectCXXCompiler.cmake. If I update to r8221 and roll OpenCVDetectCXXCompiler.cmake back to r8046, compilation works fine.

Not sure if this is helpful:

$ which gcc
/usr/bin/gcc

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ which clang
/usr/bin/clang

$ clang --version
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix


errors.txt (12.5 kB) Steve Nicholson, 2012-04-26 11:46 pm

cmake8046.txt (3.6 kB) Steve Nicholson, 2012-04-26 11:46 pm

cmake8221.txt (3.8 kB) Steve Nicholson, 2012-04-26 11:46 pm


Related issues

duplicated by Bug #1864: Build fails on Mac OS X 10.7 Cancelled 2012-04-29

Associated revisions

Revision 7bfc50b8
Added by Andrey Kamaev almost 13 years ago

#1854 Fixed Mac OS X build with Clang

Revision 901dc3b8
Added by Roman Donchenko over 11 years ago

Merge pull request #1854 from asmorkalov:android_engine_tegra4i5

History

Updated by Andrey Kamaev almost 13 years ago

Thanks for the report!
Problem should be fixed in 2.4 branch (the fix will be merged to trunk in few days).

  • Status changed from Open to Done
  • Target version set to 2.4.0
  • Assignee changed from Alexander Shishkov to Andrey Kamaev

Updated by Steve Nicholson almost 13 years ago

I forgot to include the error information. It is attached as error.txt.

I've also attached the output of cmake from the two versions of OpenCVDetectCXXCompiler.cmake.

  • File errors.txt added
  • File cmake8046.txt added
  • File cmake8221.txt added

Also available in: Atom PDF