DentonW / DevIL

Developer's Image Library (DevIL) is a cross-platform image library utilizing a simple syntax to load, save, convert, manipulate, filter, and display a variety of images with ease. It is highly portable and has been ported to several platforms.
http://openil.sourceforge.net/
GNU Lesser General Public License v2.1
446 stars 138 forks source link

Can't disable JPG support #53

Open klausenbusk opened 7 years ago

klausenbusk commented 7 years ago

https://github.com/DentonW/DevIL/issues/52#issuecomment-275383650

@abma great, I will test when I get home :) A side question, do you know how I disable ex. jpeg support? I tried cmake -DIL_NO_JPG=1 but it still links with libjpeg. I need to include DevIL at a static library, and so I want to reduce the amount of library I need to compile static.

https://github.com/DentonW/DevIL/issues/52#issuecomment-275915432

It still seems to link:

[kristian@arch-hp-laptop build]$ cmake -DIL_NO_JPG=1 .. -- The C compiler identification is GNU 6.3.1 -- The CXX compiler identification is GNU 6.3.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done DevIL, 64 bit compiler detected -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") -- Found PNG: /usr/lib64/libpng.so (found version "1.6.28") -- Found JPEG: /usr/lib64/libjpeg.so
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.0.7") -- Found Jasper: /usr/lib64/libjasper.so (found version "2.0.10") -- Could not find libSquish -- Found LCMS2: /usr/lib64/liblcms2.so

64 bit compiler detected

64 bit compiler detected -- Could NOT find cppunit (missing: CPPUNIT_LIBRARY CPPUNIT_INCLUDE_DIR) -- UnitTest disabled, cppunit wasn't found! -- Configuring done -- Generating done -- Build files have been written to: /home/kristian/Hentninger/DevIL/DevIL/build -- Build files have been written to: /home/kristian/Hentninger/DevIL/DevIL/build [kristian@arch-hp-laptop build]$ make Scanning dependencies of target IL [ 0%] Building CXX object src-IL/CMakeFiles/IL.dir/src/altivec_common.cpp.o [....] [100%] Linking CXX shared library ../lib/x64/libILUT.so [100%] Built target ILUT [kristian@arch-hp-laptop build]$ ldd lib/x64/*.so | grep libjpeg libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007fd6e0956000) libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f456d27f000) libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f3453b93000)

so I'm wondering if something is broken in the cmake script.