Kompilere CMake p Scientific Linux 7

https://cmake.org/

# Legger inn Qt 5.10 i environment
export PATH=/opt/qt/5.10.0/gcc_64/bin:$PATH
export LD_LIBRARY_PATH=/opt/qt/5.10.0/gcc_64/lib:$LD_LIBRARY_PATH

Henter ned og kompilerer nyeste versjon
d=/tmp/cmake ; mkdir -p $d ; cd $d 
wget -O - https://cmake.org/files/v3.10/cmake-3.10.2.tar.gz | tar zxf -
cd cmake-*
./configure --qt-qmake=/opt/qt/5.10.0/gcc_64/bin/qmake --prefix=/opt/cmake-3.10.2
gmake
make test
Tester som feilet
...
        Start 152: Qt4And5AutomocReverse
152/488 Test #152: Qt4And5AutomocReverse ............................***Failed    0.30 sec
...
99% tests passed, 1 tests failed out of 488

Label Time Summary:
Label1    =   0.06 sec*proc (1 test)
Label2    =   0.06 sec*proc (1 test)

Total Test time (real) = 1824.95 sec

The following tests FAILED:
   152 - Qt4And5AutomocReverse (Failed)
Errors while running CTest
make: *** [test] Error 8

Installer til /opt/cmake... som root kjr
d=/tmp/cmake ; cd $d/cmake*
make install

Bruk
export PATH=/opt/cmake-3.10.2/bin:$PATH
Topic revision: r2 - 2018-02-08, TheodorIvesdal
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback