如何为Windows安装libjpeg? [英] how to install libjpeg for windows?

查看:307
本文介绍了如何为Windows安装libjpeg?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了一些使用libjpeg的代码,但是源文件中没有dll,并且我试图使其正确编译/执行。



我使用的是VS2010:我的源文件中的
#include jpeglib.h Linker>输入>其他依赖项我有 jpeg.lib ,在我的计算机上都找不到这两个依赖项。



我设法去了这里: http://gnuwin32.sourceforge.net/packages/ jpeg.htm ,并下载了开发人员文件档案,其中确实包含标头和.lib文件。程序可以正常编译,但是当我执行.exe时,出现了我不理解的 jpeg62.dll丢失错误。



我应该如何解决?



首先,我找不到任何jpeg62.dll



第二,我想知道为什么需要dll,因为我认为使用.lib文件作为链接意味着我不需要dll。我的程序要运行。
感谢您的帮助

解决方案

您还应该从GnuWin32网站下载 binaries和 dependencies软件包。 。 jpeg62.dll在 binaries归档文件的bin目录中。



.lib文件并不总是完整的静态库,它也可以是dll的导入库,然后在程序运行时必须存在。 / p>

I downloaded some code that make use of libjpeg, but no dlls in the source files are included, and I'm trying to make it compile / execute correctly.

I am using VS2010: in my source files I have #include "jpeglib.h" and in Linker > Input > Additional Dependencies I have jpeg.lib, both of which can't be found on my computer.

I managed to go here : http://gnuwin32.sourceforge.net/packages/jpeg.htm and downloaded the "developer files" archives, which indeed contains the header and the .lib file. The programs compiles fine, but when I execute the .exe I have a jpeg62.dll missing error that I don't understand.

How am I supposed to solve this?

First off, I couldn't find any jpeg62.dll file on the previous website.

Secondly, I wonder why I need a dll since I thought that using .lib files for the link meant that I wouldn't need dlls for my programm to run. Any help is appreciated

解决方案

You should also download the "binaries" and "dependencies" packages from the GnuWin32 site. The jpeg62.dll is in the bin directory of the "binaries" archive.

A .lib file isn't always a complete static library, it can also be an import library for a dll which then must be present when the program is run.

这篇关于如何为Windows安装libjpeg?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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