jcelaya / hdrmerge

HDR exposure merging
http://jcelaya.github.io/hdrmerge/
Other
362 stars 78 forks source link

Mac compiling #111

Closed dannephoto closed 6 years ago

dannephoto commented 6 years ago

Is this fine program still maintained? I use the mac version of HDRmerge and built a scriptbased tool around the command line renderer which works really good. Sometimes I have issues like getting pink output in highlights and I would really like to check out stuff in code. Now compiling seems very hard on mac. I get to the point where it looks for openmp but it will still compile but there will be a few errors.

When running cmake ..

-- The C compiler identification is AppleClang 8.1.0.8020038
-- The CXX compiler identification is AppleClang 8.1.0.8020038
-- 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
-- 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 PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'libraw'
--   Found libraw, version 0.17.2
-- Checking for module 'libraw_r'
--   Found libraw_r, version 0.17.2
-- Found LibRaw: /usr/local/Cellar/libraw/0.17.2_1/lib/libraw.dylib (found version "0.17.2") 
-- Found Exiv2: /usr/local/lib/libexiv2.dylib (found suitable version "0.26.0", minimum required is "0.12") 
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.8") 
-- Found ALGLIB: /usr/local/lib/libalglib.dylib  
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   unit_test_framework
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) (found version "1.0")
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) (found version "1.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dan/hdrmerge/build

And then when running make and the running the binary it misses dyld libraries:

dans-MacBook-Pro:~ dan$ /Users/dan/hdrmerge/build/hdrmerge.app/Contents/MacOS/hdrmerge 
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
  Referenced from: /usr/local/opt/libraw/lib/libraw_r.15.dylib
  Reason: image not found
Abort trap: 6

Any ideas to these issues?

Had partly success by reinstalling libraw via brew. Now it starts but it will segfault: 99847 Segmentation fault: 11

Beep6581 commented 6 years ago

It is maintained, though AFAIK none of the devs use macOS.

The native system compiler provided by Apple is badly outdated and does not support OpenMP. Try using the latest stable compiler from MacPorts, it supports OpenMP.

This is the guide for compiling RawTherapee in macOS, maybe you will find some ideas there: http://rawpedia.rawtherapee.com/MacOS

dannephoto commented 6 years ago

Thanks. Will give it a go.