Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't disable JPG support #53

Open
klausenbusk opened this issue Jan 29, 2017 · 0 comments
Open

Can't disable JPG support #53

klausenbusk opened this issue Jan 29, 2017 · 0 comments

Comments

@klausenbusk
Copy link

#52 (comment)

@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.

#52 (comment)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant