Official Pascal-Header (SDK 2.0)

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: Official Pascal-Header (SDK 2.0)

Postby Carli » Sun Jun 13, 2010 11:45 am

Kjow wrote:$ ./SDLNewtonBasicDemo
./SDLNewtonBasicDemo: error while loading shared libraries: libNewton.so: cannot open shared object file: No such file or directory

NOTE: libNewton.so is in the same dir of SDLNewtonBasicDemo

Some suggestions?


run in shell:
Code: Select all
$ sudo cp -s libNewton.so /usr/lib/
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am

Re: Official Pascal-Header (SDK 2.0)

Postby Kjow » Mon Jun 14, 2010 6:23 pm

Thank you! It works!
I thought it would work like on Windows (just copy the dll in the same dir)
Kjow
 
Posts: 56
Joined: Thu Nov 13, 2008 11:33 am

Re: Official Pascal-Header (SDK 2.0)

Postby Carli » Tue Jun 15, 2010 7:43 am

Kjow wrote:I thought it would work like on Windows (just copy the dll in the same dir)


No, at first i tought, it was a desing failure but then i noticed that it is a huge gain in security.
When you want to provide your application, you can easily write an install script or you make a live cd with the debian live helper tools that generates a complete distro at your wishes. (With newton of course) ;)
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am

Re: Official Pascal-Header (SDK 2.0)

Postby Kjow » Tue Jun 15, 2010 8:27 am

:)
Perfect, thank you!
Kjow
 
Posts: 56
Joined: Thu Nov 13, 2008 11:33 am

Re: Official Pascal-Header (SDK 2.0)

Postby Stucuk » Mon Jun 28, 2010 10:25 am

Updated with Executor's latest additions:
Changes on 28.06.2010 by Dmitriy Bespalov
+ Updated version to 2.22 (No changes of header from 2.16)
+ Types 'single' replaced to 'float' for correct NEWTON_DOUBLE_PRECISION support
+ Some code style fixes
+ Updated joint library to 2.22 Beta
- Added CustomGetNewtonJoint
- Added DGRaycastVehicleInitNormalizeTireLateralForce
- Added DGRaycastVehicleInitNormalizeTireLongitudinalForce
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Official Pascal-Header (SDK 2.0)

Postby Kjow » Mon Jun 28, 2010 10:40 am

Stucuk wrote:Updated with Executor's latest additions:
Changes on 28.06.2010 by Dmitriy Bespalov
+ Updated version to 2.22 (No changes of header from 2.16)
+ Types 'single' replaced to 'float' for correct NEWTON_DOUBLE_PRECISION support
+ Some code style fixes
+ Updated joint library to 2.22 Beta
- Added CustomGetNewtonJoint
- Added DGRaycastVehicleInitNormalizeTireLateralForce
- Added DGRaycastVehicleInitNormalizeTireLongitudinalForce


Thank you, but there is an error on compiling:
...
...
Compiling NewtonImport.pas
delphinewton.inc(208,4) Warning: Illegal compiler directive "$THREADING"
NewtonImport.pas(156,12) Hint: Type "size_t" redefinition
Compiling NewtonImport_JointLibrary.pas
delphinewton.inc(208,4) Warning: Illegal compiler directive "$THREADING"
NewtonImport_JointLibrary.pas(115,146) Error: ENDIF without IF(N)DEF
NewtonImport_JointLibrary.pas(115,147) Fatal: Syntax error, ";" expected but "identifier JOINTLIBRARYDLL" found

and the cursor stops here (Row #115 of NewtonImport_JointLibrary.pas):
function CustomGetNewtonJoint( const joint : PNewtonUserJoint ) : PNewtonJoint; cdecl; external{#IFDEF __GPC__}name 'CustomGetNewtonJoint'{$ELSE}JointLibraryDLL{$ENDIF __GPC__};

--> {#IFDEF __GPC__} instead of {$IFDEF __GPC__}
fixing this, it compiles and works
Kjow
 
Posts: 56
Joined: Thu Nov 13, 2008 11:33 am

Re: Official Pascal-Header (SDK 2.0)

Postby Stucuk » Mon Jun 28, 2010 11:03 am

Updated.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Official Pascal-Header (SDK 2.0)

Postby Executor » Tue Jul 06, 2010 1:43 am

newton.dll in version 2.23 causes a crash in my Delphi application.
What may be a reason of this problem?
It looks like a memory leak in newton.
Executor
 
Posts: 25
Joined: Fri Sep 04, 2009 7:01 am

Re: Official Pascal-Header (SDK 2.0)

Postby Carli » Tue Jul 06, 2010 3:19 am

Executor wrote:newton.dll in version 2.23 causes a crash in my Delphi application.
What may be a reason of this problem?
It looks like a memory leak in newton.

My windows does not boot any more.
What may be a reason of this problem?
It looks like it is broken.


..

a little bit more precise please.
- Did you use any functions?
- Did you have an older Version of Newton that worked?
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am

Re: Official Pascal-Header (SDK 2.0)

Postby Stucuk » Tue Jul 06, 2010 4:46 am

Can you please create new threads for subjects that are not related to the topic? This thread should be about the Pascal Header not crashes you have with newer versions. New topics have a far higher chance of Julio actually reading them than a thread which is ment to be just about the headers.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Official Pascal-Header (SDK 2.0)

Postby Carli » Tue Jul 06, 2010 5:37 am

Stucuk wrote:Can you please create new threads for subjects that are not related to the topic? This thread should be about the Pascal Header not crashes you have with newer versions. New topics have a far higher chance of Julio actually reading them than a thread which is ment to be just about the headers.



I just asked him for more detailed information and used an example for a second bad bug report.
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am

Re: Official Pascal-Header (SDK 2.0)

Postby Stucuk » Tue Jul 06, 2010 6:30 am

I was on about Executor.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Official Pascal-Header (SDK 2.0)

Postby Stucuk » Tue Jul 06, 2010 6:34 am

Updated.

Changes on 06.07.2010 by Stuart Carey
- Added Missing 2.23 functions and procedures

Changes on 06.07.2010 by Dmitriy Bespalov
+ Updated version to 2.23
- Added NewtonMeshCreateFromMesh
- Added NewtonMeshConvexApproximation
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Official Pascal-Header (SDK 2.0)

Postby Executor » Wed Jul 07, 2010 1:18 am

2Carli: 2.22 and earlier work perfect. In the beginning I thought that the problem with Delphi. But discovered that some examples from SDK crash too.
Locate the problem is difficult, because the project is large. And the application is crash each time in different places. Very similar to a memory leak in Newton.
Let's wait for the next version of Newton.

2Stucuk: Ok, ok...
Executor
 
Posts: 25
Joined: Fri Sep 04, 2009 7:01 am

Re: Official Pascal-Header (SDK 2.0)

Postby Julio Jerez » Wed Jul 07, 2010 1:31 am

what are you talking abut?
there are not memory leak in Netwon.

what crash? and how the next version is going to fix a problem I do not know even exist.


The crashes in the SDK example are because I am working on the editorr and I am not keeping some of the demo up to day,
because as soon as I get the editor working they will no longer work with collada files.
but that has nothing to do with crashes in newton, those are crashe in the dModel library.
Collada is very limiting, yo ucna no even load Terrain, of single side joint, so I deside to coem up with teh Official Newton file format.

If you are having crash or memory leaks, you I would not get confort in thinking they are Newton Bugs, chances are they are not.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 19 guests