help > RE: Matlab toolbox build problem (missing tiff.h)
Aug 31, 2011  03:08 PM | Mark Schroeder
RE: Matlab toolbox build problem (missing tiff.h)
I'm not sure what to download/install/compile to make the mex compilation work.  Having the directories under v3d_main requires downloading the trunk, which I checked out with subversion.

v3d_main/common_lib/include is empty when I do this and the directory v3d_main/common_lib/lib (which is given in the mex calls with the switch -L../v3d_main/common_lib/lib) doesn't exist.  So something is clearly missing for compiling the IO toolbox.

I tried compiling v3d using the command "sh ./build.macx -m -B -j4", but there were a lot of errors about -arch or -Xarch_x86_64 not recognized from cc1plus and g++ respectively (compilation output attached).

I tried compiling the mex files with the default makeosmex_rawfile_io.m, but it failed with the same errors as if the rest of the v3d code wasn't there.  No library was generated called v3dtiff or libv3dtiff, though in the main README it says there should be and that seems to be something the mex compiler is looking for.

It would be great if you could list the minimal steps to install the matlab IO toolbox on a machine without any v3d code compiled on it.  If I need to compile v3d, it would be great if you could take a quick look at the error output.

I'm not sure if it's helpful, but here is some info about my g++ and computer.

g++ -v
Using built-in specs.
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.4.6/configure --prefix=/opt/local --build=x86_64-apple-darwin10 --enable-languages=c,c++,objc,obj-c++,java,fortran --libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.4 --with-gxx-include-dir=/opt/local/include/gcc44/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --enable-stage1-checking --enable-fully-dynamic-string
Thread model: posix
gcc version 4.4.6 (GCC)

uname -a
Darwin MN 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64

Thanks for helping me to compile the mex files.  I hope I'm not missing something obvious.
Attachment: v3dBuildOutput.txt

Threaded View

TitleAuthorDate
Hanchuan Peng Aug 29, 2011
mario negrello Feb 22, 2016
Zhi Zhou Feb 22, 2016
mario negrello Feb 22, 2016
Mark Schroeder Aug 29, 2011
Hanchuan Peng Aug 29, 2011
RE: Matlab toolbox build problem (missing tiff.h)
Mark Schroeder Aug 31, 2011
Hanchuan Peng Aug 31, 2011
Mark Schroeder Sep 1, 2011