janelia-flyem/buildem — pull request #25 by ukoethe (2013-12-11 18:28:12+00:00)
Title: added missing DEPENDS specs for qt4

In qt4.cmake, Qt is configured to use pre-installed shared libraries for tiff, png and jpeg to prevent qt from compiling private versions of these libs. The idea is that the libs shall be taken from $BUILDEM_DIR/lib, **not** from the OS. However, the library packages were not mentioned in the DEPENDS clause of ExternalProject_Add(), and qt happened to be compiled before tiff (maybe for alphabetic reasons), causing the build to fail. Jens worked around this failure by installing libtiff-dev, but this led to a shared library conflict at execution time, causing a strange crash.

As a side note: this happened to me several times because the dependency specification in buildem is redundant. I added issue https://github.com/janelia-flyem/buildem/issues/24 to address this problem.