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

ImageMagic 7.0.7.28-1 cannot open shared object file #3939

Closed
teruo41 opened this issue Jun 12, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@teruo41
Copy link

commented Jun 12, 2018

Hi,

I've installed ImageMagic package of mingw-w64-x86_64-imagemagick 7.0.7.28-1 and encountered a problem:

$ convert --version
C:/msys64/mingw64/bin/convert.exe: error while loading shared libraries: libMagickWand-7.Q16HDRI-5.dll: cannot open shared object file: No such file or directory

I've confirmed the dll file exsists in my filesystem as follows.

$ ldd /mingw64/bin/convert
        ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ff9971b0000)
        KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ff996e20000)
        KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7ff993600000)
        msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7ff996f00000)
        libMagickCore-7.Q16HDRI-5.dll => /mingw64/bin/libMagickCore-7.Q16HDRI-5.dll (0x6c100000)
        libMagickWand-7.Q16HDRI-5.dll => /mingw64/bin/libMagickWand-7.Q16HDRI-5.dll (0x71180000)
        USER32.dll => /c/WINDOWS/System32/USER32.dll (0x7ff994c20000)
        ADVAPI32.dll => /c/WINDOWS/System32/ADVAPI32.dll (0x7ff997070000)
        sechost.dll => /c/WINDOWS/System32/sechost.dll (0x7ff996b70000)
        win32u.dll => /c/WINDOWS/System32/win32u.dll (0x7ff993a20000)
        GDI32.dll => /c/WINDOWS/System32/GDI32.dll (0x7ff994b90000)
        RPCRT4.dll => /c/WINDOWS/System32/RPCRT4.dll (0x7ff994fe0000)
        gdi32full.dll => /c/WINDOWS/System32/gdi32full.dll (0x7ff993a40000)
        WS2_32.dll => /c/WINDOWS/System32/WS2_32.dll (0x7ff996db0000)
        msvcp_win.dll => /c/WINDOWS/System32/msvcp_win.dll (0x7ff993880000)
        libwinpthread-1.dll => /mingw64/bin/libwinpthread-1.dll (0x64940000)
        ucrtbase.dll => /c/WINDOWS/System32/ucrtbase.dll (0x7ff993920000)
        libgomp-1.dll => /mingw64/bin/libgomp-1.dll (0x63600000)
        libgcc_s_seh-1.dll => /mingw64/bin/libgcc_s_seh-1.dll (0x61440000)
        libbz2-1.dll => /mingw64/bin/libbz2-1.dll (0x626c0000)
        libfontconfig-1.dll => /mingw64/bin/libfontconfig-1.dll (0x64f80000)
        libfreetype-6.dll => /mingw64/bin/libfreetype-6.dll (0x693c0000)
        libfftw3-3.dll => /mingw64/bin/libfftw3-3.dll (0x70680000)
        liblcms2-2.dll => /mingw64/bin/liblcms2-2.dll (0x6b240000)
        libltdl-7.dll => /mingw64/bin/libltdl-7.dll (0x6d480000)
        libraqm-0.dll => /mingw64/bin/libraqm-0.dll (0x65940000)
        liblqr-1-0.dll => /mingw64/bin/liblqr-1-0.dll (0x6fec0000)
        zlib1.dll => /mingw64/bin/zlib1.dll (0x62e80000)

Does anyone have any ideas?
I'm using mingw on Windows 10 64 bit environment.

Thanks,

@Alexpux

This comment has been minimized.

Copy link
Member

commented Jun 18, 2018

Run convert in cmd, not msys2 shell and it will show you real missing library

@teruo41

This comment has been minimized.

Copy link
Author

commented Jun 18, 2018

Thank you for your reply.

I had to install mingw-w64-x86_64-libxml2, and it works fine now.

Thank you very much!

@teruo41 teruo41 closed this Jun 18, 2018

@mati865

This comment has been minimized.

Copy link
Contributor

commented Jun 18, 2018

It still needs to be added to the dependencies so other users don't encounter this issue.

@SilverRainZ

This comment has been minimized.

Copy link

commented Sep 19, 2018

Hello @Alexpux , sorry for commenting under a closed issue.

I want to know why the missing library error messages are different in cmd and msys2 shell, can you please tell me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.