Skip to content

OS X build steps #56

Closed
Closed
@phries

Description

Here's what I've found for running HDRMerge on Mac OS X 10.10 (Yosemite). Not totally successful yet but I got it built and running.

Build

Uses brew package manager. I had a few brews already installed that might have been required too.

  • brew install libraw
  • brew install cmake
  • brew install qt4
  • brew install boost
  • Download and build the tarball of exiv2 (0.23, not latest). Install it with: sudo make install
alglib (long step for develop branch only)

For the "develop" branch, you also need alglib 3.x.x. The only homebrew formula for "alglib" gives you alglib 2 which is not compatible. Complicating things, neither version of alglib includes any kind of Makefile, so every package manager rolls their own.

For now you can use a quick homebrew formula I wrote for "alglib3":

And apply this diff to hdrmerge:

$ git diff
diff --git a/cmake/FindAlglib.cmake b/cmake/FindAlglib.cmake
index 9b80b9a..5903414 100644
--- a/cmake/FindAlglib.cmake
+++ b/cmake/FindAlglib.cmake
@@ -26,10 +26,10 @@ find_path (ALGLIB_INCLUDES
     statistics.h
     stdafx.h
     PATHS
-    /usr/include/libalglib/
+    /usr/local/include/alglib3/
     )   

-find_library (ALGLIB_LIBRARIES NAMES alglib)
+find_library (ALGLIB_LIBRARIES NAMES alglib3)

 # handle the QUIETLY and REQUIRED arguments and set ALGLIB_FOUND to TRUE if
Compiling hdrmerge

In build dir:

  • cmake ..
  • make

Issues

  • GUI app crashes in hdrmerge's alignment code when I try to merge the photos.
  • Command line creates a merged photo but it's black (see DNG turns out black #52). This may not be Mac-related.

edit 11/30 & 12/5: Worked around earlier need for installing a new compiler, which is time consuming. The program is much more debuggable with the default (XCode) compiler anyway. Compile from my fork, "develop" branch for now if you have compilation errors in things like an algorithm include and lambdas

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions