ImageMagick的使用VS2012 [英] ImageMagick with VS2012

查看:648
本文介绍了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:


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

只要按照下面的步骤:


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

  1. Download ImageMagick-windows.zip from http://www.imagemagick.org/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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆