added new version of ffmpeg binary for compilation on Mingw64/MSVC64

pull/13383/head
Alexander Shishkov 14 years ago
parent 2e13a4cd52
commit bce15cb6dd
  1. BIN
      3rdparty/lib/libavcodec64.a
  2. BIN
      3rdparty/lib/libavcore64.a
  3. BIN
      3rdparty/lib/libavdevice64.a
  4. BIN
      3rdparty/lib/libavformat64.a
  5. BIN
      3rdparty/lib/libavutil64.a
  6. BIN
      3rdparty/lib/libgcc64.a
  7. BIN
      3rdparty/lib/libmingwex64.a
  8. BIN
      3rdparty/lib/libswscale64.a
  9. BIN
      3rdparty/lib/libwsock3264.a
  10. 4
      modules/CMakeLists.txt
  11. 2
      modules/ffmpeg/CMakeLists.txt
  12. 13
      modules/ffmpeg/ffopencv.cpp

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -11,9 +11,7 @@ add_subdirectory(features2d)
add_subdirectory(flann)
if(MSVC OR MINGW)
if(NOT CMAKE_CL_64)
add_subdirectory(ffmpeg)
endif()
add_subdirectory(ffmpeg)
endif()
if(BUILD_TESTS)

@ -26,8 +26,10 @@ if (NOT MSVC)
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/libavdevice64.a
${CMAKE_SOURCE_DIR}/3rdparty/lib/libavutil64.a
${CMAKE_SOURCE_DIR}/3rdparty/lib/libswscale64.a
${CMAKE_SOURCE_DIR}/3rdparty/lib/libavcore64.a
libws2_32.a)
else()
target_link_libraries(${the_target} ${CMAKE_SOURCE_DIR}/3rdparty/lib/libavformat.a

@ -531,21 +531,30 @@ That's all there is to it!
#if !defined(_MT) || defined(_DLL)
extern "C" { __declspec(dllexport) unsigned int __lc_codepage = 0; }
#endif
#ifdef _M_X64
#pragma comment(lib, "libgcc64.a")
#pragma comment(lib, "libmingwex64.a")
#else
#pragma comment(lib, "libgcc_.a")
#pragma comment(lib, "libmingwex_.a")
#pragma comment(lib, "libcoldname_.a")
#endif
#ifdef _M_X64
#pragma comment(lib, "libavformat64.a")
#pragma comment(lib, "libavcodec64.a")
#pragma comment(lib, "libavutil64.a")
#pragma comment(lib, "libavcore64.a")
#pragma comment(lib, "libswscale64.a")
#pragma comment(lib, "libwsock3264.a")
#else
#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")
#endif
#endif

Loading…
Cancel
Save