ImageMagick的使用VS2012

编程入门 行业动态 更新时间:2024-10-10 06:15:36
本文介绍了ImageMagick的使用VS2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

首先非常感谢您阅读我的主题。

First thanks a lot for reading my thread.

我试图使用 ImageMagick的是 VS2012 在 Windows 7的64位作为图像旋转。下面是我所做的:

I am trying to use ImageMagick with VS2012 on Windows 7 64-bit for image rotation. Here is what I did:

  • ImageMagick的的窗户,并解压缩。

    进入\\ ImageMagick的-6.8.8 \\ VisualMagick \\配置\\文件夹,在VS2012开放configure.dsw,并构建它。它是成功的。

    Go to \ImageMagick-6.8.8\VisualMagick\configure\ folder, open configure.dsw in VS2012, and build it. It was successful.

    开放configure.exe在\\ ImageMagick的-6.8.8 \\ VisualMagick \\配置\\,然后单击下一步 - >完成使用默认设置

    open configure.exe in \ImageMagick-6.8.8\VisualMagick\configure\, and click "next" -> "finish" with default settings.

    第3步之后,一个VisualDynamicMT.sln在\\ ImageMagick的-6.8.8 \\ VisualMagick产生。我打开了它,并将其设置为64位版本,然后我点击重建。

    After step 3, an VisualDynamicMT.sln is generated in \ImageMagick-6.8.8\VisualMagick. I opened it, and set it to x64 release, then I clicked "rebuild".

    有些项目的成功建成,但许多失败(共约30个项目,约2/3的项目不合格的建筑)

    Some of the projects were built successfully, but many failed (total some 30 projects, and about 2/3 projects failed building)

    ----------有许多奇怪的错误,如:-------------

    ----------There are many weird errors, such as:-------------

    致命错误C1083:无法打开包含文件:'bzlib.h:没有这样的文件或目录

    fatal error C1083: Cannot open include file: 'bzlib.h': No such file or directory

    致命错误C1083:无法打开包含文件:'cairo.h:没有这样的文件或目录

    fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory

    ......

    然后我搜索,例如cairo.h'在下载\\ ImageMagick的-6.8.8 \\文件夹,它甚至不是在那里!这是非常令人沮丧。该软件包是无法与它需要的一切来吗?现在我甚至不确定我可以用ImageMagick的使用VS2012?

    Then I searched, for example, 'cairo.h' in the downloaded \ImageMagick-6.8.8\ folder, it is not even in there!!! This is very frustrating. The package is not coming with everything it needs? Now I am not even sure can I use ImageMagick with VS2012?

    任何人有这个问题的经验吗?如何使用VS2012构建ImageMagick的?我完全失去了。万分感谢锋线。

    Anyone has any experience with this topic? How to build ImageMagick with VS2012? I am totally lost. Thanks a million up front.

    推荐答案

    您的可以建立 ImageMagick的在 64位是 VS2012

    只要按照下面的步骤:

  • 从下载 www.imagemagick/download/ ImageMagick-windows.zip窗户。此文件包含最新的源$ C ​​$ C。

  • Download ImageMagick-windows.zip from www.imagemagick/download/windows. This file contains the latest source code.

    打开configure.exe。如果你想建立ImageMagick的64位版本,请务必检查构建64位的分布,在构建选项。点击下一步 - >下一步 - >完成

    Open configure.exe in \ImageMagick-6.X.X\VisualMagick\configure. If you want to build a 64 bit version of ImageMagick make sure you check "Build 64-bit distribution" in the "Build options". Click "next" -> "next" -> "finish".

    第3步之后,一个VisualDynamicMT.sln在\\ ImageMagick的-6.X.X \\ VisualMagick产生。执行文件UpgradeToVS2012.cmd(需要Powershell的)来升级您的解决方案VS2012。你也可以打开文件VisualDynamicMT.sln不运行UpgradeToVS2012.cmd的编辑: 由于不再需要这个步骤的ImageMagick的最新版本

    After step 3, an VisualDynamicMT.sln is generated in \ImageMagick-6.X.X\VisualMagick. Execute the file "UpgradeToVS2012.cmd" (requires Powershell) to upgrade your solution to VS2012. You can also just open the file VisualDynamicMT.sln without running "UpgradeToVS2012.cmd". With the latest version of ImageMagick this step is no longer required.

    打开解决方案之后确保你改变平台,在下拉到x64,如果你勾选生成64位分配在步骤2中您现在准备建立ImageMagick的。

    After opening the solution make sure you change the platform in the dropdown to x64 if you checked "Build 64-bit distribution" in step 2. You are now ready to build ImageMagick.

  • 更多推荐

    ImageMagick的使用VS2012

    本文发布于:2023-11-12 14:08:15,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1581711.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:ImageMagick

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!