[MonoDevelop] Automatic Resource ID's

Andy Selvig ajselvig at gmail.com
Sat Jan 17 13:27:25 EST 2009


> Yes. However, due to a few VS compatibility issues in 2.0 alpha 2, I'd
> strongly suggest trunk (or the upcoming b1).

Ok, I downloaded and installed trunk (rev 123685).

> Yes, you can't mix project formats within a solution. New projects
> have the same format as the solution.

Well, I changed everything over to my VS 2008 solution and recreated
the project in question. It seems to work now (no issues with
duplicate resource names). I am, however, getting a peculiar problem
where it doesn't seem to be reading .config files correctly and is
looking for the Windows dll names not Linux.

Specifically, I reference Tao.FreeType.dll, which needs
libfreetype.so.6 on Linux and freetype6.dll on Windows. The file
Tao.FreeType.dll.config contains the following:

<configuration>

	<dllmap dll="freetype6.dll">

    		<dllentry os="linux" dll="libfreetype.so.6" />

    		<dllentry os="windows" dll="freetype6.dll" />

    		<dllentry os="osx"
dll="/Library/Frameworks/Mono.framework/Libraries/libfreetype.6.dylib"
/>

    	</dllmap>

</configuration>

However, when I run the application, Mono isn't looking for the correct dll:

(MonoWorks.DemoGtk:22333): Mono-WARNING **: DllImport unable to load
library 'libfreetype6.dll: cannot open shared object file: No such
file or directory'.
Mono-INFO: DllImport attempting to load: 'freetype6.dll'.
Mono-INFO: DllImport loading location: 'libfreetype6.dll.so'.
Mono-INFO: DllImport error loading library: 'libfreetype6.dll.so:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libfreetype6.dll.so'.
Mono-INFO: DllImport error loading library './libfreetype6.dll.so:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'freetype6.dll'.
Mono-INFO: DllImport error loading library 'freetype6.dll: cannot open
shared object file: No such file or directory'.
Mono-INFO: DllImport loading location: 'libfreetype6.so'.
Mono-INFO: DllImport error loading library: 'libfreetype6.so: cannot
open shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libfreetype6.so'.
Mono-INFO: DllImport error loading library './libfreetype6.so: cannot
open shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'freetype6'.
Mono-INFO: DllImport error loading library 'freetype6: cannot open
shared object file: No such file or directory'.
Mono-INFO: DllImport loading location: 'libfreetype6.dll.so'.
Mono-INFO: DllImport error loading library: 'libfreetype6.dll.so:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading library: './libfreetype6.dll.so'.
Mono-INFO: DllImport error loading library './libfreetype6.dll.so:
cannot open shared object file: No such file or directory'.
Mono-INFO: DllImport loading: 'libfreetype6.dll'.
Mono-INFO: DllImport error loading library 'libfreetype6.dll: cannot
open shared object file: No such file or directory'.

The proper library is, of course, /usr/lib/libfreetype.so.6. If I add
a symbolic link to make libfreetype6.dll.so point to
/usr/lib/libfreetype.so.6 (a total hack, I know), I just get a similar
error involving opengl32.dll (since I'm also using Tao.OpenGL.dll).

Rather than hack up my output directory with a bunch of symlinks, it
seems like there's just a setting wrong or something. BTW this all
worked fine when I was using the mdp's.

Any help would be appreciated.

Thanks again for all your help.


More information about the Monodevelop-list mailing list