Camera tracking integration

===========================

Fixed compilation issues with 32bit windows platforms.

Error was cause by alignment issues. It's known bug in Eigen community
which is caused by weirdeness of msvc compiler.

Disabling static alignment is the simpliest workaround,
but it could make things a bit slover.
This commit is contained in:
Sergey Sharybin
2011-06-14 18:59:36 +00:00
parent 02ace953a9
commit bb1e8c3c10
4 changed files with 17 additions and 1 deletions

View File

@@ -314,4 +314,8 @@ set(SRC
../../extern/Eigen3/Eigen/src/Cholesky/LLT.h
)
if(WIN32)
add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
endif()
blender_add_lib(bf_intern_itasc "${SRC}" "${INC}" "${INC_SYS}")

View File

@@ -7,5 +7,10 @@ sources += env.Glob('kdl/utilities/*.cpp')
incs = '. ../../extern/Eigen3'
env.BlenderLib ('bf_intern_itasc', sources, Split(incs), [], libtype=['intern','player'], priority=[20,100] )
defs = []
if env['PLATFORM'] == 'win32':
defs.append('EIGEN_DONT_ALIGN_STATICALLY')
env.BlenderLib ('bf_intern_itasc', sources, Split(incs), defs, libtype=['intern','player'], priority=[20,100] )

View File

@@ -58,4 +58,8 @@ if(WITH_IK_ITASC)
)
endif()
if(WIN32)
add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
endif()
blender_add_lib(bf_ikplugin "${SRC}" "${INC}" "${INC_SYS}")

View File

@@ -8,4 +8,7 @@ incs += ' ../blenkernel ../include ../ikplugin #/intern/itasc #/extern/Eigen3'
defs.append('WITH_IK_ITASC')
if env['PLATFORM'] == 'win32':
defs.append('EIGEN_DONT_ALIGN_STATICALLY')
env.BlenderLib ( 'bf_ikplugin', sources, Split(incs), defs, libtype=['core','player'], priority=[180, 190] )