How to create an executable.
Either load the .pro
file from Qt Creator, or use qmake
to build:
qmake my.pro
orqmake -qt=qt5 x.pro
: creates a makefile for projectx
make
ormake debug
ormake release
: build that makefile in debug, debug or release mode respectively./x
: start the created executablex
Either load the .pro
file from Qt Creator, or use qmake
to build:
- (if you use R)
./install_r_packages
- (if you use R)
module load R/3.3.1-foss-2016a
: load R version 3.3.1 module load GCC/5.1.0
: load g++ version 5.1.0module load Boost/1.61.0-foss-2016a
: load Boost 1.61.0module load Qt5
: loadqmake
qmake my.pro
: creates a makefile for projectx
make
ormake debug
ormake release
: build that makefile in debug, debug or release mode respectively./x
: start the created executablex
Problems that will occur:
- Peregrine does not know
g++-5
- Peregrine may give warnings that are escaleted to error
To solve this:
- Copy your
.pro
file to something like_peregrine.pro
- In that file, replace
g++-5
by justg++
- Remove the
-Werror
flag