Has anyone tried this yet?
I am trying to do so, and running into many issues. Several of the libraries that the README.OSX file for pfstools says to install are not found by fink, and I've had trouble tracking them down (such as libtool14 and automake1.9).
I've muddled through, and now I'm stuck at the install of pfstmo. If I run ./configure CXXFLAGS=-m32, I get the following:Making all in mantiuk06
/bin/sh ../../libtool --tag=CXX --mode=link g++ -O3 -m32 -fopenmp -ffast-math -ftree-vectorize -mfpmath=sse,387 -DBRANCH_PREDICTION -mpentiumpro -o pfstmo_mantiuk06 pfstmo_mantiuk06.o contrast_domain.o -L/usr/local/lib -lpfs-1.2
libtool: link: g++ -O3 -m32 -fopenmp -ffast-math -ftree-vectorize -mfpmath=sse,387 -DBRANCH_PREDICTION -mpentiumpro -o pfstmo_mantiuk06 pfstmo_mantiuk06.o contrast_domain.o -Wl,-bind_at_load -L/usr/local/lib /usr/local/lib/libpfs-1.2.dylib
Undefined symbols for architecture i386:
"___builtin_expect", referenced from:
__Z21tmo_mantiuk06_contmapiiPfS_S_S_ffbifPFiiE.omp_fn.0 in contrast_domain.o
ld: symbol(s) not found for architecture i386
if I leave that flag off, I get this:Undefined symbols for architecture x86_64:
"pfs::DOMIO::writeFrame(pfs::Frame*, __sFILE*)", referenced from:
tmo_drago03(int, char**)in pfstmo_drago03.o
"pfs::DOMIO::freeFrame(pfs::Frame*)", referenced from:
tmo_drago03(int, char**)in pfstmo_drago03.o
Making all in mantiuk06
/bin/sh ../../libtool --tag=CXX --mode=link g++ -O3 -fopenmp -ffast-math -ftree-vectorize -mfpmath=sse,387 -DBRANCH_PREDICTION -mpentiumpro -o pfstmo_mantiuk06 pfstmo_mantiuk06.o contrast_domain.o -L/usr/local/lib -lpfs-1.2
libtool: link: g++ -O3 -fopenmp -ffast-math -ftree-vectorize -mfpmath=sse,387 -DBRANCH_PREDICTION -mpentiumpro -o pfstmo_mantiuk06 pfstmo_mantiuk06.o contrast_domain.o -Wl,-bind_at_load -L/usr/local/lib /usr/local/lib/libpfs-1.2.dylib
Undefined symbols for architecture x86_64:
"___builtin_expect", referenced from:
__Z21tmo_mantiuk06_contmapiiPfS_S_S_ffbifPFiiE.omp_fn.0 in contrast_domain.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [pfstmo_mantiuk06] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I also don't seem to have dcraw2hdrgen installed, which is part of the workflow I'm trying to use (got it from http://photoblog.edu-perez.com/2009/02/hdr-and-linux.html). It's in the man pages for pfstools (http://pfstools.sourceforge.net/man1/dcraw2hdrgen.1.html) - is that supposed to be installed, or do I need to do something else?
Ok, did that. I've tried cleaning and rebuilding everything in both 32 and 64 bit modes. The shortest error I've managed to get is with 64-bit everything, and again it's in contrast_domain.o for the mantiuk06 tone-mapper:Making all in mantiuk06
/bin/sh ../../libtool --tag=CXX --mode=link g++ -O3 -fopenmp -ffast-math -ftree-vectorize -mfpmath=sse,387 -DBRANCH_PREDICTION -mpentiumpro -o pfstmo_mantiuk06 pfstmo_mantiuk06.o contrast_domain.o -L/usr/local/lib -lpfs-1.2
libtool: link: g++ -O3 -fopenmp -ffast-math -ftree-vectorize -mfpmath=sse,387 -DBRANCH_PREDICTION -mpentiumpro -o pfstmo_mantiuk06 pfstmo_mantiuk06.o contrast_domain.o -Wl,-bind_at_load -L/usr/local/lib /usr/local/lib/libpfs-1.2.dylib
Undefined symbols for architecture x86_64:
"___builtin_expect", referenced from:
#undef BRANCH_PREDICTION
in ./config.h, somewhere before the line
#ifdef BRANCH_PREDICTION