[openrtm-users 03246] Re: [openrtm.org contact form] FLIP componant opencv error.
河内のぶ
n.kawauchi @ aist.go.jp
2015年 12月 1日 (火) 17:12:06 JST
Hello,
Please try.
If OpenCV3 is ...
C:\opencv3\build
:
├── OpenCVConfig.cmake
├── x64
│ └── vc12
│ ├── bin
│ └── lib
└── x86
System environment variables "OpenCV_DIR" is ...
OpenCV_DIR=C:\opencv3\build
add to path
C:\opencv3\build\x64\vc12\bin\ or C:\opencv3\build\x86\vc12\bin\
Flip/src/CMakeLists.txt
-----
set(comp_srcs myFlip.cpp )
set(standalone_srcs myFlipComp.cpp)
find_package(OpenCV REQUIRED) ←★
:
include_directories(${OpenCV_DIR}/include) ←★
:
add_dependencies(${PROJECT_NAME} ALL_IDL_TGT)
target_link_libraries(${PROJECT_NAME} ${OPENRTM_LIBRARIES} ${OpenCV_LIBS}) ←★
add_executable(${PROJECT_NAME}Comp ${standalone_srcs}
${comp_srcs} ${comp_headers} ${ALL_IDL_SRCS})
target_link_libraries(${PROJECT_NAME}Comp ${OPENRTM_LIBRARIES} ${OpenCV_LIBS}) ←★
-----
Result of cmake. (ex. Visual Studio 12 2013 Win64)
-----
Found OpenCV 3.0.0 in C:/opencv3/build/x64/vc12/lib
You might need to add C:\opencv3\build\x64\vc12\bin to your PATH to be able to run your applications.
-----
Please register on the mailing list.
http://www.openrtm.org/mailman/listinfo/openrtm-users
http://openrtm.org/openrtm/forum/37
Best regards,
Nobu Kawauchi
On Tue, 1 Dec 2015 09:57:51 +0900
<venushkadharmasiri @ gmail.com> wrote:
> venushka sent a message using the contact form at http://www.openrtm.org/openrtm/en/contact.
>
> I'm venushka. Currently I'm doing my masters. I'm using openMRT to make a Flip component. But that component opencv is required. I tried opencv 3.0 and I link to include path to Flip / FlipComp but nothing works. Could you please mention me how to link opencv vision library to visual studio 2013 in order to work Flip componant. Thank you.
> _______________________________________________
> contact mailing list
> contact @ openrtm.org
> http://www.openrtm.org/mailman/listinfo/contact
More information about the openrtm-users
mailing list