[Mono-list] Mono Embedding in Visual Studio 2008

kbar whereiskent at gmail.com
Sun Sep 13 14:11:49 EDT 2009


Just to update on my last post. I thought maybe the def file was wrong
because it was from the latest sources so I downloaded the one that is meant
to be for the same release version from here

http://ftp.novell.com/pub/mono/sources-stable/

mono-2.4.2.3.tar.bz2

Which is the same version as the package from here

http://www.go-mono.com/mono-downloads/download.html

But I still get the same result. It just crashes.



kbar wrote:
> 
> I am getting the exact same problem.
> 
> (1) I installed Mono via the download link for Windows from here 
> 
> http://www.go-mono.com/mono-downloads/download.html
> 
> (2) Downloaded the latest source package "mono-141776.tar.bz2" from here
> (just so I can get mono.def) 
> 
> http://mono.ximian.com/monobuild/snapshot/sources-trunk/
> 
> Grabbed the mono.def file from the msvc directory (why doesn't msvc it
> ship with the windows install?)
> 
> Created my lib with "lib /def:mono.def /out:mono.lib /machine:x86"
> 
> My project compiles, links runs but crashes when "mono_jit_init" is
> called.
> 
> I have no idea how to debug this.
> 
> Thanks,
> Kent
> 
> 
> 
> 
> Robert Jordan wrote:
>> 
>> Yenian wrote:
>>> I'm attempting to embed Mono in a DirectX10 application under VS 2008
>>> and
>>> Vista x64 for a school project.  I have done the following things:
>>> 
>>> 1) Installed Mono via the download link above.
>>> 2) Acquired the source from SVN and compiled the MSVC directories to
>>> obtain
>>> new versions of mono.lib and mono.dll
>> 
>> Wrong. Step one already provides everything you need to embed mono.
>> There is no need to mess with compiling mono yourself.
>> 
>> The only missing file might be mono.lib, the import library
>> of mono.dll, but you can create this file with VS' lib.exe
>> tool from msvc/mono.def (from mono's sources):
>> 
>> cd msvc
>> lib /def:mono.def /out:mono.lib /machine:x86
>> 
>> 
>>> 3) Replaced those files in the standard Mono-2.2 installation
>>> directories. 
>>> (This might've been a bad idea)
>> 
>> That gives bonus points ;-)
>> 
>> Robert
>> 
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Mono-Embedding-in-Visual-Studio-2008-tp22681009p25405800.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list