• 5619阅读
  • 2回复

关于Qt JPEG2000插件"QImageIOHandler"编译过程中的奇怪问题. [复制链接]

上一主题 下一主题
离线dingzexin
 
只看楼主 倒序阅读 楼主  发表于: 2009-09-18
在Qt程序中需要用到JPEG2000插件,就下载了JPEG2000插件源码压缩包和jasper源码压缩包(JPEG2000插件需要jasper的支持),自己编译。

我的程序是Windows平台下的。
第1步按照JPEG2000插件源码的说明文档(README.TXT),用VC6.0编译jasper源码中的"libjasper" project 生成"libjasper.lib"。
第2步在Windows系统中用QtCreater编译JPEG2000插件。在编译之前,我已按照README.TXT的要求修改了qtjp2imageformat.pri文件,
设置好了"libjasper.lib"的路径。

编译JPEG2000插件不过,提示下列信息:
========================================================================================================
...
...
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -shared -Wl,--out-

implib,c:\Qt\2009.01\qt\plugins\imageformats\libqtjp22.a -o c:\Qt\2009.01\qt\plugins\imageformats\qtjp22.dll

release/qtjp2imagehandler.o release/qtjp2imageformatplugin.o
-L"c:\Qt\2009.01\qt\lib" release\qtjp2_resource_res.o -LC:\JasPer\jasper-1.900.1\src\msvc\Win32_Release -ljasper.lib -lQtGui4

-lQtCore4
mingw32-make[1]: Leaving directory `D:/code/JPEG2K/qtjp2imageformat-2.4-opensource/plugin'
mingw32-make: Leaving directory `D:/code/JPEG2K/qtjp2imageformat-2.4-opensource/plugin'
c:\Qt\2009.01\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -ljasper.lib
collect2: ld returned 1 exit status
mingw32-make[1]: *** [c:\Qt\2009.01\qt\plugins\imageformats\qtjp22.dll] Error 1
mingw32-make: *** [release-all] Error 2
Exited with code 2.
Error while building project plugin
When executing build step 'Make'
========================================================================================================
我不知道"jasper.lib"是怎么生成的,为什么会出现"cannot find -ljasper.lib"。
前面用jasper源码生成的库文件可是叫"libjasper.lib"的啊?
病急乱投医,我试着把"libjasper.lib"复制一份,名字改为"jasper.lib"也不行。
请热心的朋友帮我解决一下这个问题,给我出出主意。谢谢大家。



JPEG2000插件源码压缩包
名称
qtjp2imageformat-2.4-opensource.zip
来源
http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtjp2imageformat

jasper源码压缩包
名称
jasper-1.900.1.zip
来源
http://www.ece.uvic.ca/~mdadams/jasper/
离线dingzexin
只看该作者 1楼 发表于: 2009-09-18
顶一下。 :-)
离线dingzexin
只看该作者 2楼 发表于: 2009-09-18
再顶。
快速回复
限100 字节
 
上一个 下一个