Cannot build freeimage from source on ubuntu xenial

Asked by Ofir Avni

Trying to build free image from source on ubuntu 16.04.

Installed the source with apt (apt source freeimage), the output seems ok (attached below).
Installed all the dependencies.
When trying to make, got the following error:

make -f Makefile.gnu
make[1]: Entering directory '/home/ofir/freeimage/freeimage-3.17.0+ds1'
g++ -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -D__ANSI__ -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit -ISource/LibJPEG -ISource/LibPNG -ISource/LibTIFF4 -ISource/ZLib -ISource/LibOpenJPEG -ISource/OpenEXR -ISource/OpenEXR/Half -ISource/OpenEXR/Iex -ISource/OpenEXR/IlmImf -ISource/OpenEXR/IlmThread -ISource/OpenEXR/Imath -ISource/OpenEXR/IexMath -ISource/LibRawLite -ISource/LibRawLite/dcraw -ISource/LibRawLite/internal -ISource/LibRawLite/libraw -ISource/LibRawLite/src -ISource/LibWebP -ISource/LibJXR -ISource/LibJXR/common/include -ISource/LibJXR/image/sys -ISource/LibJXR/jxrgluelib -I/usr/include/jxrlib -I/usr/include/openjpeg-2.1 -I/usr/include/libpng12 -I/usr/include/libraw -I/usr/include/x86_64-linux-gnu -I/usr/include/OpenEXR -c Source/FreeImage/PluginG3.cpp -o Source/FreeImage/PluginG3.o
Source/FreeImage/PluginG3.cpp:23:33: fatal error: ../LibTIFF4/tiffiop.h: No such file or directory
compilation terminated.
Makefile.gnu:63: recipe for target 'Source/FreeImage/PluginG3.o' failed
make[1]: *** [Source/FreeImage/PluginG3.o] Error 1
make[1]: Leaving directory '/home/ofir/freeimage/freeimage-3.17.0+ds1'
Makefile:21: recipe for target 'default' failed
make: *** [default] Error 2

Am I doing something wrong?
Thanks.

The output of apt source freeimage:
NOTICE: 'freeimage' packaging is maintained in the 'Git' version control system at:
https://anonscm.debian.org/git/debian-science/packages/freeimage.git
Please use:
git clone https://anonscm.debian.org/git/debian-science/packages/freeimage.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 1,303 kB of source archives.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/universe freeimage 3.17.0+ds1-2ubuntu0.1 (dsc) [2,800 B]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/universe freeimage 3.17.0+ds1-2ubuntu0.1 (tar) [1,277 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/universe freeimage 3.17.0+ds1-2ubuntu0.1 (diff) [23.0 kB]
Fetched 1,303 kB in 5s (219 kB/s)
gpgv: Signature made IST 18:28:01 2019 מרץ 28 ה' using RSA key ID 3D285D7D
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./freeimage_3.17.0+ds1-2ubuntu0.1.dsc
dpkg-source: info: extracting freeimage in freeimage-3.17.0+ds1
dpkg-source: info: unpacking freeimage_3.17.0+ds1.orig.tar.xz
dpkg-source: info: unpacking freeimage_3.17.0+ds1-2ubuntu0.1.debian.tar.xz
dpkg-source: info: applying Disable-vendored-dependencies.patch
dpkg-source: info: applying Use-system-dependencies.patch
dpkg-source: info: applying Fix-macro-redefinition-for-64-bit-integer-types.patch
dpkg-source: info: applying Fix-compatibility-with-system-libpng.patch
dpkg-source: info: applying Fix-doxygen-output-settings.patch
dpkg-source: info: applying Disable-usage-of-HTML-timestamps-in-doxygen.patch
dpkg-source: info: applying Fix-unsafe-usage-of-printf-in-testsuite.patch
dpkg-source: info: applying Disable-testing-of-JPEG-transform.patch
dpkg-source: info: applying Disable-testing-of-JXR-MemIO.patch
dpkg-source: info: applying Fix-missing-cstdio-include-in-testsuite.patch
dpkg-source: info: applying Fix-endianness-detection.patch
dpkg-source: info: applying Fix-CVE-2015-0852.patch
dpkg-source: info: applying Fix-encoding-of-fi-header.patch
dpkg-source: info: applying Fix-CVE-2016-5684.patch

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu freeimage Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ofir Avni (ofiravni) said :
#1

Ok, I managed to build with dpkg-buildpackage.
But shouldn't the regular make work also?

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.