[Digikam-devel] [Bug 267216] enable auto detection of libjpeg turbo under fedora 14 or later
monts
montosh.bisht at gmail.com
Thu Jun 9 19:29:30 BST 2011
https://bugs.kde.org/show_bug.cgi?id=267216
--- Comment #4 from monts <montosh bisht gmail com> 2011-06-09 20:29:22 ---
after a fresh git pull did see the CmakeLists.txt file is diffrent.
As suggested in the workaround the following code
# Extract version of libjpeg so that we can use the appropriate dir
# See bug #227313, #228483
FILE(READ "${JPEG_INCLUDE_DIR}/jpeglib.h" jpeglib_h_content)
FILE(READ "${JPEG_INCLUDE_DIR}/jconfig.h" jpeglib_h_content)
STRING(REGEX REPLACE ".*#define +JPEG_LIB_VERSION +([0-9]+).*" "\\1"
jpeglib_version "${jpeglib_h_content}")
MESSAGE(STATUS "Identified libjpeg version: ${jpeglib_version}")
cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=`kde4-config
--prefix` .. failed
did a minor change to the code ...
FILE(READ "${JPEG_INCLUDE_DIR}/usr/include/jpeglib.h" jpeglib_h_content)
FILE(READ "${JPEG_INCLUDE_DIR}/usr/include/jconfig.h" jpeglib_h_content)
STRING(REGEX REPLACE ".*#define +JPEG_LIB_VERSION +([0-9]+).*" "\\1"
jpeglib_version "${jpeglib_h_content}")
MESSAGE(STATUS "Identified libjpeg version: ${jpeglib_version}")
-know it is hard coded but works for now ...
cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=`kde4-config
--prefix` ..
no extra C/C++ flags passed this time, making a release build
- kipi-plugins 2.0.0-rc dependencies results <http://www.kipi-plugins.org/>
-- libjpeg library found.................... YES
Linking CXX executable digikam
[100%] Built target digikam
showfoto build size 352,432
digikam build size 6,446,367
JPEGs loads in image editor (verified by using 5 different camera make and
models)
To do ---
one more build to be be tested as by default, `make install' for jpeg-turbo
will install all the files in `/opt/libjpeg-turbo/bin',
`/opt/libjpeg-turbo/lib' etc.
You can specify an installation prefix other than `/opt/libjpeg-turbo' using
`--prefix',
for instance `--prefix=$HOME'.
build a custom libjpeg-turbo-1.1.1 with -prefix=/usr/local and test it out.
More testing need to be done to verify if this works on all Fedora 14 and
later.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list