Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building jpeg2000 plugin
Forum Update on Monday, May 27th 2025

Building jpeg2000 plugin

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 3 Posters 6.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    szh1
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      szh1
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          szh1
          wrote on last edited by
          #4

          Where can I find the JasPer library?

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              szh1
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • S Offline
                S Offline
                szh1
                wrote on last edited by
                #7

                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?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  szh1
                  wrote on last edited by
                  #8

                  Nobody here knows what "unresolved externals" means?

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mr_gui
                    wrote on last edited by
                    #9

                    means missing dll.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved