Not able to run the examples in Ubuntu 14.04 from fresh installation

Hello,

I have followed the instructions in INSTALL.MD and it looks like there were no errors during installation. I am consistently getting the following errors when I try to run any of the examples. I have the same problem when I ‘make’ in a terminal or Codeblocks.

Any help will be appreciated. Thanks!

||=== Build: Debug in libopenFrameworks (compiler: GNU GCC Compiler) ===|
||=== Build: Debug in emptyExample (compiler: GNU GCC Compiler) ===|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFSetTagExtender@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFGetTagListCount@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFTileRowSize@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFReadDirectory@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFGetFieldDefaulted@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFSwabArrayOfLong@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFCurrentDirectory@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFLastDirectory@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFSetMode@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFIsTiled@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFIsByteSwapped@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFStripSize@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFSetSubDirectory@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFDefaultStripSize@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFReadRGBAImage@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference to_TIFFDataSize@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFComputeStrip@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFReadTile@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFMergeFieldInfo@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFSetField@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFWriteScanline@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFDataWidth@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFGetField@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFScanlineSize@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFFieldWithTag@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFWriteDirectory@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFTileSize@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFSetDirectory@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFReadEXIFDirectory@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to TIFFGetTagListEntry@LIBTIFF_4.0'| /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfreeimage.so||undefined reference toTIFFClose@LIBTIFF_4.0’|
/usr/lib/gcc/x86_64-linux-gnu/4.8/…/…/…/…/lib/libfreeimage.so||undefined reference to `TIFFClientOpen@LIBTIFF_4.0’|
||=== Build failed: 33 error(s), 0 warning(s) (0 minute(s), 6 second(s)) ===|

It looks like Ubuntu 14 does not install libtiff4, and instead uses libtiff5. I would say try adding it (apt-get install libtiff4 libtiff4-dev), but not sure if it will conflict with libtiff5.

thanks! the problem is that there seems to be no easy way to install libtiff4 on 14.04. i will see if i can get around this somehow. of course i am open to more help regarding this matter. :slight_smile:

in any case, the help is much appreciated.

I just upgraded to Xenial (16.04) and I’m seeing this same issue with undefined references and libtiff5. I’m not sure where the issue is, I have installed FreeImage-dev (3.17.0) and libtiff5-dev (4.0.6). I’ve tried using ofx 0.9.3 and also the current git source.

Is ofx not compatible with libtiff5?

I managed to solve this by:

  1. Uninstalling the ubuntu libfreeimage packages
  2. Downloading the libfreeimage source from FreeImage
  3. Noting the compile errors (e.g. Source/LibWebP/./src/dsp/dsp.upsampling_mips_dsp_r2.c:40:48: error: invalid character ' ' in raw string delimiter)
  4. Merging the changes in libwebp from git for files that don’t compile in #3
  5. Rebuilding ofx