On 2015-09-02 17:16 (+0200), Shlomi Fish wrote:
On Wed, 2 Sep 2015 17:02:36 +0200 Olof Bjarnason wrote:
On 2 September 2015 at 15:52, Shlomi Fish wrote:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake: 108 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_F AILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_A RGS) CMakeScripts/DefineDependsandFlags.cmake:184 (FIND_PACKAGE) CMakeLists.txt:95 (include)
You need to install the libjpeg's development package. What is your operating system, distribution, their versions, etc.?
I'm on Ubuntu 14.04.
I installed all packages mentioned on this page: http://wiki.inkscape.org/wiki/index.php/CompilingUbuntu#Installing_dependenc...
I also had to add "bzr" and "ccache", which is strictly required to build the trunk version of Inkscape.
Of course I also added "cmake" which was the whole point of trying out cmake instead of autogen+configure :).
I also tried installing all the additional packages mentioned on that wiki page too, but it did not help.
I do understand that I need the JPEG dev package, but if it JPEG lib is a strict requirement to build Inkscape, it should be listed on the wiki.
Well, it's the nature of documentation that it goes out-of-date, but you are right - it should be updated.
Or it could be "fixed" in Inkscape's Cmake config files - after all (or at least AFAIU) the JPEG dependency is not strictly required (it is used to detect the image resolution of imported JPEG images, but Inkscape's basic features will still work even if compiled without it).
JPEG is currently "optional" with autotools: https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/configu...
Please keep in mind that Cmake in trunk is not yet on par with the autotools build system - this is ongoing work, and patches are welcome (feel free to file bug reports about trunk build failures with Cmake, or for requests to migrate missing configure options from the autotools build system).
Regards, V