Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 HCN · Jul 06, 2015 at 02:48 PM · c#dllmacosxdllnotfoundexceptioncairo

DllNotFoundException libcairo.so.2 on MacOS

Hi everyone,

I think I have a long time problem between the importation of project from Windows to MacOS.

I have made a project on Windows using Mono.Cairo to draw the texture of a GameObject.

  • I have set the Api Compatibility Level to .NET 2.0.

  • I have added the Mono.Cairo.dll in the Plugins folder.

It works perfectly fine with Windows. So I made a build for MacOS and tried it: it didn't work. So I installed Cairo on my Mac and I imported my Unity project (I tried to cut/paste the project and to make a package) in my MacOS and saw the errors below in my Unity editor: "DllNotFoundException: libcairo.so.2 - Cairo.ImageSurface..ctor(...."

I searched on the web and tried several solutions:

  • I changed the Mono.Cairo.dll of my project by the one I found in MonoDevelop Frameworks (for MacOS).

  • I renamed the name of my libcairo.2.dylib file to libcairo.so.2.dll.bundle like said in ANSWER.

  • I tried to change the config file in my Unity.app by changing either the name of the dll or its path (see HERE).

  • I may have kind of the same problem as HERE but I am not building the lib Mono.Cairo, how can I be sure it is a 32 bits bundle?

With all these tests, the result was the same: the dll using Mono.Cairo could not be found. So my last resort is to ask the community to see if anyone has a new idea to this problem? (By the way, it didn't work on Android as well)

Should this libcairo.so.2 file be a dll file or a dylib or a bundle? Can I have .bundle or .dylib in my Plugins folder, or should it always be .dll?

If you want more details, fell free to ask them.

Bye!

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
Best Answer

Answer by HCN · Jul 07, 2015 at 09:40 AM

The Mono.Cairo.dll I used in Unity in the Mac came from the MonoDevelop Framework (/Applications/Unity/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/2.10.11/lib/mono/2.0/Mono.Cairo.dll).

Instead, I made a project with Xamarin Studio using Mono.Cairo and get back this Mono.Cairo.dll. I crushed the dll in the Plugins folder by this one and it seems I have no longer this reference problem.

However I now have an other error, but this is another problem:

 InvalidProgramException: Invalid IL code in Cairo.ImageSurface:get_Data (): IL_0000: ret 


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

2 People are following this question.

avatar image avatar image

Related Questions

InvalidProgramException: Invalid IL code with Mono.Cairo on MacOS 0 Answers

Multiple Cars not working 1 Answer

DllNotFoundException: Msacm32.dll 1 Answer

Distribute terrain in zones 3 Answers

DllNotFoundException on Mac OS X, only when Playing in Editor 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