updated ffmpeg to 0.6.0
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
project(opencv_ffmpeg)
|
||||
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
include_directories("${CMAKE_SOURCE_DIR}/3rdparty/include")
|
||||
include_directories(
|
||||
"${CMAKE_SOURCE_DIR}/3rdparty/include"
|
||||
"${CMAKE_SOURCE_DIR}/3rdparty/include/ffmpeg_"
|
||||
)
|
||||
include_directories(
|
||||
"${CMAKE_SOURCE_DIR}/modules/highgui/src"
|
||||
"${CMAKE_SOURCE_DIR}/modules/core/include"
|
||||
@@ -17,18 +20,20 @@ add_dependencies(${the_target} opencv_core)
|
||||
target_link_libraries(${the_target} opencv_core)
|
||||
|
||||
if (NOT MSVC)
|
||||
target_link_libraries(${the_target}
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lib/libgcc_.a
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lib/libmingwex_.a)
|
||||
#target_link_libraries(${the_target}
|
||||
# ${CMAKE_SOURCE_DIR}/3rdparty/lib/libgcc_.a
|
||||
# ${CMAKE_SOURCE_DIR}/3rdparty/lib/libmingwex_.a)
|
||||
if(WIN32 AND MINGW64)
|
||||
target_link_libraries(${the_target} ${CMAKE_SOURCE_DIR}/3rdparty/lib/libavformat64.a
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lib/libavcodec64.a
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lib/libavutil64.a
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lib/libswscale64.a
|
||||
libws2_32.a)
|
||||
else()
|
||||
target_link_libraries(${the_target} ${CMAKE_SOURCE_DIR}/3rdparty/lib/libavformat.a
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lib/libavcodec.a
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lib/libavutil.a
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lib/libswscale.a
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lib/libwsock32_.a)
|
||||
endif()
|
||||
endif ()
|
||||
|
@@ -541,6 +541,7 @@ extern "C" { __declspec(dllexport) unsigned int __lc_codepage = 0; }
|
||||
#pragma comment(lib, "libavformat.a")
|
||||
#pragma comment(lib, "libavcodec.a")
|
||||
#pragma comment(lib, "libavutil.a")
|
||||
#pragma comment(lib, "libswscale.a")
|
||||
#endif
|
||||
#pragma comment(lib, "libwsock32_.a")
|
||||
|
||||
|
Reference in New Issue
Block a user