Mac Ports might install some additional libraries in /opt/local
e.g. lib tiff, jpeg, png
These libs are automatically found by the Vigra CMake setup and lead to the following build errors:
Linking CXX shared library libvigraimpex.dylib
Undefined symbols for architecture x86_64:
"_H5P_CLS_DATASET_CREATE_ID_g", referenced from: void vigra::HDF5File::write_<1u, double,
vigra::StridedArrayTag>(std::1::basic_string<char,
std::1::char_traits<char>, std::__1::allocator<char> >&,
vigra::MultiArrayView<1u, double, vigra::StridedArrayTag> const&, int,
int, vigra::MultiArrayShape<1u>::type&, int) in hdf5_rf_impex.cxx.o
void vigra::HDF5File::write_<1u, int,
vigra::StridedArrayTag>(std::1::basic_string<char,
std::1::char_traits<char>, std::__1::allocator<char> >&,
vigra::MultiArrayView<1u, int, vigra::StridedArrayTag> const&, int, int,
vigra::MultiArrayShape<1u>::type&, int) in hdf5_rf_impex.cxx.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[5]: * [src/impex/libvigraimpex.5.1.10.0.dylib] Error 1
make[4]: * [src/impex/CMakeFiles/vigraimpex.dir/all] Error 2
make[3]: * [all] Error 2
make[2]: * [ep/src/Vigra-stamp/Vigra-build] Error 2
make[1]: * [CMakeFiles/Vigra.dir/all] Error 2
make: * [all] Error 2