abria / TeraStitcher

A tool for fast automatic 3D-stitching of teravoxel-sized microscopy images
http://abria.github.io/TeraStitcher/
Other
78 stars 32 forks source link

Tiff issue in compile on MacOS10.9 #1

Closed dgoodwin208 closed 9 years ago

dgoodwin208 commented 9 years ago

I'm unable to compile on Mac, seeing an issue in reference to tiff3d. I have libtiff-4.0.3 installed via homebrew, but perhaps this is the wrong version? Seeing exception specification of overriding function is more lax than base version

Any ideas? Thanks!

Running cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release Cropped result: Linking CXX static library ../libs/libimagemanager.a [ 75%] Built target imagemanager Scanning dependencies of target ioplugin_tiff3D [ 76%] Building CXX object iomanager/plugins/tiff3D/CMakeFiles/ioplugin_tiff3D.dir/tiff3D.cpp.o In file included from /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/iomanager/plugins/tiff3D/tiff3D.cpp:1: /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/3rdparty/libtiff/tiffio.h:67:9: error: unknown type name 'size_t' typedef TIFF_SSIZE_T tmsize_t; ^ /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/build/3rdparty/libtiff/tif_config.h:121:22: note: expanded from macro 'TIFF_SSIZE_T'

define TIFF_SSIZE_T size_t

                 ^

In file included from /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/iomanager/plugins/tiff3D/tiff3D.cpp:2: In file included from /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/iomanager/plugins/tiff3D/tiff3D.h:4: In file included from /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/iomanager/plugins/tiff3D/../../IOPluginAPI.h:6: /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/iomanager/plugins/tiff3D/../../iomanager.config.h:250:24: error: exception specification of overriding function is more lax than base version virtual const char* what() const {return message.c_str();} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/exception:95:25: note: overridden virtual function is here virtual const char* what() const _NOEXCEPT; ^ In file included from /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/iomanager/plugins/tiff3D/tiff3D.cpp:2: In file included from /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/iomanager/plugins/tiff3D/tiff3D.h:4: In file included from /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/iomanager/plugins/tiff3D/../../IOPluginAPI.h:6: /Users/dangoodwin/Downloads/abria-TeraStitcher-7a58718/src/iomanager/plugins/tiff3D/../../iomanager.config.h:235:8: error: exception specification of overriding function is more lax than base version class exception : public std::exception ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/exception:94:13: note: overridden virtual function is here virtual ~exception() _NOEXCEPT; ^ 3 errors generated. make[2]: * [iomanager/plugins/tiff3D/CMakeFiles/ioplugin_tiff3D.dir/tiff3D.cpp.o] Error 1 make[1]: * [iomanager/plugins/tiff3D/CMakeFiles/ioplugin_tiff3D.dir/all] Error 2 make: *\ [all] Error 2

abria commented 9 years ago

Most likely a problem with the exception class definition. I will fix it and reply here when done :-). Thank you.

abria commented 9 years ago

I think I have fixed it. Please check the new version and let me know. Thank you!

dgoodwin208 commented 9 years ago

That worked! Bravo and thank you