[Opensim-users] INFO: Running OpenSim on NetBSD-Current

Ursula MATOVA ursula.matova at klintcentral.net
Sun Nov 2 12:58:14 UTC 2008


Hi all,

Just a quick post to share one of my latest experience with OpenSim :)

I'm proud to announce that I'm able to run OpenSim ( SVN.7058 ) on  
NetBSD-Current ( 4.99.73 with a 5.99.01 optimized kernel ).

Here are the main steps I have performed :

1/ Update PKGSRC with CVS,
2/ Install the following packages with the "make package" command :

devel/automake          --> AutoMake 1.10.1
devel/subversion
pkgsrc/databases/sqlite3
pkgsrc/lang/mono        --> MONO 2.0.1
pkgsrc/graphics/libgdiplus

3/ You need to rebuild libode.so and libopenjpeg-dotnet-2.1.3.0.so :

3a/ LIBODE :
svn co http://opensimulator.org/svn/opensim-libs/trunk opensim-libs
cd opensim-libs/unmanaged/OpenDynamicsEngine/
./configure --with-trimesh=gimpact  --enable-shared --prefix=/usr/pkg
make
make install

Then copy /usr/pkg/lib/libode.so.1.0 to your OpenSim bin directory :

cd <Your OpenSim bin directory>
cp -p /usr/pkg/lib/libode.so.1.0 libode.so

3b/ LIBOPENJPEG
svn co http://openmv.org/svn/libsl/libopenmetaverse/trunk/ openmv
cd openmv/openjpeg-dotnet

make the following changes to libopenjpeg/opj_malloc.h file :

$ diff -u opj_malloc.h.orig opj_malloc.h
--- opj_malloc.h.orig 2008-09-14 09:10:31.000000000 +0000
+++ opj_malloc.h 2008-09-14 09:10:40.000000000 +0000
@@ -67,7 +67,7 @@
   #include <mm_malloc.h>
   #define HAVE_MM_MALLOC
   #else /* MSVC, Intel C++ */
- #include <malloc.h>
+ #include <stdlib.h>
   #ifdef _mm_malloc
   #define HAVE_MM_MALLOC
   #endif
@@ -78,12 +78,13 @@
   /* Linux x86_64 and OSX always align allocations to 16 bytes */
   #elif !defined(__amd64__) && !defined(__APPLE__)
   #define HAVE_MEMALIGN
- #include <malloc.h>
+ #include <stdlib.h>
   #endif
  #endif

  #define opj_aligned_malloc(size) malloc(size)
  #define opj_aligned_free(m) free(m)
+#define memalign(A,B) malloc(B)

  #ifdef HAVE_MM_MALLOC
   #undef opj_aligned_malloc

Then run gmake and copy the new libopenjpeg-dotnet-2.1.3.0.so to your  
OpenSim bin directory ...


That allow me to run OpenSim on my NetBSD OS ...

==> BUT I'm not yet able to compile OpenSim with Nant under NetBSD ...  
So I did that step on my linux box .

Another strange thing is that the "OpenSim Library / Texture Library"  
folder appears empty ... Need to check that point, maybe it's due to  
the fact I haven't cleared my client cache :)

Hope this could help somebody

Regards,
Ursula Matova




More information about the Opensim-users mailing list