- Home /
How to use Mono dllname.dll.config with Unity?
What is working
have a Mono project (independent of Unity) using Cloo. Cloo uses native OpenCL.dll. In order to have it working in other platforms, I added the following file to my project: Cloo.dll.config, with contents:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<dllmap os="linux" dll="OpenCL.dll" target="libOpenCL.so"/>
<dllmap os="osx" dll="OpenCL.dll" target="/System/Library/Frameworks/OpenCL.framework/OpenCL"/>
</configuration>
That remaps the dll to the appropriate file both on Linux and on MacOSX (10.7).
What is the problem
ow I need to use Cloo.dll in a Unity project. I tried to include the Cloo.dll.config in many ways, but cannot have it working in any proper way. The project works perfectly on windows, both in "Play" mode and in a UnityEditor script.
Questions
hat brings me down to my questions:
Do I need the UnityPro Plugin feature for this to work with Unity?
How can I have that remapping working on MacOS Standalone player?
Is there anything different I need to do to have it working on UnityEditor in MacOS?
As a note, I do NOT include OpenCL.dll in the project, nor libOpenCL.so. I cannot do so, since they are available through the runtime installed in the system, and many times dependant on grphics card model and driver version.
Answer by Molt · Apr 02, 2013 at 01:07 PM
I was trying this myself recently and wasn't getting anywhere, then I was pointed towards your question here and you actually gave me enough information to get me thinking on the right lines and get it started.
The solution I'm using is documented at http://forum.unity3d.com/threads/173728-Has-anyone-done-OpenCL-Unity-on-Mac - let me know if there're any problems.
Your answer
Follow this Question
Related Questions
Metadata file Debug\Assembly-UnityScript-firstpass.dll' could not be found 4 Answers
In-app purchase "Invalid product" on Mac Store build 0 Answers
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
plugin dependencies 2 Answers
Unity UI not refresh. 0 Answers