Page MenuHomePhabricator

Vigra build fails on OS X with mac ports
Closed, ResolvedPublic

Description

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

Event Timeline

User kleesiek has pushed new remote branch:

bug-19181-OsxMacPortsVigraFix

Two possible solutions (untested, no Mac available): One via Vigra.cmake ignoring default ports directory, the other via Vigra.patch omitting find_package on mac for certain image libs

[0dc830]: Merge branch 'bug-19181-OsxMacPortsVigraFix'

Merged commits:

2015-07-24 12:40:48 Jens Kleesiek [0bf16f]
after testing decided on variant a


2015-07-23 10:33:36 Jens Kleesiek [266ef9]
Set path of certain libraries to empty string. Needs testing on mac.


2015-07-22 15:10:54 Jens Kleesiek [022dff]
two possible solutions a) via Vigra.cmake ignore default ports directory b) via Vigra.patch omitting find_package on mac for certain image libs

User kleesiek has pushed new remote branch:

bug-19181-OsxMacPortsVigraFixRelease