Help compiling core-200 ubuntu

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Help compiling core-200 ubuntu

Postby inconnu259 » Tue Feb 21, 2012 3:03 am

Hy !

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
inconnu259
 
Posts: 3
Joined: Tue Feb 21, 2012 2:42 am

Re: Help compiling core-200 ubuntu

Postby Julio Jerez » Tue Feb 21, 2012 11:19 am

you are not going to be able to compile core 300 in linux yet, I said I was h\going to make the make file last week but the featiure I am doing now is takle more than I staimated.

as for this error

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

are you builg the version form svn?
do no use that because core 200 is still in teh prpject becais ethere are some funtionality I still has no converted over to core 300.
use the lastes version 2.35 form teh download.

in the next alpha core 200 will be remove form core 300
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Help compiling core-200 ubuntu

Postby inconnu259 » Tue Feb 21, 2012 11:40 am

Ok, thanks, I wait for core 300.
But for this, it's
(
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
)
it's with v2.35, I donwload it from here http://code.google.com/p/newton-dynamics/downloads/list (in direct download, not from svn. Maybe if I use svn it's better ???)
I look the file NewtonCustomJoint.h and I think it's this : class JOINTLIBRARY_API NewtonCustomJoint
JOINTLIBRARY_API can't reconize by gcc. It's the first time I see something like this for a class.
inconnu259
 
Posts: 3
Joined: Tue Feb 21, 2012 2:42 am

Re: Help compiling core-200 ubuntu

Postby Julio Jerez » Tue Feb 21, 2012 12:43 pm

Oh I thionk I knwop why,
in core 200 the define USE_NEWTON_LIB was change to _NEWTON_STATIC_LIB

I mad eteh change in core VS byt I forget to make in linux just define _NEWTON_STATIC_LIB
and it should work.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Help compiling core-200 ubuntu

Postby inconnu259 » Tue Feb 21, 2012 11:29 pm

How can I define _NEWTON_STATIC_LIB in makefile ?
And it's for dCustomJoints ? Or core200 ?
inconnu259
 
Posts: 3
Joined: Tue Feb 21, 2012 2:42 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest