ImageProcessingコンポーネント群のCMkefileの再生成¶
チケット#2704の作業メモ
DirectShowのビルド¶
2013/06/24の状況¶
- strmbase.libとstrmiids.libのリンクができていない
- CMakeLists.txtは以下の通り
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) project(baseclasses) include(FindDirectShow.cmake) file(GLOB SRCS ${DIRECTSHOW_BASECLASS_DIR}/*.cpp) file(GLOB HEADERS ${DIRECTSHOW_BASECLASS_DIR}/*.h) include_directories(${DIRECTSHOW_BASECLASS_DIR}) include_directories(${DIRECTSHOW_WINDOWSSDK_INCLUDE_DIR}) link_directories(${DIRECTSHOW_WINDOWSSDK_LIBRARY_DIRS}) message("DIRECTSHOW_WINDOWSSDK_LIBRARY_DIRS : ${DIRECTSHOW_WINDOWSSDK_LIBRARY_DIRS}") add_library(strmbase STATIC ${SRCS} ${HEADERS}) target_link_libraries(strmbase strmiids)
- cmakeは以下のbatファイルで実行
@set OPENCV_ROOT=C:\Program Files (x86)\OpenRTM-aist\1.1\OpenCV2.3 @set WindowsSdkDir= @for /F "tokens=1,2*" %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows" /v "CurrentInstallFolder"') DO ( if "%%i"=="CurrentInstallFolder" ( set "WindowsSdkDir=%%k" ) ) @set PATH="C:\Program Files (x86)\CMake 2.8\bin";"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN";"c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319";"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcpackages";%PATH% echo Generating SoLutio files / WorkSpace. cmake -G "Visual Studio 10"
- 実行結果は、strmbase.libは生成されるが、strmiids.libとのリンクができていない
>kawa.bat :略 >cmake -G "Visual Studio 10" -- DirectShow Library: C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib ←★FindDirectShow.cmake内での出力 DIRECTSHOW_WINDOWSSDK_LIBRARY_DIRS : C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib ←★CMakeLists.txtのmessage出力 -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Kawauchi/src/ImageProcessing/work/ ImageProcessing/opencv/components/DirectShowCam3/baseclasses_kawa0624