[Opensim-users] FreeBSD libODE issue
Justin Clark-Casey
jjustincc at googlemail.com
Mon Jan 23 23:27:27 UTC 2012
On 23/01/12 23:19, Gudule Lapointe wrote:
> Thanks for the additional information and the update of the page.
>
> Just tried again with new instructions, I had to change some things to have it working. And it works!
>
>> git clone git://opensimulator.org/git/opensim-libs
>> cd opensim-libs/unmanaged/OpenDynamicsEngine-r1755
>> sh autogen.sh
>> ./configure --enable-shared --enable-release --disable-demos --without-x --enable-old-trimesh
>> make
>> mv ./ode/src/.libs/libode.so /opensim/installation/directory/opensim/bin/libode.so (32 bit)
>> mv ./ode/src/.libs/libode.so /opensim/installation/directory/opensim/bin/libode-x86_64.so (64 bit)
>
> 1° As far I remember, in the previous version of the page, the git url included /trunk/ subpath. As it is now, the following cd command is now incorrect
> 2° in ode/src/.libs, I see libode.so is a softlink to libode.so.2
> Doesn't the original file also need to be moved?
trunk is an svn thing which has no parallel in git. I don't see trunk mentioned in the current instructions.
I changed the moves to copies. It is the original file that needs to be copied. I prefer copying to linking for
clarity's sake, but whatever works to make the libode.so reference valid in the file system if fine, of course.
>
> So, what I did is
>
> git clone git://opensimulator.org/git/opensim-libs
> cd opensim-libs/trunk/unmanaged/OpenDynamicsEngine-r1755 ### changed
> sh autogen.sh
> ./configure --enable-shared --enable-release --disable-demos --without-x --enable-old-trimesh
> make
> mv ./ode/src/.libs/libode.so* /opensim/installation/directory/opensim/bin/libode.so (32 bit) ### changed
> cd /opensim/installation/directory/opensim/bin/ ### changed
> rm libode-x86_64.so ### changed
> ln -s libode.so.2 libode-x86_64.so ### changed
>
> My server is supposed to be 64bits, but uname shows 32bits (i'll investigate that later), so I am not sure if the last 3 lines are needed and/or useful
If uname says 32 bits then you have the 32 bit version of the OS installed.
>
>
> Le 23 janv. 2012 à 23:18, Justin Clark-Casey a écrit :
>
>> The error log indicates that OpenSim cannot find the require ode library (System.DllNotFoundException: libode).
>>
>> OpenSim won't pick up a system installed ode library, only those in its own bin directory. It only ships with compiled libraries for linux (32 and 64 bit), Windows (32 bit only currently, for various reasons) and Mac OSX.
>>
>> Compiling ODE for BSD and replacing the existing libode.so (32 bit) or libode-x86_64.so (64 bit) might work since these are used when the platform is not windows or mac, but this is not guaranteed.
>>
>> I updated the build instructions but I can't test them for accuracy.
>>
>> On 22/01/12 22:51, Gudule Lapointe wrote:
>>> Hello
>>>
>>> I try to install OpenSim on a FreeBSD server. Whatever approach I try, I get the same kind of error.
>>>
>>> I tried
>>> - from last release
>>> - from current snapshot (well, tried on several ones)
>>> - from osgrid and diva distributions.
>>>
>>> I also tried the build instructions on http://opensimulator.org/wiki/Build_Instructions#FreeBSD
>>> but the part concerning ODE Physics is out of date. It mentions opensim-libs/unmanaged/OpenDynamicsEngine2, which doesn't exists, and there are two related folders: OpenDynamicsEngine-0.10.1 and OpenDynamicsEngine-r1755 . I tried both, with same error.
>>>
>>> Here is my config:
>>>
>>> FreeBSD 8.2-RELEASE-p5 #2: Wed Dec 28 16:51:23 CET 2011
>>> Opensim version (last try): 24b20f6 r17847 2012-01-22 15:35:14 +0000
>>> Mono JIT compiler version 2.10.6 (tarball Wed Nov 16 19:42:09 CET 2011)
>>>
>>> And below is the error log.
>>>
>>> BTW: I installed successfully OpenSim on Ubuntu and MacOS X Lion. So the problem is not related to "global" understanding of the installation process. ;-)
>>> Now I need to have it working on a production server, which runs FreeBSD (and I can't change that)
>>>
>>> If anyone has an idea, it would be greatly appreciated.
>>>
>>>
>>>
>>>
>>>
>>> 23:28:06 - [APPLICATION]:
>>> APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs
>>>
>>> Exception: System.DllNotFoundException: libode
>>> at (wrapper managed-to-native) Ode.NET.d:InitODE ()
>>> at OpenSim.Region.Physics.OdePlugin.OdePlugin.GetScene (System.String sceneIdentifier) [0x00000] in<filename unknown>:0
>>> at OpenSim.Region.Physics.Manager.PhysicsPluginManager.GetPhysicsScene (System.String physEngineName, System.String meshEngineName, IConfigSource config, System.String regionName) [0x00000] in<filename unknown>:0
>>> at OpenSim.Region.ClientStack.RegionApplicationBase.GetPhysicsScene (System.String engine, System.String meshEngine, IConfigSource config, System.String osSceneIdentifier) [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.GetPhysicsScene (System.String osSceneIdentifier) [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.SetupScene (OpenSim.Framework.RegionInfo regionInfo, Int32 proxyOffset, IConfigSource configSource, IClientNetworkServer& clientServer) [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.CreateRegion (OpenSim.Framework.RegionInfo regionInfo, Boolean portadd_flag, Boolean do_post_init, IScene& mscene) [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.CreateRegion (OpenSim.Framework.RegionInfo regionInfo, Boolean portadd_flag, IScene& scene) [0x00000] in<filename unknown>:0
>>> at OpenSim.ApplicationPlugins.LoadRegions.LoadRegionsPlugin.PostInitialise () [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.StartupSpecific () [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSim.StartupSpecific () [0x00000] in<filename unknown>:0
>>> at OpenSim.Framework.Servers.BaseOpenSimServer.Startup () [0x00000] in<filename unknown>:0
>>> at OpenSim.Application.Main (System.String[] args) [0x00000] in<filename unknown>:0
>>>
>>> Application is terminating: True
>>>
>>> [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libode
>>> at (wrapper managed-to-native) Ode.NET.d:InitODE ()
>>> at OpenSim.Region.Physics.OdePlugin.OdePlugin.GetScene (System.String sceneIdentifier) [0x00000] in<filename unknown>:0
>>> at OpenSim.Region.Physics.Manager.PhysicsPluginManager.GetPhysicsScene (System.String physEngineName, System.String meshEngineName, IConfigSource config, System.String regionName) [0x00000] in<filename unknown>:0
>>> at OpenSim.Region.ClientStack.RegionApplicationBase.GetPhysicsScene (System.String engine, System.String meshEngine, IConfigSource config, System.String osSceneIdentifier) [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.GetPhysicsScene (System.String osSceneIdentifier) [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.SetupScene (OpenSim.Framework.RegionInfo regionInfo, Int32 proxyOffset, IConfigSource configSource, IClientNetworkServer& clientServer) [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.CreateRegion (OpenSim.Framework.RegionInfo regionInfo, Boolean portadd_flag, Boolean do_post_init, IScene& mscene) [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.CreateRegion (OpenSim.Framework.RegionInfo regionInfo, Boolean portadd_flag, IScene& scene) [0x00000] in<filename unknown>:0
>>> at OpenSim.ApplicationPlugins.LoadRegions.LoadRegionsPlugin.PostInitialise () [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSimBase.StartupSpecific () [0x00000] in<filename unknown>:0
>>> at OpenSim.OpenSim.StartupSpecific () [0x00000] in<filename unknown>:0
>>> at OpenSim.Framework.Servers.BaseOpenSimServer.Startup () [0x00000] in<filename unknown>:0
>>> at OpenSim.Application.Main (System.String[] args) [0x00000] in<filename unknown>:0
>>>
>>> _______________________________________________
>>> Opensim-users mailing list
>>> Opensim-users at lists.berlios.de
>>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>>
>>
>>
>> --
>> Justin Clark-Casey (justincc)
>> http://justincc.org/blog
>> http://twitter.com/justincc
>> _______________________________________________
>> Opensim-users mailing list
>> Opensim-users at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/opensim-users
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
--
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc
More information about the Opensim-users
mailing list