libjpegTurbo: libjpeg-62文件无法识别
libjpegTurbo: libjpeg-62 File not recognized
我尝试使用libjpeg-turbo与qt。我下载了libjpeg-turbo并安装了。我想在一个项目中使用它,但我得到了以下错误:
C:libjpeg-turbo-gcc64binlibjpeg-62.dll:-1: Error: file not .dllrecognized:文件格式未识别
当我删除libjpeg-62.dll时,我收到了以下错误:
C:testmain.cpp:8: Error: undefined reference to"tjInitCompress"
为什么libjpeg-62不能识别文件格式?
谢谢你的帮助,威利
p。下面是代码:
test.pro
QT += core
QT -= gui
TARGET = test
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
INCLUDEPATH += C:libjpeg-turbo-gcc64include
LIBS += -LC:libjpeg-turbo-gcc64bin -llibjpeg-62
main.cpp
#include <QCoreApplication>
#include <turbojpeg.h>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
tjhandle _jpegCompressor = tjInitCompress();
return a.exec();
}
现在可以运行了,
是错误的libjpeg-turbo版本。现在我使用libjpeg-turbo-gcc而不是libjpeg-turbo-gcc64。我还将lib - path更改为LIBS += "C://libjpeg-turbo-gcc64//bin//libjpeg-62.dll"
有限公司威利
相关文章:
- 我有两个类需要在同一 cpp 文件中相互引用,但第一个类无法识别第二个类类型的对象
- 如何识别项目是 QT 中的文件还是文件夹
- 无法识别 Mac c++ 文件系统库
- 我的头文件 DNode 中的我的数据类型未被识别为数据类型
- G++ 编译器无法识别 SQLAPI.h 头文件
- 生成库失败:无法识别文件格式;作为链接器脚本处理
- 从文件读取时"n"无法识别
- 如何让 + 重载在另一个文件C++中被识别?
- /usr/bin/ld: build-debug/obj/gpsitem.o: 文件无法识别: 文件被截断
- Visual Studio 停止识别任何包含文件
- "生成"无法识别文件正在被修改
- ifstream识别文件的末端
- 尝试生成makefile时无法识别文件格式
- 识别 C 文件和包含的头文件之间依赖关系的工具/方法
- Arduino IDE不识别.c文件是.cpp
- 链接c++静态库与android ndk时出错(错误:无法识别文件格式)
- 无法识别文件格式;作为链接器脚本处理
- 无法识别.h文件中定义的typedef类型
- 识别文件中的音频样本
- 文件无法识别:文件被截断的GCC错误