(opkg가 설치된) Synology NAS(DS216+II)에 cmake 설치
ipkg에서는 cmake가 지원되는지 알 수 없지만, 어쨌든 gcc 컴파일러 문제로 ipkg를 버리고 opkg를 설치한 탓에,
Synology NAS(DS216+II)에 gcc 컴파일러 설치
; https://www.sysnet.pe.kr/2/0/11705
Synology NAS(DS216+II)에서 실행한 gcc의 Segmentation fault
; https://www.sysnet.pe.kr/2/0/11706
opkg에는 기본적으로 cmake 패키지가 없습니다.
$ opkg install cmake-devel
대신 직접 빌드를 하면 됩니다.
package request: cmake
; https://github.com/Entware/Entware-ng/issues/672
우선 gcc와 make를 설치하고,
$ opkg install gcc make
cmake를 다운로드하고,
$ wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
압축을 푼 후 빌드를 합니다.
$ tar zxvf cmake-3.12.3.tar.gz && cd cmake-3.12.3
$ export CXXFLAGS="$CFLAGS $LDFLAGS"
$ ./bootstrap
$ make
$ make install
시간이 좀 많이 걸리는군요. ^^ 어쨌든 빌드는 깨끗하고 실행도 잘 됩니다.
$ cmake
Usage
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.
Run 'cmake --help' for more information.
[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]