The CMake file for StreamingParaview doesn't work with DESTDIR under Linux in copying the QT libraries
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Do a "make install" with "DESTDIR" set and you will get many tar "Cannot chdir: No such file or directory" error messages when it tries to copy the various QT libraries over for StreamingParaview. The problem is in the following code in Applications/StreamingParaView/CMakeLists.txt which doesn't take DESTDIR into account
IF(NOT Q_WS_MAC)
FOREACH(qtlib ${QTLIBLIST})
IF (NOT WIN32)
#INSTALL(FILES {QT_
{qtlib}_LIBRARY_RELEASE} DESTINATION ${PV_INSTALL_LIB_DIR})
GET_FILENAME_COMPONENT(QT_LIB_DIR_tmp {QT_
{qtlib}_LIBRARY_RELEASE} PATH)
GET_FILENAME_COMPONENT(QT_LIB_NAME_tmp {QT_
{qtlib}_LIBRARY_RELEASE} NAME)
FILE(GLOB QT_LIB_LIST RELATIVE {QT_LIB_DIR_tmp} "
{QT_${qtlib}_LIBRARY_RELEASE}*")
INSTALL(CODE "
MESSAGE(STATUS "Installing ${CMAKE_INSTALL_PREFIX}/{PV_INSTALL_LIB_DIR}/
{QT_LIB_NAME_tmp}")
EXECUTE_PROCESS (WORKING_DIRECTORY ${QT_LIB_DIR_tmp}
COMMAND tar c ${QT_LIB_LIST}
COMMAND tar -xC ${CMAKE_INSTALL_PREFIX}/${PV_INSTALL_LIB_DIR})
" COMPONENT Runtime)
ELSE (NOT WIN32)
GET_FILENAME_COMPONENT(QT_DLL_PATH_tmp ${QT_QMAKE_EXECUTABLE} PATH)
INSTALL(FILES {QT_DLL_PATH_tmp}/
{qtlib}4.dll DESTINATION ${PV_INSTALL_BIN_DIR} COMPONENT Runtime)
ENDIF (NOT WIN32)
ENDFOREACH(qtlib) ENDIF(NOT Q_WS_MAC)
Note that the installation is not killed though, so you have to capture the output if you wish to see this error. Actually, I'm not sure I understand why we want a personal copy of these libraries in this case in the first place. Why not just use them as is?