From Wang Rui, "The osgdb_ffmpeg plugin may not work with latest ffmpeg windows sdk and will say "The procedure entry point xxx could not be located in xxx.dll" instead. The following link describes the reason (maybe a certain optimization problem of the VS compiler):

http://forum.videolan.org/viewtopic.php?f=32&t=98097

After adding the /OPT:NOREF, the problem has gone.

"
This commit is contained in:
Robert Osfield 2013-06-24 08:19:34 +00:00
parent db4b7584fb
commit 340a47dc66

View File

@ -51,6 +51,9 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") STRING(REGEX REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
ENDIF() ENDIF()
#### end var setup ### #### end var setup ###
SETUP_PLUGIN(ffmpeg ffmpeg) SETUP_PLUGIN(ffmpeg ffmpeg)
IF(MSVC)
SET_TARGET_PROPERTIES(${TARGET_DEFAULT_PREFIX}ffmpeg PROPERTIES LINK_FLAGS "/OPT:NOREF")
ENDIF(MSVC)