Trouble building on OS X 10.11.6 (El Capitan)

23 views
Skip to first unread message

andyby...@gmail.com

unread,
Sep 27, 2016, 3:05:31 AM9/27/16
to libmv-devel
Hello!

I'm having trouble getting libmv to build on OS X 10.11.6.  
I'm using the latest revision from:
And the readme instructions from the deprecated github repo.

When I run the vanilla make command it has build errors that seem to be related to the out of date third party libraries and C++11 updates to the OS X SDK.

I used cmake to configure the build:
---------------------------------------------------------------
cd ~/gitrepo/libmv
mkdir build
cd build
cmake ../src -DCMAKE_OSX_DEPLOYMENT_TARGET=10.6 -DCMAKE_CXX_FLAGS_DEBUG="-g3 -O0 -fno-inline -std=c++11" -DCMAKE_C_FLAGS_DEBUG="-g3 -O0 -fno-inline" -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_BUILD_TYPE="Debug" -DWITH_SYSTEM_CERES=YES

CMake Warning (dev) at CMakeLists.txt:21 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.4 is not supported by CMake >= 3.0.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMAKE_MODULE_PATH = /Users/andy/gitrepo/libmv/src/CMake;/Users/andy/gitrepo/libmv/src/CMake/modules;/Users/andy/gitrepo/libmv/src/third_party/ceres/cmake
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found version "4.8.7") 
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.12") 
-- Found ceres: /usr/local/lib/libceres.dylib  
-- Looking for mmap64
-- Looking for mmap64 - not found
System hasn't large file support.
-- GUI enabled. Make sure you have Qt (and qt-devel for binary distributions)
-- Video support enabled. Make sure you have FFMpeg (and ffmpeg-devel for binary distributions)
-- Found Qt4: /usr/local/bin/qmake (found version "4.8.7") 
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenGL.framework  
-- Calibration Tool enabled. Make sure you have OpenCV (and opencv-devel for binary distributions)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/andy/gitrepo/libmv/build
---------------------------------------------------------------


The make command fails when building numeric.o
(output before the error excluded for brevity)
---------------------------------------------------------------
Scanning dependencies of target numeric
[ 50%] Building CXX object libmv/numeric/CMakeFiles/numeric.dir/numeric.o
In file included from /Users/andy/gitrepo/libmv/src/libmv/numeric/numeric.cc:22:
In file included from /Users/andy/gitrepo/libmv/src/./libmv/numeric/numeric.h:28:
In file included from /Users/andy/gitrepo/libmv/src/third_party/eigen/Eigen/Cholesky:4:
In file included from /Users/andy/gitrepo/libmv/src/third_party/eigen/Eigen/Core:288:
/Users/andy/gitrepo/libmv/src/third_party/eigen/Eigen/src/Core/DenseStorage.h:277:21: error: no member named 'move' in namespace 'std'; did you mean
      'modf'?
      : m_data(std::move(other.m_data))
               ~~~~~^~~~
                    modf
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/architecture/i386/math.h:316:15: note: 
      'modf' declared here
extern double modf ( double, double * );
---------------------------------------------------------------

I'm not sure which part I've got wrong here.  Should I not be using the OS X 10.6 SDK, or should I try to update the third party Eigen source?

Alternatively, should I instead use the libmv source included in the blender?

The libmv change log in the blender repo shows more recent updates than the standalone libmv repo.
I'm just wondering which is correct repo to be using if I want to build libmv and the included tools.


Thanks for creating and open sourcing such an amazing library, really looking forward to trying it out!
-Andy
Reply all
Reply to author
Forward
0 new messages