I would ask which is the best way to compile releaseDll for NGD svn.
For Windows:
I downloaded free Visual Studio 2008 express,
opened "...\newton-dynamics-read-only\packages\projects\visualStudio_2008\build.sln"
selected "releaseDll" and compiled.
OK, it has built both newton/joint libs and they works right.
___
For Linux (Ubuntu 11.04 x86):
cd ~/Desktop/newton-dynamics-read-only/coreLibrary_200/projets/linux32
make clean
make
and it produces libNewton.a + libNewton.so (but not Joint, etc), so I compiled manually:
cd ~/Desktop/newton-dynamics-read-only/packages/projects/linux32/dContainers
make
.../dCustomJoints
make
.../dMath
make
.../dScene
make
.../thirdParty
make
so now I have:
~/Desktop/newton-dynamics-read-only/packages/linux32$ ls
libdContainers.a libdMath.a libNewton.a Newton.h
libdJointLibrary.a libdScene.a libNewton.so
I copied all *.a to /usr/lib/
but when I try to compile a project I get error:
- Code: Select all
...
...
Target OS: Linux for i386
Compiling lazarus.pp
Assembling lazarus
Compiling resource ../units/i386-linux/lazarus.or
Linking ../lazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateLocalMatrix(dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x408): undefined reference to `dMatrix::Inverse() const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateLocalMatrix(dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x424): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateLocalMatrix(dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x4ce): undefined reference to `dMatrix::Inverse() const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateLocalMatrix(dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x4e4): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateGlobalMatrix(dMatrix const&, dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x66a): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateGlobalMatrix(dMatrix const&, dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x715): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomBallAndSocket.o): In function `CustomLimitBallAndSocket::SubmitConstraints(float, int)':
(.text+0xc1e): undefined reference to `dQuaternion::UnrotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomHinge.o): In function `CustomHinge::GetPinAxis() const':
(.text+0xc96): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0x8c5): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0xf09): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0xfa4): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0x1054): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0x10ef): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0x1199): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o):(.text+0x1246): more undefined references to `dMatrix::RotateVector(dVector const&) const' follow
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SubmitConstraints(float, int)':
(.text+0x8e): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SubmitConstraints(float, int)':
(.text+0x15b): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SubmitConstraints(float, int)':
(.text+0x823): undefined reference to `dQuaternion::CalcAverageOmega(dQuaternion const&, float) const'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SubmitConstraints(float, int)':
(.text+0x99e): undefined reference to `dgGrammSchmidt(dVector const&)'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SetTargetMatrix(dMatrix const&)':
(.text+0x1439): undefined reference to `dQuaternion::dQuaternion(dMatrix const&)'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::CustomKinematicController(NewtonBody const*, dVector const&)':
(.text+0x150c): undefined reference to `dMatrix::UntransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::GetTargetMatrix() const':
(.text+0x15bf): undefined reference to `dMatrix::dMatrix(dQuaternion const&, dVector const&)'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CustomDGRayCastCar(int, dMatrix const&, NewtonBody*)':
(.text+0x45d): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::AddSingleSuspensionTire(void*, dVector const&, float, float, float, float, float, float, float, int)':
(.text+0x8b7): undefined reference to `dMatrix::UntransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireMatrix(int) const':
(.text+0xe09): undefined reference to `dPitchMatrix(float)'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireMatrix(int) const':
(.text+0xf59): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireMatrix(int) const':
(.text+0xf72): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireMatrix(int) const':
(.text+0xf88): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireCollision(CustomDGRayCastCar::Tire&, dMatrix const&, int) const':
(.text+0x1387): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireCollision(CustomDGRayCastCar::Tire&, dMatrix const&, int) const':
(.text+0x15a4): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x1989): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x1aa4): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x23b9): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x24d6): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x26d2): undefined reference to `dMatrix::RotateVector(dVector const&) const'
lazarus.pp(125,42) Error: Error while linking
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateLocalMatrix(dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x408): undefined reference to `dMatrix::Inverse() const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateLocalMatrix(dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x424): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateLocalMatrix(dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x4ce): undefined reference to `dMatrix::Inverse() const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateLocalMatrix(dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x4e4): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateGlobalMatrix(dMatrix const&, dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x66a): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(NewtonCustomJoint.o): In function `NewtonCustomJoint::CalculateGlobalMatrix(dMatrix const&, dMatrix const&, dMatrix&, dMatrix&) const':
(.text+0x715): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomBallAndSocket.o): In function `CustomLimitBallAndSocket::SubmitConstraints(float, int)':
(.text+0xc1e): undefined reference to `dQuaternion::UnrotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomHinge.o): In function `CustomHinge::GetPinAxis() const':
(.text+0xc96): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0x8c5): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0xf09): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0xfa4): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0x1054): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0x10ef): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o): In function `CustomPlayerController::CustomPlayerController(dMatrix const&, NewtonBody const*, float, float)':
(.text+0x1199): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomPlayerController.o):(.text+0x1246): more undefined references to `dMatrix::RotateVector(dVector const&) const' follow
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SubmitConstraints(float, int)':
(.text+0x8e): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SubmitConstraints(float, int)':
(.text+0x15b): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SubmitConstraints(float, int)':
(.text+0x823): undefined reference to `dQuaternion::CalcAverageOmega(dQuaternion const&, float) const'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SubmitConstraints(float, int)':
(.text+0x99e): undefined reference to `dgGrammSchmidt(dVector const&)'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::SetTargetMatrix(dMatrix const&)':
(.text+0x1439): undefined reference to `dQuaternion::dQuaternion(dMatrix const&)'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::CustomKinematicController(NewtonBody const*, dVector const&)':
(.text+0x150c): undefined reference to `dMatrix::UntransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomKinematicController.o): In function `CustomKinematicController::GetTargetMatrix() const':
(.text+0x15bf): undefined reference to `dMatrix::dMatrix(dQuaternion const&, dVector const&)'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CustomDGRayCastCar(int, dMatrix const&, NewtonBody*)':
(.text+0x45d): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::AddSingleSuspensionTire(void*, dVector const&, float, float, float, float, float, float, float, int)':
(.text+0x8b7): undefined reference to `dMatrix::UntransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireMatrix(int) const':
(.text+0xe09): undefined reference to `dPitchMatrix(float)'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireMatrix(int) const':
(.text+0xf59): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireMatrix(int) const':
(.text+0xf72): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireMatrix(int) const':
(.text+0xf88): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireCollision(CustomDGRayCastCar::Tire&, dMatrix const&, int) const':
(.text+0x1387): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::CalculateTireCollision(CustomDGRayCastCar::Tire&, dMatrix const&, int) const':
(.text+0x15a4): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x1989): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x1aa4): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x23b9): undefined reference to `dMatrix::operator*(dMatrix const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x24d6): undefined reference to `dMatrix::TransformVector(dVector const&) const'
/usr/lib/libdJointLibrary.a(CustomDGRayCastCar.o): In function `CustomDGRayCastCar::SubmitConstraints(float, int)':
(.text+0x26d2): undefined reference to `dMatrix::RotateVector(dVector const&) const'
/home/kjow/lazarus/ide/lazarus.pp(125,42) Error: Error while linking
/home/kjow/lazarus/ide/lazarus.pp(125,42) Fatal: There were 1 errors compiling module, stopping
so, how to compile NGD in linux?
then, if I want to try core_300 (on both windows/linux), how to do?
Thank you!