Building jpeg2000 plugin
-
I downloaded the jpeg2000 plugin and extracted the files. When I run qmake, here is the output:
bq. WARNING: c:\Users\Administrator\Downloads\Qt\qtjp2imageformat-2.4_1-opensource\qtjp2imageformat.pro:3: Unable to find file for inclusion common.pri
What is the meaning of this warning?
-
By the way, if I try to run nmake afterward, here is the result:
bq. cd plugin\ && c:\Qt\4.6.3\bin\qmake.exe c:\Users\Administrator\Downloads\Qt\qtjp2imageformat-2.4_1-opensource\plugin\plugin.pro -win32 -o Makefile
Project ERROR: JasPer header files not found, please set JASPERINCLUDE in src/qt
jp2imageformat.pri
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop. -
First warning is about missed pri file (qmake file similar to .pro, but used for including in .pro files). It is included at your qtjp2imageformat.pro at third line. Try to change path to common.pri there to actual.
Second warning is about JasPer (library needed by Jpeg2000) not found.
-
google gives this as first link :) "http://www.ece.uvic.ca/~mdadams/jasper/":http://www.ece.uvic.ca/~mdadams/jasper/
-
Thanks a lot. Unfortunately, I am still getting errors. I called "nmake > output.txt". My output.txt file looks like this:
cd plugin\ && "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile
"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile.Debug all
link /LIBPATH:"c:\Qt\4.6.3\lib" /NOLOGO /DEBUG /DLL /MANIFEST /MANIFESTFILE:"debug\qtjp2d.intermediate.manifest" /VERSION:2.30 /OUT:c:\Qt\4.6.3\plugins\imageformats\qtjp2d2.dll@C:\Users\ADMINI~1\AppData\Local\Temp\nm7A60.tmp
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __malloc_dbg already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __free_dbg already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __CrtSetCheckCount already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMTD.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dbghook.obj) : error LNK2005: __crt_debugger_hook already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(sprintf.obj) : error LNK2005: _sprintf already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(vsprintf.obj) : error LNK2005: _vsprintf already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(_file.obj) : error LNK2005: ___iob_func already defined in MSVCRTD.lib(MSVCR90D.dll)
Creating library c:\Qt\4.6.3\plugins\imageformats\qtjp2d2.lib and object c:\Qt\4.6.3\plugins\imageformats\qtjp2d2.exp
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
c:\Qt\4.6.3\plugins\imageformats\qtjp2d2.dll : fatal error LNK1120: 1 unresolved externals -
I think I have a clue. I tried to build the plugin.pro with Qt Creator. I got one error:
bq. c:\Qt\4.6.3\plugins\imageformats\qtjp2d2.dll:: error: 1 unresolved externals
It seems like I am expected to already have this plugin built, I have no idea why.
Any ideas?