QT를 사용하기 위해 다음과 같은 절차를 진행했다.
이는 다음의 사이트들을 참고하였으며, 혹 부족한 내용이 있으면 이를 참조하자!!
http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/
또한 설치하는 시간이 오래 걸리기 때문에, 여유 있을 때 작업하기를 추천한다.
1. QT Compile을 위해 필요한 Visual Studio SDK를 확인 : http://qt-project.org/doc/qt-4.8/requirements-win.html
2. Perl 다운로드 및 설치 : http://www.perl.org/get.html
3. QT 소스 코드 다운로드 : http://qt-project.org/downloads
이곳에 들어간 후 Download에 들어가면 자신이 원하는 버전을 받을 수 있다.
4. QT source 압축 풀기 : C:\QT\4.8.4
5. 시스템 설정에서 환경 변수 등록:
환경 변수 등록은 다음의 사이트를 참고(http://blog.daum.net/jisoo_mind/7605102)
QTDIR=C:\QT\4.8.4
QMAKESPEC=win32-msvc2008
6. Path 환경변수에 등록
%QTDIR%\bin
7. jom 다운로드 : http://qt-project.org/wiki/jom
8. jom 압축 풀기 : C\QT\jom
9. Start Visual Studio 2008에 컴파일 하기
시작->Visual Studio 2008->Visual Studio Tools->Visual Studio Command Prompt
>> cd C:\QT\4.8.4
>> configure -debug-and-release -opensource -platform win32-msvc2008
>> ..\jom\jom.exe -j N(CPU core 수)
하지만, 이대로 접근하면 Error가 발생할 수 있으니, 다음의 블로그를 참고해서 해결하였다.
(http://www.korone.net/bbs/board.php?bo_table=qt_qna&wr_id=17785)
또는 다음의 방법으로 해결할 수 있다.
그리고 설치 시 다음의 오류가 났었는데 이는 이곳을 보고 해결하자. (http://milennium9.blog.me/20156810342)
mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file
10. Visual Studio Add-in 1.1.11 for Qt4 다운로드 및 설치 : http://qt-project.org/downloads
11. Visual studio 실행
'Programing > C++' 카테고리의 다른 글
CMake, Visual Studio 2008, osgWorks 설치하기 (0) | 2013.05.19 |
---|---|
CMake, Visual Studio 2008, DCMTK 설치하기 (0) | 2013.05.19 |
Boostpro 설치 - 윈도우즈 (0) | 2013.05.14 |
Random Function C++ (0) | 2013.01.19 |
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup (0) | 2011.03.09 |