osgrid.org
https://forums.osgrid.org/

NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]
https://forums.osgrid.org/viewtopic.php?f=14&t=4631
Page 1 of 1

Author:  Nebadon Izumi [ Wed Jan 16, 2013 11:33 am ]
Post subject:  NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

I didnt want to flood the main posting out for Mono-3.0.3 instructions so I am moving all comments to this channel.
http://forums.osgrid.org/viewtopic.php?f=14&t=4625

Author:  Nebadon Izumi [ Wed Jan 16, 2013 2:59 pm ]
Post subject:  Re: NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

I went through the entire instruction set on Kubuntu 12.10 even got monodevelop working I adjusted the directions there was a bunch missing to get monodevelop working proper.

Author:  Roken Price [ Wed Jan 16, 2013 6:16 pm ]
Post subject:  Re: NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

You don't need monodevelop (unless you are planning on writing your own extension) - just mono is enough for opensim.

Author:  Nebadon Izumi [ Wed Jan 16, 2013 6:30 pm ]
Post subject:  Re: NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

right, in fact after experiencing some issues with monodevelop i have since pulled it from these instructions until we can get it working more reliably hopefully next version of mono!

Author:  Spectre Draconia [ Tue Jan 29, 2013 11:09 am ]
Post subject:  Re: NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

Successfully compiled on CentOS 6/EL6.

Had to make sure mono 2.10 was installed and just keep hitting make when errors popped up.

Author:  Roken Price [ Tue Jan 29, 2013 4:16 pm ]
Post subject:  Re: NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

I built it without issue on Arch - but there's an AUR package - all I had to do was install mono-git :)

Author:  Eudaimon Enterprises [ Thu May 16, 2013 1:43 am ]
Post subject:  Re: NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

Spectre Draconia {L_WROTE}:
Successfully compiled on CentOS 6/EL6.

Had to make sure mono 2.10 was installed and just keep hitting make when errors popped up.


http://download.opensuse.org/repositori ... o:EL6.repo

Author:  christoph balhaus [ Sat Sep 07, 2013 2:37 pm ]
Post subject:  Re: NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

Mono 3.2.1 works fine for my SIMs on CentOS 6.4.

To build on i686 or x86_64 architectures of CentOS6, Scientific Linux and probably other RHEL6 clones use the following instructions. It works for all revisions of mono since 3.0.

Start with a minimal install or with whatever your server comes with:

{L_CODE}:
yum -y update
yum -y install libpng-devel libexif-devel libjpeg-devel giflib-devel gettext make
yum -y install fontconfig-devel glib2-devel libX11-devel libtiff-devel gcc-c++

# workaround for a bug in several mono makefiles
# see http://mono.1490590.n4.nabble.com/Can-t-seem-to-compile-gdiplus-from-svn-td1549340.html
export echo=echo

# don't install into a system directory as we don't follow RHEL conventions on 64bit systems
export INST_PATH=/opt/opensim/mono-3.2.1

curl --get http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2 | tar xjf -
cd libgdiplus-2.10.9
./configure --prefix=${INST_PATH}
make && make install
cd ..

curl --get http://download.mono-project.com/sources/mono/mono-3.2.1.tar.bz2 | tar xjf -
cd mono-3.2.1
./configure --prefix=${INST_PATH}
make && make install
cd ..

# tell ld about the libraries
/sbin/ldconfig ${INST_PATH}/lib

# to make ld configuration permanent use
echo "${INST_PATH}/lib" > /etc/ld.so.conf.d/mono-3.2.1.conf
/sbin/ldconfig

It requires root privileges. Use sudo where appropriate when you want to compile without.

Author:  Richardus Raymaker [ Thu Dec 05, 2013 10:25 am ]
Post subject:  Re: NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

Did anybody try to compile mono 4.2.5 on opensuse 13.1 ?
Or better tried to compile libgdiplus. compile fail here with error.
Sofar i have found its maby something with latest libgif version,
but yast dont have older version available.

{L_CODE}:
                     ^
In file included from gifcodec.c:38:0:
/usr/include/gif_lib.h:129:14: note: previous declaration of 'EGifOpen' was here
GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc, int *Error);
              ^
gifcodec.c: In function 'AddExtensionBlockMono':
gifcodec.c:125:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
  ep->Bytes = (char *)GdipAlloc(ep->ByteCount);
            ^
gifcodec.c:132:21: error: 'SavedImage' has no member named 'Function'
   ep->Function = New->Function;
                     ^
gifcodec.c: In function 'DGifSlurpMono':
gifcodec.c:235:45: error: 'SavedImage' has no member named 'Function'
     if (DGifGetExtension(GifFile, &temp_save.Function, &ExtData) == GIF_ERROR) {
                                             ^
gifcodec.c:248:15: error: 'SavedImage' has no member named 'Function'
      temp_save.Function = 0;
               ^
gifcodec.c: In function 'gdip_load_gif_image':
gifcodec.c:307:3: error: too few arguments to function 'DGifOpen'
   gif = DGifOpen(stream, &gdip_gif_fileinputfunc);
   ^
In file included from gifcodec.c:38:0:
/usr/include/gif_lib.h:181:14: note: declared here
GifFileType *DGifOpen(void *userPtr, InputFunc readFunc, int *Error);    /* new one (TVT) */
              ^
gifcodec.c:309:3: error: too few arguments to function 'DGifOpen'
   gif = DGifOpen (stream, &gdip_gif_inputfunc);
   ^
In file included from gifcodec.c:38:0:
/usr/include/gif_lib.h:181:14: note: declared here
GifFileType *DGifOpen(void *userPtr, InputFunc readFunc, int *Error);    /* new one (TVT) */
              ^
gifcodec.c: In function 'gdip_save_gif_image':
gifcodec.c:664:3: error: too few arguments to function 'EGifOpenFileName'
   fp = EGifOpenFileName (stream, 0);
   ^
In file included from gifcodec.c:38:0:
/usr/include/gif_lib.h:126:14: note: declared here
GifFileType *EGifOpenFileName(const char *GifFileName,
              ^
gifcodec.c:705:5: warning: implicit declaration of function 'MakeMapObject' [-Wimplicit-function-declaration]
     cmap = MakeMapObject(cmap_size, 0);
     ^
gifcodec.c:705:10: warning: assignment makes pointer from integer without a cast [enabled by default]
     cmap = MakeMapObject(cmap_size, 0);
          ^
gifcodec.c:796:11: warning: assignment makes pointer from integer without a cast [enabled by default]
     cmap  = MakeMapObject (cmap_size, 0);
           ^
gifcodec.c:827:5: warning: implicit declaration of function 'QuantizeBuffer' [-Wimplicit-function-declaration]
     if (QuantizeBuffer(bitmap_data->width, bitmap_data->height, &cmap_size,
     ^
gifcodec.c:833:4: warning: implicit declaration of function 'BitSize' [-Wimplicit-function-declaration]
    cmap->BitsPerPixel = BitSize (cmap_size);
    ^
gifcodec.c:851:7: warning: implicit declaration of function 'EGifPutExtensionFirst' [-Wimplicit-function-declaration]
       EGifPutExtensionFirst(fp, APPLICATION_EXT_FUNC_CODE, 11, "NETSCAPE2.0");
       ^
gifcodec.c:852:7: warning: implicit declaration of function 'EGifPutExtensionLast' [-Wimplicit-function-declaration]
       EGifPutExtensionLast(fp, APPLICATION_EXT_FUNC_CODE, 3, Buffer);
       ^
gifcodec.c:904:4: warning: implicit declaration of function 'FreeMapObject' [-Wimplicit-function-declaration]
    FreeMapObject (cmap);
    ^
make[2]: *** [gifcodec.lo] Error 1
make[2]: Leaving directory `/home/rrgrid/source/libgdiplus/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rrgrid/source/libgdiplus'
make: *** [all] Error 2

Author:  fine Dreadlow [ Mon Apr 07, 2014 10:59 am ]
Post subject:  Re: NOTES/COMMENTS: Compile Mono 3.0.3 source [Universal *nix]

sorry to say, but i got no better results with mono 3. i've used opensim with mono 2.10 as well..
the only difference i can see is that the machine talks much more then bevor.

any suggestions?

fine

edit: and much PUT FAILED arround.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/