728x90
반응형
- msys2를 설치 후 다음과 같은 항목들을 설치합니다.
pacman -Syu bash pacman pacman-mirrors msys2-runtime base-devel gcc make cmake git wget p7zip
- github에서 xlnt 소스코드를 받습니다.
git clone https://github.com/tfussell/xlnt.git
- xlnt 경로에서 빌드를 수행합니다.
cd xlnt
cmake -G "Unix Makefiles"
make
-
cmake 옵션은 -G "MSYS Makefiles" 가 될 수도 있습니다. cmake --help를 통해 지원하는 항목을 확인하세요.
-
빌드가 성공하였다면, 테스트 프로그램을 실행합니다.
cd test
cp ../source/msys-xlnt-1.2.dll .
./xlnt.test
-
*.dll 이 있는 경로를 실행 경로로 설정하였다면, dll 을 테스트 경로로 복사하지 않아도 됩니다.
-
다음과 같은 결과가 나오면 성공입니다.
......................................................................................................................................................................................................................................................................
-
하나의 점(dot)은 단위 테스트를 성공하였음을 의미합니다.
-
만약 테스트 중 실패가 생기면 해당 메시지를 전시합니다.
-
필자가 수행한 테스트 환경은 다음과 같습니다. (테스트 일자는 18년 3월말)
-
물론 테스트 환경과 코드가 다르면 결과가 다르게 나올 수 있습니다.
default-user@DESKTOP-826T7L9 MSYS /d/workspace/github/xlnt/tests
$ uname -a
MSYS_NT-10.0 DESKTOP-826T7L9 2.10.0(0.325/5/3) 2018-02-09 15:25 x86_64 Msys
default-user@DESKTOP-826T7L9 MSYS /d/workspace/github/xlnt/tests
$ gcc --version
gcc (GCC) 6.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
default-user@DESKTOP-826T7L9 MSYS /d/workspace/github/xlnt/tests
$ cmake --version
cmake version 3.10.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
default-user@DESKTOP-826T7L9 MSYS /d/workspace/github/xlnt/tests
$ make --version
GNU Make 4.2.1
x86_64-pc-msys 빌드
Copyright (C) 1988-2016 Free Software Foundation, Inc.
라이선스 GPLv3+: GNU GPL 버전 3 또는 이후 <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
- xlnt (6) Qxlnt 사용해 보기 http://j2doll.tistory.com/587
728x90
반응형
'C C++' 카테고리의 다른 글
[C++] unique_ptr, shared_ptr, weak_ptr (0) | 2018.09.13 |
---|---|
gcc(g++)에서 지원하는 C++ STL version 확인하기 (0) | 2018.08.20 |
C++ 람다(lambda) 표현식 이해와 활용 예제 (0) | 2018.02.12 |
Gammaray binary for Qt 5.10/MingW(32bit) (0) | 2018.01.15 |
GammaRay : Qt를 위한 Spy++ (0) | 2018.01.10 |