opencv static build failed (videoInput) (Feature #573)
Description
Hi,
Opencv fails to build when building in static mode because libvideoInput.a can't be find. I traced the problem to the modules\highgui\CMakeFiles.txt
changing this line:
target_link_libraries(${the_target} videoInput strmiids)
into:
target_link_libraries(${the_target} ${CMAKE_BINARY_DIR}/3rdparty/lib/libvideoInput.a strmiids)
will fix the problem.
Regards,
Tarek
Associated revisions
fixed problem with VideoInput on Windows when OpenCV compiled statically (ticket #573)
fixed problem with VideoInput on Windows when OpenCV compiled statically (ticket #573)
added ignore linker flags for opencv2_python
Merge pull request #573 from jet47:config-cross-compilation
History
Updated by Tarek Taha over 14 years ago
Actually it should be: ${CMAKE_SOURCE_DIR}/3rdparty/lib/libvideoInput.a
Replying to tarektaha:
Hi,
Opencv fails to build when building in static mode because libvideoInput.a can't be find. I traced the problem to the modules\highgui\CMakeFiles.txt
changing this line:
target_link_libraries(${the_target} videoInput strmiids)
into:
target_link_libraries(${the_target} ${CMAKE_BINARY_DIR}/3rdparty/lib/libvideoInput.a strmiids)will fix the problem.
Regards,
Tarek
Updated by Charles Twardy over 14 years ago
Possibly relevant, as it modifies the same line:
http://sourceforge.net/tracker/index.php?func=detail&aid=2939647&group_id=22870&atid=376677
Updated by Alexander Shishkov almost 14 years ago
- Status deleted (
Open)
Updated by Alexander Shishkov almost 14 years ago
fixed in 5255,5256 revisions
Updated by Alexander Shishkov almost 14 years ago
- Status set to Done
- (deleted custom field) set to fixed