B
Linking of blenderplayer was failing with unresolved symbols (initVideoTexture) when building without FFMPEG. Needs testing with SCons and Makefiles.
This commit is contained in:
@@ -70,5 +70,9 @@ SET(INC
|
|||||||
${PYTHON_INC}
|
${PYTHON_INC}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF(WITH_FFMPEG)
|
||||||
|
ADD_DEFINITIONS(-DWITH_FFMPEG)
|
||||||
|
ENDIF(WITH_FFMPEG)
|
||||||
|
|
||||||
BLENDERLIB_NOLIST(gp_ghost "${SRC}" "${INC}")
|
BLENDERLIB_NOLIST(gp_ghost "${SRC}" "${INC}")
|
||||||
#env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = [], libtype='player',priority=0, compileflags=cflags)
|
#env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = [], libtype='player',priority=0, compileflags=cflags)
|
||||||
|
@@ -686,8 +686,9 @@ bool GPG_Application::startEngine(void)
|
|||||||
initGameKeys();
|
initGameKeys();
|
||||||
initPythonConstraintBinding();
|
initPythonConstraintBinding();
|
||||||
initMathutils();
|
initMathutils();
|
||||||
|
#ifdef WITH_FFMPEG
|
||||||
initVideoTexture();
|
initVideoTexture();
|
||||||
|
#endif
|
||||||
// Set the GameLogic.globalDict from marshal'd data, so we can
|
// Set the GameLogic.globalDict from marshal'd data, so we can
|
||||||
// load new blend files and keep data in GameLogic.globalDict
|
// load new blend files and keep data in GameLogic.globalDict
|
||||||
loadGamePythonConfig(m_pyGlobalDictString, m_pyGlobalDictString_Length);
|
loadGamePythonConfig(m_pyGlobalDictString, m_pyGlobalDictString_Length);
|
||||||
|
@@ -82,3 +82,6 @@ CPPFLAGS += -I$(NAN_STRING)/include
|
|||||||
CPPFLAGS += -I$(NAN_GHOST)/include
|
CPPFLAGS += -I$(NAN_GHOST)/include
|
||||||
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
|
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
|
||||||
|
|
||||||
|
ifeq ($(WITH_FFMPEG), true)
|
||||||
|
CPPFLAGS += -DWITH_FFMPEG
|
||||||
|
endif
|
||||||
|
@@ -49,5 +49,7 @@ cflags = []
|
|||||||
if env['OURPLATFORM']=='win32-vc':
|
if env['OURPLATFORM']=='win32-vc':
|
||||||
cflags = ['/GR']
|
cflags = ['/GR']
|
||||||
|
|
||||||
|
if env['WITH_BF_FFMPEG']:
|
||||||
|
defs += ' WITH_FFMPEG'
|
||||||
|
|
||||||
env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = [], libtype='player',priority=0, compileflags=cflags)
|
env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = [], libtype='player',priority=0, compileflags=cflags)
|
||||||
|
Reference in New Issue
Block a user