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

This commit is contained in:
Alexander Shishkov 2011-06-14 08:06:55 +00:00
parent 2e13a4cd52
commit bce15cb6dd
12 changed files with 14 additions and 5 deletions

Binary file not shown.

BIN
3rdparty/lib/libavcore64.a vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
3rdparty/lib/libgcc64.a vendored Normal file

Binary file not shown.

BIN
3rdparty/lib/libmingwex64.a vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
3rdparty/lib/libwsock3264.a vendored Normal file

Binary file not shown.

View File

@ -11,10 +11,8 @@ add_subdirectory(features2d)
add_subdirectory(flann) add_subdirectory(flann)
if(MSVC OR MINGW) if(MSVC OR MINGW)
if(NOT CMAKE_CL_64)
add_subdirectory(ffmpeg) add_subdirectory(ffmpeg)
endif() endif()
endif()
if(BUILD_TESTS) if(BUILD_TESTS)
add_subdirectory(ts) add_subdirectory(ts)

View File

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

View File

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