Running Newton (on platforms other than Windows)

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Running Newton (on platforms other than Windows)

Postby pHySiQuE » Sat Jun 23, 2012 12:00 am

I'm very happy to have Newton compiling for Mac, iOS, and Android, but the time has come where I need to start using it on these platforms.

To make Newton compile for Mac, I changed line 26 of dgtypes.h to this:
Code: Select all
#ifndef _MAC_VER
    #if !(defined (__USE_DOUBLE_PRECISION__) || defined (__ppc__))
        #define DG_BUILD_SIMD_CODE
    #endif
#endif


When I run my program, I get this error:
Screen Shot 2012-06-22 at 8.51.53 PM.png
Screen Shot 2012-06-22 at 8.51.53 PM.png (53.64 KiB) Viewed 4095 times


Can you tell me what the current status of this is? Thank you.
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Running Newton (on platforms other than Windows)

Postby Julio Jerez » Sat Jun 23, 2012 12:28 am

For mac I do not have a xcode text that I can use to debug the atomics. Ther are only tow atomic that nee to be implemented in OS10, unfornually tread do no coem with cross platfrpom atomics
therfore they have to be implemented as natove funtion in each OS.

I check in a version with the mutiothread code in emulation. sync to SVN, and next time I see if I can implement the atomics.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Running Newton (on platforms other than Windows)

Postby pHySiQuE » Sat Jun 23, 2012 12:56 am

That was fast, thanks! :D

My program calls NewtonUpdate() without crashing, so that's a good sign. Tomorrow I will try out some actual physics on the other platforms. Thank you!
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Running Newton (on platforms other than Windows)

Postby pHySiQuE » Sat Jun 23, 2012 1:54 am

Here are my changes as an SVN patch:
NewtonDynamics.patch.zip
(658 Bytes) Downloaded 224 times

It builds on Android now. No idea if it will run, yet.
Last edited by pHySiQuE on Sat Jun 23, 2012 2:19 am, edited 1 time in total.
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Running Newton (on platforms other than Windows)

Postby pHySiQuE » Sat Jun 23, 2012 3:58 pm

I've got an object dropping in space on Android! :mrgreen:
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Running Newton (on platforms other than Windows)

Postby pHySiQuE » Sat Jun 23, 2012 5:17 pm

On OSX and iOS, when NewtonUpdate() is called, the program gets stuck in that call, and never comes out. I have DG_THREAD_EMULATION defined in both projects.
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Running Newton (on platforms other than Windows)

Postby Julio Jerez » Sat Jun 23, 2012 5:33 pm

Hey I thoink this is good news, I had a hunch that the GCC atomic mugh also work on OSX, so I repelce then and compile, and it work.

now I made the changes and everything is unified for Mac and Linux
Code: Select all
DG_INLINE dgInt32 dgAtomicExchangeAndAdd (dgInt32* const addend, dgInt32 amount)
{
   // it is a pity that pthread does not supports cross platform atomics, it would be nice if it did
   #if (defined (_WIN_32_VER) || defined (_WIN_64_VER) || defined (_MINGW_32_VER) || defined (_MINGW_64_VER))
      return _InterlockedExchangeAdd((long*) addend, long (amount));
   #endif

   #if (defined (_LINUX_VER) || defined (_MAC_VER))
      return __sync_fetch_and_add ((int32_t*)addend, amount );
   #endif
}

DG_INLINE dgInt32 dgInterlockedExchange(dgInt32* const ptr, dgInt32 value)
{
   // it is a pity that pthread does not supports cross platform atomics, it would be nice if it did
   #if (defined (_WIN_32_VER) || defined (_WIN_64_VER) || defined (_MINGW_32_VER) || defined (_MINGW_64_VER))
      return _InterlockedExchange((long*) ptr, value);
   #endif

   #if (defined (_LINUX_VER) || defined (_MAC_VER))
      __sync_synchronize();
      return __sync_lock_test_and_set((int32_t*)ptr, value);
   #endif
}


This important because some of the new mobile device are muticores. tha chnage make it should run on all mobile devices in multithreaded mode.
Please try again and see if it builds, I am also trying to make a OS Cocoa sanbox demo for Macs.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Running Newton (on platforms other than Windows)

Postby pHySiQuE » Sat Jun 23, 2012 6:00 pm

I get this error in Xcode now:
ld: duplicate symbol exp_2(int) in /SVN/Leadwerks3D/Engine/Projects/OSX/build/Leadwerks3D.build/Debug/Leadwerks3D.build/Objects-normal/x86_64/dgAABBPolygonSoup.o and /SVN/Leadwerks3D/Engine/Projects/OSX/build/Leadwerks3D.build/Debug/Leadwerks3D.build/Objects-normal/x86_64/dg.o for architecture x86_64


And Eclipse gives me this wall of text. Looks like it's related:
In file included from /svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgPolygonSoupBuilder.h:33,
from /svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgPolygonSoupBuilder.cpp:32:
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h: In constructor 'dgPolygonSoupDatabaseBuilder::dgPolygonSoupDatabaseBuilder(dgMemoryAllocator*) (base constructor)':
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:287: error: 'dgInt32 exp_2(dgInt32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgArray.h:65: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:287: error: 'dgInt32 exp_2(dgInt32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgArray.h:65: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:287: error: 'dgInt32 exp_2(dgInt32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgArray.h:65: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:287: error: 'dgInt32 exp_2(dgInt32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgArray.h:65: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:287: error: 'dgInt32 exp_2(dgInt32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgArray.h:65: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h: In member function 'void dgSphere::SetDimensions(const dgFloat32*, dgInt32, const dgInt32*, dgInt32, const dgMatrix*)':
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h:210: error: 'dgVector dgMatrix::UnrotateVector(const dgVector&) const' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgSphere.cpp:72: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h:216: error: 'dgVector dgMatrix::TransformVector(const dgVector&) const' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgSphere.cpp:401: error: called from here
In file included from /svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgSphere.cpp:25:
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:661: error: 'dgFloat32 dgAbsf(dgFloat32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgSphere.h:94: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:661: error: 'dgFloat32 dgAbsf(dgFloat32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgSphere.h:94: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:661: error: 'dgFloat32 dgAbsf(dgFloat32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgSphere.h:94: error: called from here
make: *** [/svn/Leadwerks3D/Engine/Projects/Android2.2b/obj/local/armeabi/objs/newtondynamics/__/__/__/Source/__/__/__/NewtonDynamics/coreLibrary_300/source/core/dgSphere.o] Error 1
make: *** Waiting for unfinished jobs....
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h: In member function 'void dgPolyhedra::RefineTriangulation(const dgFloat64*, dgInt32, dgBigVector*, dgInt32, dgEdge**)':
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h:285: error: 'dgMatrix dgMatrix::Inverse() const' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgPolyhedra.cpp:1663: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h:216: error: 'dgVector dgMatrix::TransformVector(const dgVector&) const' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgPolyhedra.cpp:1684: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h:216: error: 'dgVector dgMatrix::TransformVector(const dgVector&) const' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgPolyhedra.cpp:1685: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h:216: error: 'dgVector dgMatrix::TransformVector(const dgVector&) const' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgPolyhedra.cpp:1686: error: called from here
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h:216: error: 'dgVector dgMatrix::TransformVector(const dgVector&) const' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/core/dgPolyhedra.cpp:1687: error: called from here
make: *** [/svn/Leadwerks3D/Engine/Projects/Android2.2b/obj/local/armeabi/objs/newtondynamics/__/__/__/Source/__/__/__/NewtonDynamics/coreLibrary_300/source/core/dgPolygonSoupBuilder.o] Error 1
make: *** [/svn/Leadwerks3D/Engine/Projects/Android2.2b/obj/local/armeabi/objs/newtondynamics/__/__/__/Source/__/__/__/NewtonDynamics/coreLibrary_300/source/core/dgPolyhedra.o] Error 1
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h: In member function 'virtual void dgBody::UpdateCollisionMatrixSimd(dgFloat32, dgInt32)':
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgMatrix.h:418: error: 'dgMatrix dgMatrix::MultiplySimd(const dgMatrix&) const' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBody.cpp:390: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:661: error: 'dgFloat32 dgAbsf(dgFloat32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBody.cpp:413: error: called from here
make: *** [/svn/Leadwerks3D/Engine/Projects/Android2.2b/obj/local/armeabi/objs/newtondynamics/__/__/__/Source/__/__/__/NewtonDynamics/coreLibrary_300/source/physics/dgBody.o] Error 1
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h: In member function 'void dgBroadPhaseCollision::FindCollidingPairsDynamics(dgBroadphaseSyncDescriptor*, dgInt32)':
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1568: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1596: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1607: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1612: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1617: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1622: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1629: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1634: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1641: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:115: error: 'dgInt32 dgOverlapTestSimd(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1646: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1659: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1680: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1691: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1698: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1705: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1712: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1720: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1726: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1734: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgIntersections.h:126: error: 'dgInt32 dgOverlapTest(const dgVector&, const dgVector&, const dgVector&, const dgVector&)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1741: error: called from here
/SVN/leadwerks3d/engine/source/../../../NewtonDynamics/coreLibrary_300/source/core/dgTypes.h:751: error: 'dgInt32 dgAtomicExchangeAndAdd(dgInt32*, dgInt32)' has attribute 'always_inline', but was not inlined. Reason: function not inlinable
/svn/Leadwerks3D/Engine/Projects/Android2.2b/jni/../../../Source/../../../NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.cpp:1551: error: called from here
make: *** [/svn/Leadwerks3D/Engine/Projects/Android2.2b/obj/local/armeabi/objs/newtondynamics/__/__/__/Source/__/__/__/NewtonDynamics/coreLibrary_300/source/physics/dgBroadPhaseCollision.o] Error 1
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Running Newton (on platforms other than Windows)

Postby pHySiQuE » Thu Jun 28, 2012 12:11 am

BTW, I have proof Newton was running on Android, at one point: :D
Screen Shot 2012-06-23 at 12.58.50 PM.png
Screen Shot 2012-06-23 at 12.58.50 PM.png (137.19 KiB) Viewed 4044 times
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Running Newton (on platforms other than Windows)

Postby pHySiQuE » Sat Jun 30, 2012 3:39 pm

At this point, I am trying to go through revisions and find the last one that worked. Revision 2216 is when the duplicate symbol exp_2 error began appearing... :(
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Running Newton (on platforms other than Windows)

Postby Julio Jerez » Sat Jun 30, 2012 4:40 pm

revision 2216, The lastest revision is 2246
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Running Newton (on platforms other than Windows)

Postby pHySiQuE » Sat Jun 30, 2012 7:46 pm

It's building and running now, on all platforms. Thanks for your help. I'll post a tutorial later, but right now I am taking a nap... :P
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest