September 3, 2010

szh1 szh1
Lab Rat
126 posts

Building jpeg2000 plugin

 

I downloaded the jpeg2000 plugin and extracted the files. When I run qmake, here is the output:

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?

8 replies

September 3, 2010

szh1 szh1
Lab Rat
126 posts

By the way, if I try to run nmake afterward, here is the result:

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 ‘0×2’
Stop.

September 3, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

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.

September 3, 2010

szh1 szh1
Lab Rat
126 posts

Where can I find the JasPer library?

September 3, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts

google gives this as first link :) http://www.ece.uvic.ca/~mdadams/jasper/ [ece.uvic.ca]

September 3, 2010

szh1 szh1
Lab Rat
126 posts

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

September 3, 2010

szh1 szh1
Lab Rat
126 posts

I think I have a clue. I tried to build the plugin.pro with Qt Creator. I got one error:

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?

September 5, 2010

szh1 szh1
Lab Rat
126 posts

Nobody here knows what “unresolved externals” means?

September 8, 2010

mr_gui mr_gui
Lab Rat
14 posts

means missing dll.

 
  ‹‹ [Solved] Uninstall Nokia Qt Sdk from Ubuntu 10.04      [Solved] qt_message_output not located in QtCore4.dll ››

You must log in to post a reply. Not a member yet? Register here!