opencv static build failed (videoInput) (Feature #573)


Added by Tarek Taha over 14 years ago. Updated almost 14 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:Alexander Shishkov % Done:

0%

Category:build/install
Target version:-
Difficulty: Pull request:

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

Revision 33e71127
Added by Alexander Shishkov almost 14 years ago

fixed problem with VideoInput on Windows when OpenCV compiled statically (ticket #573)

Revision 128d0305
Added by Alexander Shishkov almost 14 years ago

fixed problem with VideoInput on Windows when OpenCV compiled statically (ticket #573)
added ignore linker flags for opencv2_python

Revision 6ce51d88
Added by Andrey Kamaev about 12 years ago

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 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

Also available in: Atom PDF