Tried a few other things. Try this to clear up the GDL issue:
In CMakeScripts/DefineDependsandFlags.cmake changed
if("${GDL_3_6_FOUND}") message("Using GDL 3.6 or higher")
set (WITH_GDL_3_6 ON)
endif()
to
if("${GDL_3_6_FOUND}") message("Using GDL 3.6 or higher") add_definitions(-DWITH_GDL_3_6)
set (WITH_GDL_3_6 ON)
endif()
For liblcms vs liblcms2, on a system which has both, the cmake output says:
-- Found LCMS2: /usr/lib/i386-linux-gnu/liblcms2.so
ENABLE_LCMS: ON
and it dutifully puts on -llcms2 where -llcms is apparently required. CMakeScripts/Modules has both FindLCMS2.cmake and FindLCMS.cmake and CMakeScripts/DefineDependsandFlags.cmake tests for
LCMS2 first and goes with that if it finds it. However, src/color-profile.cpp has a section
like
#if HAVE_LIBLCMS1
#elif HAVE_LIBLCMS2
#endif
and the compile is definitely using the first clause even though Cmake says the 2nd version is found and it takes precedence:
Tried a few other things. Try this to clear up the GDL issue:
In CMakeScripts/ DefineDependsan dFlags. cmake changed
if( "${GDL_ 3_6_FOUND} ")
message( "Using GDL 3.6 or higher")
set (WITH_GDL_3_6 ON)
endif()
to
if( "${GDL_ 3_6_FOUND} ")
message( "Using GDL 3.6 or higher")
add_definition s(-DWITH_ GDL_3_6)
set (WITH_GDL_3_6 ON)
endif()
For liblcms vs liblcms2, on a system which has both, the cmake output says:
-- Found LCMS2: /usr/lib/ i386-linux- gnu/liblcms2. so
ENABLE_LCMS: ON
and it dutifully puts on -llcms2 where -llcms is apparently required. CMakeScripts/ Modules has both FindLCMS2.cmake and FindLCMS.cmake and CMakeScripts/ DefineDependsan dFlags. cmake tests for profile. cpp has a section
LCMS2 first and goes with that if it finds it. However, src/color-
like
#if HAVE_LIBLCMS1
#elif HAVE_LIBLCMS2
#endif
and the compile is definitely using the first clause even though Cmake says the 2nd version is found and it takes precedence:
if(ENABLE_LCMS) package( LCMS2) INCLUDE_ DIRS}) s(${LCMS2_ DEFINITIONS} )
find_package( LCMS)
if(LCMS_ FOUND)
list( APPEND INKSCAPE_INCS_SYS ${LCMS_ INCLUDE_ DIRS})
list( APPEND INKSCAPE_LIBS ${LCMS_LIBRARIES})
add_ definitions( ${LCMS_ DEFINITIONS} )
set( ENABLE_ LCMS OFF)
find_
if(LCMS2_FOUND)
list(APPEND INKSCAPE_INCS_SYS ${LCMS2_
list(APPEND INKSCAPE_LIBS ${LCMS2_LIBRARIES})
add_definition
set (HAVE_LIBLCMS2 ON)
else()
set (HAVE_LIBLCMS1 ON)
else()
endif()
endif()
endif()
Added these as the 2nd and 3rd lines in the preceding, just in case something earlier
was setting them to default states:
unset( HAVE_LIBLCMS1) HAVE_LIBLCMS2)
unset(
cmake ..
make
the dock problem was resolved but the final lcms1 vs. lcms2 link issue is still there.