Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by corintho · Dec 06, 2012 at 05:20 PM · unityeditormacdll

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:

  1. Do I need the UnityPro Plugin feature for this to work with Unity?

  2. How can I have that remapping working on MacOS Standalone player?

  3. 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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges