[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/extern
Makefile blender/extern/bullet Makefile
blender/extern/bullet/Bullet Makefile
blender/extern/bullet/BulletDynamics Makefile blender/source
Makefile nan_compile.mk nan_definitions.mk blende
Erwin Coumans
erwin at erwincoumans.com
Thu Aug 18 14:00:56 CEST 2005
Hi,
MinGW might not define the __forceinline,
See blender/extern/bullet/LinearMath/SimdScalar.h
Can you try adding a few lines so MinGW uses inline, instead of
__forceinline ?
Can you modify the defines in SimdScalar.h so it will look like:
#ifdef WIN32
//extra lines for MinGW/msys
#ifdef __MINGW32__
#define SIMD_FORCE_INLINE inline
#else
#define SIMD_FORCE_INLINE __forceinline
#endif
//#define ATTRIBUTE_ALIGNED16(a) __declspec(align(16)) a
#define ATTRIBUTE_ALIGNED16(a) a
#include <assert.h>
#define ASSERT assert
#else
#define SIMD_FORCE_INLINE inline
#define ATTRIBUTE_ALIGNED16(a) a
#ifndef assert
#include <assert.h>
#endif
Can you let me know if it fixes the problem ?
Erwin
----- Original Message -----
From: "Carsten Wartmann" <Carsten.Wartmann at imago-viva.de>
To: <bf-committers at blender.org>
Sent: Thursday, August 18, 2005 10:48 AM
Subject: [Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/extern
Makefile blender/extern/bullet Makefile blender/extern/bullet/Bullet
Makefile blender/extern/bullet/BulletDynamics Makefile blender/source
Makefile nan_compile.mk nan_definitions.mk
blender/source/gameengine/Converter Makefile
blender/source/gameengine/Ketsji ...
> Chris Want wrote:
>> hos (Chris Want) 2005/08/18 08:07:02 CEST
>
> Hello,
>
> I get these (MinGW/msys on WinXP):
>
> ---------------------------------------------------
> ====> make all in extern/bullet/Bullet
> g++ -c -DUSE_SUMO_SOLID -DUSE_BULLET -pipe -mno-cygwin -mwindows -DNDEBUG
> -O2 -DUSE_DOUBLES -DQ
> HULL -D_LIB -I../Bullet -I../BulletDynamics -I../LinearMath -DFREE_WINDOWS
> BroadphaseCollision/ SimpleBroadphase.cpp -o
> /home/cw/blender/blender/obj/windows/extern/bullet/Bullet/BroadphaseCol
> lision/SimpleBroadphase.o
> In file included from ../LinearMath/SimdQuadWord.h:31,
> from ../LinearMath/SimdVector3.h:32,
> from BroadphaseCollision/BroadphaseInterface.h:18,
> from BroadphaseCollision/SimpleBroadphase.h:17,
> from BroadphaseCollision/SimpleBroadphase.cpp:11:
> ../LinearMath/SimdScalar.h:72: error: expected constructor, destructor, or
> type conversion befo re "bool"
> ../LinearMath/SimdScalar.h:72: error: expected `,' or `;' before "bool"
> ../LinearMath/SimdScalar.h:74: error: expected constructor, destructor, or
> type conversion befo re "bool"
> ../LinearMath/SimdScalar.h:74: error: expected `,' or `;' before "bool"
> ../LinearMath/SimdScalar.h:77: error: expected constructor, destructor, or
> type conversion befo re "bool"
> ../LinearMath/SimdScalar.h:77: error: expected `,' or `;' before "bool"
> ../LinearMath/SimdScalar.h:81: error: `__forceinline' does not name a type
> ../LinearMath/SimdScalar.h:82: error: `__forceinline' does not name a type
> ../LinearMath/SimdScalar.h:83: error: `__forceinline' does not name a type
> ../LinearMath/SimdScalar.h:84: error: expected constructor, destructor, or
> type conversion befo re "int"
> ../LinearMath/SimdScalar.h:84: error: expected `,' or `;' before "int"
> ../LinearMath/SimdScalar.h:87: error: `__forceinline' does not name a type
> ../LinearMath/SimdScalar.h:88: error: `__forceinline' does not name a type
> ../LinearMath/SimdScalar.h:89: error: `__forceinline' does not name a type
> ../LinearMath/SimdScalar.h:90: error: `__forceinline' does not name a type
> ../LinearMath/SimdScalar.h:92: error: `__forceinline' does not name a type
> ../LinearMath/SimdScalar.h:93: error: `__forceinline' does not name a type
> In file included from ../LinearMath/SimdVector3.h:32,
> from BroadphaseCollision/BroadphaseInterface.h:18,
> from BroadphaseCollision/SimpleBroadphase.h:17,
> from BroadphaseCollision/SimpleBroadphase.cpp:11:
> ../LinearMath/SimdQuadWord.h:47: error: `__forceinline' does not name a
> type
> ../LinearMath/SimdQuadWord.h:48: error: ISO C++ forbids declaration of
> `__forceinline' with no type
> ../LinearMath/SimdQuadWord.h:48: error: expected `;' before "const"
> ../LinearMath/SimdQuadWord.h:50: error: expected `;' before
> "__forceinline"
> ../LinearMath/SimdQuadWord.h:50: error: ISO C++ forbids declaration of
> `__forceinline' with no
>
> [...]
>
> ../LinearMath/SimdTransform.h: In member function `void
> SimdTransform::setValue(const Scalar2*)':
> ../LinearMath/SimdTransform.h:116: error: 'class SimdVector3' has no
> member named 'setValue'
> ../LinearMath/SimdTransform.h: In member function `void
> SimdTransform::setIdentity()':
> ../LinearMath/SimdTransform.h:169: error: 'class SimdVector3' has no
> member named 'setValue'
> ../LinearMath/SimdTransform.h: In member function `SimdTransform&
> SimdTransform::operator*=(const SimdTransform&)':
> ../LinearMath/SimdTransform.h:177: error: no match for 'operator*' in
> '((SimdTransform*)this)->SimdTransform::m_basis *
> t->SimdTransform::m_origin'
> ../LinearMath/SimdTransform.h: In member function `SimdTransform
> SimdTransform::inverse() const':
> ../LinearMath/SimdTransform.h:191: error: no match for 'operator-' in
> '-((const SimdTransform*)this)->SimdTransform::m_origin'
> ../LinearMath/SimdTransform.h: At global scope:
> ../LinearMath/SimdTransform.h:209: error: `__forceinline' does not name a
> type
> ../LinearMath/SimdTransform.h:216: error: `__forceinline' does not name a
> type
> ../LinearMath/SimdTransform.h:233: error: `__forceinline' does not name a
> type
> make[3]: ***
> [/home/cw/blender/blender/obj/windows/extern/bullet/Bullet/BroadphaseCollision/SimpleBroadphase.o]
> Error 1
> make[2]: *** [all] Error 1
> make[1]: *** [all] Error 1
> make: *** [all] Error 1
> -------------------------------------------------------------------------------------------------
>
> Any hints?
>
> Regards,
> Carsten
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
More information about the Bf-committers
mailing list