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:
parent
db4b7584fb
commit
340a47dc66
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user