c++ - libjpeg 安装 - 如何完成说明

标签 c++ visual-studio-2015 installation data-conversion libjpeg

我在安装 libjpeg 时遇到问题。我需要它以便使用 CImg 库并可以保存 .jpg 文件。 我从以下位置下载文件: http://www.ijg.org/并按照说明逐步进行(我使用 VS2015)。 不幸的是我无法通过第一点:

  1. Open the command prompt, change to the main directory and execute the command line NMAKE /f makefile.vc setup-v10

我在命令提示符中遇到错误:error message

fatal error U1025:file 'makefile.vc' not found

你能告诉我出了什么问题吗?或者,也许您知道安装此库的一些最简单方法?

最佳答案

fatal error

fatal error U1025:file 'makefile.vc' not found

是由于 nmake 在执行命令的文件夹中找不到文件 makefile.vc 造成的

NMAKE /f makefile.vc setup-v10

查看源 zip 文件,源位于 jpeg-9b 文件夹中。

要解决此问题,您需要在运行 nmake 命令之前将命令提示符 cmd.exe 的目录更改为 jpeg-9b 文件夹。为此,请在 cmd.exe session 中使用 cd 命令。语法是

cd fullpath

其中 fullpath 是您拥有 jpeg-9b 文件夹的完整路径。如果您的路径包含空格,请确保用双引号将路径引起来。

关于c++ - libjpeg 安装 - 如何完成说明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45020594/

相关文章:

c++ - Visual C++ 2015 表达 : _stat not working on Windows XP

linux - 在没有 sudo 访问权限的情况下安装 perl 模块

node.js - 无法使用 npm 安装 phonegap

tomcat - 最佳实践 : bundling tomcat and configuring SSL with a keystore

c++ - 将两个正则表达式结果连接到一个输出字段中,但一次只能有一个

c++ - Visual Studio 2013 中的函数模板替换错误?

c++ - for循环包括指针

c++ - CLI 构建的嵌入式 C++ 的 Visual Studio 自定义构建定义

c++ - Linux 中的 sprintf uint64_t

sql - Visual Studio 2015 生成实体关系图