Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Magick.NET-Q16-HDRI-x64.Native.dll #25

Closed
stefanneculai opened this issue Nov 21, 2016 · 28 comments
Closed

Missing Magick.NET-Q16-HDRI-x64.Native.dll #25

stefanneculai opened this issue Nov 21, 2016 · 28 comments
Labels

Comments

@stefanneculai
Copy link

stefanneculai commented Nov 21, 2016

When initializing an ImageMagick object, the following error is being thrown on MacOS:

System.DllNotFoundException: Unable to load DLL 'Magick.NET-Q16-x64.Native.dll': The specified module could not be found.

I am including "Magick.NET.Core-Q16": "7.0.3.502" as a dependency.

@dlemstra
Copy link
Owner

dlemstra commented Nov 21, 2016

Running this library on Mac is currently not supported. And to add support I would need to buy/receive a Mac so I don't think this will happen anytime soon. Windows is only supported for now but I do hope that I will be able to add support for Linux next year.

@stefanneculai
Copy link
Author

stefanneculai commented Nov 21, 2016

To me it looks like an incorrect reference. It is installing Magick.NET-Q16.Native, but then looking to reference Magick.NET-Q16-x64.Native. That -x64 appears to be the problem.

@dlemstra
Copy link
Owner

You are getting this message because the Magick.NET.Core library has determined that you are running the application in a 64-bit environment. It will then try to load the library that contains the native code. This library is called Magick.NET-Q16-x64.Native.dll on Windows. But there is no native library available on Mac and that is why it fails.

@darkguy2008
Copy link

It's 2017 and I'm still getting the same error. Any alternatives to this lib for macOS ? final target is Windows/Linux but I need to develop this on a Mac. Also @dlemstra you could just get OSX in a VM and build the library, it's not that hard :P

@dapoulin
Copy link

Getting the same issue today too...

@dlemstra
Copy link
Owner

@dapoulin Are you running on Mac? I might be able to build on a Mac this weekend with the help of VSTS. Will try to get a binary for mac then.

@dapoulin
Copy link

Yes, I am running on Mac only. I tried also to build on mac without success... So if you are able to provide a binary for mac, it would be great (Thank you so much in advance!). Currently we are using the imagemagick libs with sh scripts but are migrating to your port (Magick.Net ) solution. In that way, it would be possible for use to provide solutions running on mac too :-)

@winiciuscota
Copy link

Getting this same error on linux.

@marchanddesable
Copy link

same for me...
.net core 2.0, visualstudio windows => docker linux
that's the 2nd lib that I try.... I will have to find something else... ):

@dlemstra
Copy link
Owner

@marchanddesable Can you give the latest release another try?

@marchanddesable
Copy link

@dlemstra I have installed Magick.NET-Q8-x64 from nugets.
It works, and the quality is better than ImageSharp, so I will use your library.

Thank you.

@winiciuscota
Copy link

Magick.NET-Q8-x64 7.4.2 is working for me as well. (developing on archlinux and deploying to ubuntu).

Thank you.

@Hlautameki
Copy link

Hi, it still doesn't work on mac os:
"Unable to load DLL 'Magick.NET-Q16-x64.Native.dll': The specified module or one of its dependencies could not be found.\n (Exception from HRESULT: 0x8007007E)"

@dlemstra
Copy link
Owner

Still working on adding support for macos. No idea when it will be available .

@gimlichael
Copy link

gimlichael commented Aug 17, 2018

Same error when setting deployment mode to Self-Contained. I think you should look more into .NET Core and the various ways of deploying. Otherwise, keep up the good work.

Workaround: manually copy the Magick.NET-Q8-x64.Native.dll to your published self-contained solution.

@dlemstra
Copy link
Owner

@gimlichael Which OS are you working on, and with which version did you experience this issue?

@gimlichael
Copy link

@dlemstra my developer machine is a Windows 8.1 with Visual Studio 2017 Enterprise version.

The version of your fine product is 7.6.0 (latest).

The scenario I am experiencing the issue with, is a self-contained deployment to Windows Azure Web App. Behind the scene, Web App uses either Windows 2016 or a Linux variant. Server is Kestrel and application is a ASP.NET Core 2.1 project.

@roduman
Copy link

roduman commented Jun 18, 2019

Unable to load DLL 'Magick.Native-Q16-x64.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E) - in last version 7.14.0

@hermanho
Copy link

Unable to load DLL 'Magick.Native-Q16-x64.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E) - in last version 7.14.0

Are you install with Magick.NET-Q16-AnyCPU? I have same error and it is caused by the dll is missing in nuget package (#467). It should works when you install with Magick.NET-Q16-x64 nuget package.

@dlemstra
Copy link
Owner

@roduman You are probably experiencing the same issue as reported in #467. A new release will be published soon.

@jlankitus
Copy link

Hello! What is the status on the OSX support? I see that the .dylib is available, but I still get errors including it '.dll not found exception' (I'm attempting to use it within Unity 3D 2019.3)

@Kingtem
Copy link

Kingtem commented Feb 27, 2020

Hi, any news about OSX support?

@dlemstra
Copy link
Owner

dlemstra commented Feb 27, 2020

Support for macOS is available. Why is this not working for you @Kingtem?

@Kingtem
Copy link

Kingtem commented Feb 28, 2020

@dlemstra I use it in Unity 2019.2 and 2019.3. Everything is ok on Windows, but on Mac I got these error:
DllNotFoundException: Magick.Native-Q8-x64.dll
ImageMagick.Environment+NativeEnvironment.Initialize () (at <45da00cce4a742bfa949fe9dfd56ed5d>:0)
ImageMagick.Environment.Initialize () (at <45da00cce4a742bfa949fe9dfd56ed5d>:0)
ImageMagick.MagickSettings+NativeMagickSettings..cctor () (at <45da00cce4a742bfa949fe9dfd56ed5d>:0)
Rethrow as TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception.
ImageMagick.MagickSettings..ctor () (at <45da00cce4a742bfa949fe9dfd56ed5d>:0)
ImageMagick.MagickImage..ctor () (at <45da00cce4a742bfa949fe9dfd56ed5d>:0)

@dlemstra
Copy link
Owner

You might want to chat with @jlankitus. He reported something similar in #570.

@jlankitus
Copy link

@Kingtem hello! I haven't resolved this yet, but I'd appreciate if you upvote my issue on the Unity bug tracker. I've spent alot of time trying to fix this bug, and it seems to be specific to Unity's handling of .dylib files. Let's chat more on this, I need to figure this out as soon :)

@Kingtem
Copy link

Kingtem commented Mar 5, 2020

@jlankitus Sure! I've voted. That's a really weird problem. Now I try to use Unity 2019.1 but still dosent work, could you share some experience about the older Unity solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests