I try to compile newton on ubuntu, but I have some error.
I use newton 2.35, because last version in svn repository give me more error (I can't compile newton core 300, and demo can't work with core200. he can't find NewtonAI.h).
When I try to compile dCustomJoints (demo need this), I have this error.
- Code: Select all
gcc -c -Wall -Wno-strict-aliasing -D_LINUX_VER -O2 -msse -g -msse2 -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant -lpthread -lstdc++ -I../../../linux64 -I../../../dCustomJoints -I../../../dMath -I../../../dContainers -o ../../../dCustomJoints/Custom6DOF.o ../../../dCustomJoints/Custom6DOF.cpp
In file included from ../../../dCustomJoints/CustomJointLibraryStdAfx.h:80:0,
from ../../../dCustomJoints/Custom6DOF.cpp:16:
../../../dCustomJoints/NewtonCustomJoint.h:65:24: erreur: expected initializer before ‘NewtonCustomJoint’
make: *** [../../../dCustomJoints/Custom6DOF.o] Erreur 1
I don't know how I can fix it.
And I try to compile the last core 300 in svn. But I have some error. Maybe can you help me to fix it ?
- Code: Select all
gcc -c -Wall -Wno-strict-aliasing -D_LINUX_VER -D_LINUX_VER_64 -O2 -fpic -msse -msse2 -mfpmath=sse -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant -I../../source/core -I../../source/physics -o ../../source/core/dg.o ../../source/core/dg.cpp
In file included from ../../source/core/dgStdafx.h:25:0,
from ../../source/core/dg.cpp:22:
../../source/core/dgTypes.h: In function ‘dgInt32 dgBinarySearch(const T*, dgInt32, dgInt32)’:
../../source/core/dgTypes.h:356:3: erreur: ‘index1’ was not declared in this scope
../../source/core/dgTypes.h:357:3: erreur: ‘entry1’ was not declared in this scope
make: *** [../../source/core/dg.o] Erreur 1
For this I just add this :
- Code: Select all
dgInt32 index1;
dgInt32 entry1;
But, it's too easy and I'm not sure if it's correct.
and now I have this :
- Code: Select all
gcc -c -Wall -Wno-strict-aliasing -D_LINUX_VER -D_LINUX_VER_64 -O2 -fpic -msse -msse2 -mfpmath=sse -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant -I../../source/core -I../../source/physics -o ../../source/core/dgTypes.o ../../source/core/dgTypes.cpp
In file included from ../../source/core/dgVector.h:28:0,
from ../../source/core/dgTypes.cpp:25:
../../source/core/dgSimd_128.h: In member function ‘simd_128 simd_128::AddHorizontal() const’:
../../source/core/dgSimd_128.h:145:46: erreur: ‘_mm_hadd_ps’ was not declared in this scope
../../source/core/dgSimd_128.h: In member function ‘simd_128 simd_128::DotProduct(const simd_128&) const’:
../../source/core/dgSimd_128.h:160:55: erreur: ‘_mm_hadd_ps’ was not declared in this scope
../../source/core/dgSimd_128.h: In member function ‘simd_128 simd_128::DotProduct_SSE4(const simd_128&) const’:
../../source/core/dgSimd_128.h:171:46: erreur: ‘_mm_dp_ps’ was not declared in this scope
In file included from ../../source/core/dgVector.h:29:0,
from ../../source/core/dgTypes.cpp:25:
../../source/core/dgSimd_256.h: In member function ‘dgInt32 simd_256::GetSignMask() const’:
../../source/core/dgSimd_256.h:651:143: attention : left operand of comma operator has no effect [-Wunused-value]
make: *** [../../source/core/dgTypes.o] Erreur 1
But for this I don't know how I can fix it.
(There are a mistake in the makefile for linux64 for core_200 in the version of svn. Line 29 there are a space next \)
Thanks