글

라벨이 Cmake인 게시물 표시

OpenCV + Qt framework 설치 in Windows

이미지
1. OpenCV 설치 or Qt 설치 단순하게 OpenCV 설치 혹은 QT 설치를 원한다면 http://docs.opencv.org/2.4/doc/tutorials/introduction/table_of_content_introduction/table_of_content_introduction.html#table-of-content-introduction     http://www.qt.io/ 위의 두 링크를 참조하기 바랍니다. 하지만, opencv에서 qt framework를 사용하여 추가적인 이점을 꾀하신다면 아래의 과정을 밟아주세요. 아래에서 보는 바와 같이 Qt framework를 사용하면 이점이 있다고 합니다. 이점에 관련된 내용은 highgui에서 찾아 보시고 저는 설치방법에 대해서만 설명하겠습니다. OpenCV offers a somewhat fancier and more useful graphical user interface, than the default one by using the Qt framework . For a quick overview of what this has to offer look into the documentations highgui module, under the Qt New Functions section. Version 4.6 or later of the framework is required. 2. OpenCV + Qt  framework 설치 opencv 혹은 qt를 따로 설치하는 것이 아닌 opencv에서 qt framework를 사용하고 싶다면 아래의 순차대로 설치하면 됩니다. (Linux에서는 참 쉬운데 ㅜ_ㅠ windows에서는 꽤나 고생했습니다.) 2.1 CMake 설치 https://cmake.org/ 위의 링크에서 설치하자. 자세한 내용은 생략한다. * 필요에 따라 path 설정을 해주시기 바랍니다. 2.2 Min...

Cmake setting for Boost library

Boost library를 위한 Cmake 설정 Boost library 는 대부분이 헤더만 있어도 사용이 가능하지만 아래와 같이 몇몇개(thread system와 같은 library)는 링크시켜 주어야 한다.   # cmake 최소 요구 버전 2.8 cmake_minimum_required(VERSION 2.8) set(CMAKE_CXX_FLAGS "-std=c++11") project( project ) find_package(Boost REQUIRED thread system) # 프로젝트 디렉터리의 파일을 SRC_LIST에 추가 aux_source_directory(. SRC_LIST) # project name의 executable을 생성 # SRC_LIST를 컴파일 add_executable( ${PROJECT_NAME} ${SRC_LIST} ) TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${Boost_LIBRARIES} )