Newton under Linux

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Newton under Linux

Postby RobbRob » Sat Jun 12, 2010 3:56 pm

Hello ,

I did something very evil, I changed completely from Windows to Linux_Ubuntu, and now I have to pay for that...

:evil: :wink: no, i am quite happy with Linux and feel myself definitely more free,
but there are some challenges, because I had to change my complete game-frame to Linux and that costs a lot of time, hope I did not risk a divorce...;
so for game-physics I installed Newton Archimedes Linux version2.19 and linked the libs of the SDK to my compiler (I am using Irrlicht engine with code blocks);
everything was compiled correctly, but there is a linking problem with LibNewton.a; see the following error message :
Code: Select all

-------------- Build: Linux - Release - accurate math - static in Irrlicht ---------------


Linking console executable: lib/Linux/libIrrlichtLin
/home/robbyrob/Irrlicht/Irr_Basic/Newton/newtonSDK/sdk/libNewton.a(dgThreads.o): In function `dgThreads::DestroydgThreads()':
(.text+0x39e): undefined reference to `pthread_join'
/home/robbyrob/Irrlicht/Irr_Basic/Newton/newtonSDK/sdk/libNewton.a(dgThreads.o): In function `dgThreads::CreateThreaded(int)':
(.text+0x4c9): undefined reference to `pthread_create'
collect2: ld gab 1 als Ende-Status zurück
Process terminated with status 1 (0 minutes, 7 seconds)
2 errors, 0 warnings
 


unfortunately, there is no way to find this function dgThreads::CreateThreaded(int) and the other one, so I need a little help:
does anybody know what it is and how to avoid the error ?
I googled a little , but no real helpful comment was available,

Thank's for any support

RobbyRob
RobbRob
 
Posts: 7
Joined: Sun Jan 03, 2010 4:55 pm

Re: Newton under Linux

Postby Julio Jerez » Sat Jun 12, 2010 7:33 pm

`pthread_join' and `pthread_create' are part o fteh stansdar tread functions in linux

you need to include lpthread.so library in your make file.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron