I am trying to install RStudio 1.1.456 on our HPC cluster. We already provide two Qt installations installed in non-standard locations.
/cluster/apps/gcc-4.8.5/qt-4.8.6-aewo2wahtbrgl6lkng7agqta5vtpxvrt
/cluster/apps/gcc-4.8.5/qt-5.5.1-zz5ej2v42ayd4hwjvkkihbhfoxxincg4
The corresponding modules set the variables
- $PATH
- $CMAKE_PREFIX_PATH
- $LIBRARY_PATH
- $LD_LIBRARY_PATH
- $PKG_CONFIG_PATH
- $CPATH
- $QTDIR
I run ccmake with the following options:
ccmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE='-O2 -g -DNDEBUG -fPIC -ftree-vectorize -march=core-avx2 -mavx2' -DCMAKE_C_FLAGS_RELEASE='-O2 -g -DNDEBUG -fPIC -ftree-vectorize -march=core-avx2 -mavx2' -DCMAKE_INSTALL_PREFIX=/cluster/apps/rstudio/1.1.456/x86_64 -DRSTUDIO_TARGET=desktop -DCMAKE_VERBOSE_MAKEFILE=ON ..
When pressing "c" for configure, then cmake automatically detects BOOST and R, but there is not a single variable present for Qt. Usually (when compiling other software that depends on Qt and uses cmake) cmake does not have any issue detecting the Qt installation.
After configuring I press "g" to generate the sources to be compiled. Finally when running make -j 36 install, the compilation runs through without giving any error message. The resulting installation does not have any rstudio executable (I think this is due to not being able to detect Qt).
What CMake variables can be used to specify the location of the Qt installation ?
Best regards
Sam