On 02/13/15 08:26, Tobias Ellinghaus wrote: > Am Donnerstag, 12. Februar 2015, 15:11:42 schrieb Urs Schütz: >> I'm not a programmer, and know nothing about cmake. With my limited >> knowledge I looked at the sources. >> src/CMakeLists.txt line 568 and following, if/then/else: >> The check for presence of CUPS is not executed, because BUILD_PRINT is >> disabled. This explains why there is no output about missing cups during >> the first phase of my compile. >> >> I did not find where BUILD_PRINT is disabled, grepping over the whole >> source for BUILD_PRINT did not give me any clues. Why is it disabled by >> default? The test for CUPS in src/CMakeLists.txt is never running... >> >> Just to check the build, I edited line 34 of build/CMakeCache.txt >> from BUILD_PRINT:BOOL=OFF to BUILD_PRINT:BOOL=ON. >> Darktable is now building with the print mode, and I'm able to print to >> my CUPS pdf printer. >> I understand that this is a very ugly hack, and not intended by the >> programmers. >> >> Is there something wrong with the checks in src/CMakeLists.txt, line >> 568, and following? >> >> Very strange, as it seems that others can build the print mode without >> troubles (scratching head). > > That's why I asked for cmake output with a clean build/. CMake scans libraries > when run and caches the results. When you ran it the first time you missed the > cups devel package, so CMake noticed that and set BUILD_PRINT to Off. > Subsequent runs of cmake reused these cached values. > > Tobias >
OK, I did not know that CMake has cache. In the future I will remove build/ before running ./build.sh. Thanks for the information. Urs ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Darktable-users mailing list Darktable-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/darktable-users