[Opensim-dev] OpenSim on Mac G5
Hurliman, John
john.hurliman at intel.com
Mon Nov 24 07:55:11 UTC 2008
Somewhere in the output of "uname -a" you should be able to tell if it's a 32-bit or 64-bit Linux OS. If you paste the thread spew into e-mail I can take a peek to see if it is something with libopenjpeg-dotnet.dll or not. I recently found out that using OpenJPEG is *not* threadsafe, and locking needs to happen in OpenJpeg.cs inside libomv. Watch for an updated release soon.
John
From: opensim-dev-bounces at lists.berlios.de [mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Charles Krinke
Sent: Sunday, November 23, 2008 4:52 PM
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] OpenSim on Mac G5
Sorry, JHurliman, that didnt quite come out the way I had intended.
I loaded Linux on a seperate partition of this Mac as that seemed the most straightforward way to get it functioning as an OpenSim server. After this is figured out, I can then extend the notions to the OS X partition by rebooting the server.
So, this is an experiment to see how far our OpenSim notions can be extended. It is certainly not a complaint of any sort. It just seemed this was a good weekend to attempt to get some progress in the Mac and 64bit notions.
Charles
________________________________
From: Charles Krinke <cfk at pacbell.net>
To: opensim-dev at lists.berlios.de
Sent: Sunday, November 23, 2008 4:42:32 PM
Subject: Re: [Opensim-dev] OpenSim on Mac G5
Well, this Mac G5 has had Fedora 9 Linux installed by me, so I dont think the dylib's affect the situation.
I have been able to compile openjpeg-dotnet.dll from our svn and can get the "Mac Land" region up and running on OSGrid. The issue currently is that the region crashes with a mono thread spew when a login occurs. It looks like mono threads are getting wrapped all around each other as the crash occurs at different times in the login process.
For today, I am calling success at getting Linux installed, the source compiled with mono/nant and the region inserting itself into the grid. Fedora 9 comes with mono-1.9.1, which is just about the latest.
I am a little puzzled as to whether the system is running as 32bit or 64bit in Linux. Is there any way to tell? Although the install DVD iso image comes only one way, I assume it is 64bit.
So, some puzzles are solved and a few others are surfacing.
Charles
________________________________
From: "Hurliman, John" <john.hurliman at intel.com>
To: "opensim-dev at lists.berlios.de" <opensim-dev at lists.berlios.de>
Sent: Sunday, November 23, 2008 1:13:39 PM
Subject: Re: [Opensim-dev] OpenSim on Mac G5
OSX uses .dylib files for unmanaged (non-.NET<http://non-.NET>) code, not .dll or .so. I would say make sure you have libopenjpeg-2.1.3.0-dotnet-1.dylib (or something like that) but the fact that Mono is trying to access openjpeg-dotnet.dll means the DllMap seems to have failed. Make sure you have OpenMetaverse.dll.config in that directory, and that it contains a DllMap entry from openjpeg-dotnet.dll to the actual .dylib binary in your bin/ directory.
On a side note, I’ve been looking into a fully managed JPEG2000 codec. It’s quite a ways from complete right now (and certainly slower than unmanaged code), but might prove useful for certain specific tasks.
John
From: opensim-dev-bounces at lists.berlios.de [mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Charles Krinke
Sent: Sunday, November 23, 2008 11:34 AM
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] OpenSim on Mac G5
To amplify a tiny bit, the exception says basically:
System.DllNotFoundException: openjpeg-dotnet.dll.
The issue right now seems to be that an "ls open* -la" shows this file exists and is marked executable. So, I think there may be an underlying .so that is non existent at this point.
$ ls open*.dll -la
-rwxrwxr-x 1 ckrinke ckrinke 196608 2008-11-23 11:03 openjpeg-dotnet.dll
[
On a functioning x86 server, I can see libopenjpeg-1.0.0.so<http://libopenjpeg-1.0.0.so> and other files that are not on this Mac G5 in our opensim/bin/ directory. I did try copying the the files from /usr/lib that appear to be concerned with jpeg to our opensim/bin directory like this:
$ cp /usr/lib/libjp*.so* .
And the region still has the same System.DllNotFoundException.
So, anyone that can shed a little light on this puzzle would help me get some additional testing setup.
Charles
________________________________
From: Charles Krinke <cfk at pacbell.net>
To: opensim-dev at lists.berlios.de
Sent: Sunday, November 23, 2008 11:26:18 AM
Subject: [Opensim-dev] OpenSim on Mac G5
I have a Mac G5 available for testing for a little while and have installed Fedora 9 on it.
I can get OpenSim.exe compiled and the region up on OSGrid. There are a couple of issues. One solved, one not solved.
ODE: Using our wiki, I was able to make ODE. I observe that we seem to need to initialize ODE even when ODE is not specified in the OpenSim.ini file. We might want to eliminate that dependency.
The region does come up, but has a jpeg exception which is at the end of this email. At this point, I am a little puzzled with our various jpeg .so, .dll and such that are in svn. Looks like we are supplying an x86 version binary from svn.
In any case, a little help in getting past this jpeg exception would let me get to where we can test a bit more on a 64bit Mac G5.
10:47:04 - [MAPTILE]: Generating Maptile Step 1: Terrain
10:47:04 - [MAPTILE]: Generating Maptile Step 1: Done in 82 ms
10:47:04 - [MAPTILE]: Generating Maptile Step 2: Object Volume Profile
10:47:04 - [MAPTILE]: Generating Maptile Step 2: Done in 21 ms
Failed generating terrain map: System.DllNotFoundException: openjpeg-dotnet.dll
at (wrapper managed-to-native) OpenMetaverse.Imaging.OpenJPEG:DotNetAllocDecoded (OpenMetaverse.Imaging.OpenJPEG/MarshalledImage&)
at OpenMetaverse.Imaging.OpenJPEG.Encode (OpenMetaverse.Imaging.ManagedImage image, Boolean lossless) [0x00000]
at OpenMetaverse.Imaging.OpenJPEG.EncodeFromImage (System.Drawing.Bitmap bitmap, Boolean lossless) [0x00000]
at OpenSim.Region.Environment.Modules.World.WorldMap.MapImageModule.WriteJpeg2000Image (System.String gradientmap) [0x000bb] in /home/ckrinke/svn/opensim/OpenSim/Region/Environment/Modules/World/WorldMap/MapImageModule.cs:119
10:47:04 - [OGS1 GRID SERVICES]: Attempting to register region Mac Land with grid at http://osgrid.org:8001
10:47:05 - [OGS1 GRID SERVICES]: Region Mac Land successfully registered with grid at http://osgrid.org:8001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20081124/fa92c37a/attachment-0001.html>
More information about the Opensim-dev
mailing list