Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error when compiling QtRpt in 32 bit MSVC2017?
Forum Updated to NodeBB v4.3 + New Features

Error when compiling QtRpt in 32 bit MSVC2017?

Scheduled Pinned Locked Moved Unsolved General and Desktop
17 Posts 4 Posters 1.2k Views 2 Watching
  • 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.
  • SGaistS SGaist

    Hi,

    You're not showing enough of the error messages to know what is failing.

    MucipM Offline
    MucipM Offline
    Mucip
    wrote on last edited by
    #3

    Hi @SGaist ,
    Unfortunatelly I have 18 errors and more than 400 warnings like below only:


    cl: Komut satr warning D9002: Bilinmeyen '-std=c++11' se‡ene§i yoksaylyor
    cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -std=c++11 -Zi -MDd -std:c++14 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fdtmp-win32\QtRptDesigner.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DNDEBUG -DHAVE_QT5 -DVERSION="2.0.2" -DQTRPT_LIBRARY -DHAVE_QT5 -DQT_QML_DEBUG -DQT_CHARTS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I....\QtRptProject\QtRptDesigner -I. -I....\QtRptProject\QtRPT -I....\QtRptProject\3rdparty\zint-2.4.4\backend_qt4 -I....\QtRptProject\3rdparty\zint-2.4.4\backend -I....\QtRptProject\CommonFiles -I....\QtRptProject\QtRptDesigner\Graphics -I....\QtRptProject\QtRptDesigner\SQLDiagram -IC:\Qt\5.13.2\msvc2017_64\include -IC:\Qt\5.13.2\msvc2017_64\include\QtCharts -IC:\Qt\5.13.2\msvc2017_64\include\QtPrintSupport -IC:\Qt\5.13.2\msvc2017_64\include\QtWidgets -IC:\Qt\5.13.2\msvc2017_64\include\QtGui -IC:\Qt\5.13.2\msvc2017_64\include\QtANGLE -IC:\Qt\5.13.2\msvc2017_64\include\QtXml -IC:\Qt\5.13.2\msvc2017_64\include\QtNetwork -IC:\Qt\5.13.2\msvc2017_64\include\QtScript -IC:\Qt\5.13.2\msvc2017_64\include\QtSql -IC:\Qt\5.13.2\msvc2017_64\include\QtCore -Itmp-win32 -Itmp-win32 -I/include -IC:\Qt\5.13.2\msvc2017_64\mkspecs\win32-msvc -Fotmp-win32\ @C:\Users\mucip\AppData\Local\Temp\moc_RepScrollArea.obj.7672.103360.jom
    moc_RepScrollArea.cpp
    cl: Komut satr warning D9002: Bilinmeyen '-std=c++11' se‡ene§i yoksaylyor
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /VERSION:2.0 /MANIFEST:embed /OUT:....\QtRptProject\bin\debug\QtRptDesigner.exe @C:\Users\mucip\AppData\Local\Temp\QtRptDesigner.exe.7672.110188.jom
    ....\QtRptProject\bin\debug\QtRptDesigner.lib kitaplığı ve ....\QtRptProject\bin\debug\QtRptDesigner.exp nesnesi oluşturuluyor
    moc_RepScrollArea.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    moc_GraphicsHelperClass.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    moc_mainwindow.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    moc_EditFldDlg.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    moc_FldPropertyDlg.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    EditFldDlg.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    FldPropertyDlg.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    RepScrollArea.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    moc_GraphicsScene.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    GraphicsLine.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    main.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    mainwindow.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    ReportBand.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    GraphicsScene.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    GraphicsBox.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    GraphicsHelperClass.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    UndoRedoCommands.obj : error LNK2001: Çözümlenmemiş dış sembol "public: static struct QMetaObject const QtRPT::staticMetaObject" (?staticMetaObject@QtRPT@@2UQMetaObject@@B)
    ....\QtRptProject\bin\debug\QtRptDesigner.exe : fatal error LNK1120: 1 çözümlenmemiş dışlar
    jom: C:\Users\mucip\Documents\Qt\build-QtRptProject-Desktop_Qt_5_13_2_MSVC2017_64bit-Debug\QtRptDesigner\Makefile [....\QtRptProject\bin\debug\QtRptDesigner.exe] Error 1120
    jom: C:\Users\mucip\Documents\Qt\build-QtRptProject-Desktop_Qt_5_13_2_MSVC2017_64bit-Debug\Makefile [sub-QtRptDesigner-make_first-ordered] Error 2
    00:05:59: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project QtRptProject (kit: Desktop Qt 5.13.2 MSVC2017 64bit)
    The kit Desktop Qt 5.13.2 MSVC2017 64bit has configuration issues which might be the root cause for this problem.
    When executing step "Make"
    00:05:59: Elapsed time: 02:27.


    Regards,
    Mucip:)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      Symbol not found errors ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      MucipM 1 Reply Last reply
      1
      • SGaistS SGaist

        Symbol not found errors ?

        MucipM Offline
        MucipM Offline
        Mucip
        wrote on last edited by
        #5

        @SGaist ,
        Yes. Unfortunatelly in Turkish because of VS2019 I guess?...

        Unresolved External symbol... :(

        Regards,
        Mucip:)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          Which version of QtRpt ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          MucipM 1 Reply Last reply
          0
          • SGaistS SGaist

            Which version of QtRpt ?

            MucipM Offline
            MucipM Offline
            Mucip
            wrote on last edited by Mucip
            #7

            @SGaist ,
            QtRpt 2.1.0 Newest one.
            I think problem comes from QtZint and it may not be appropriate with 32 bit?

            But in anycase I should compile it both 32 and 64bit?

            By the way system is Win10.

            Regards,
            Mucip:)

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              QtZint ?

              By the way, did you check the binary package ? It might already provide what you need.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              MucipM 2 Replies Last reply
              1
              • SGaistS SGaist

                QtZint ?

                By the way, did you check the binary package ? It might already provide what you need.

                MucipM Offline
                MucipM Offline
                Mucip
                wrote on last edited by
                #9

                @SGaist ,
                I think I loose something but I dont know?

                As You said I put QtZint.dll from binary package to msvc2017/bin and msvc2017/lib directory.

                But still error:

                LINK : fatal error LNK1104: 'QtZint.lib' could not open!

                Where should I copy QtZint.dll?

                Regards,
                Mucip:)

                1 Reply Last reply
                0
                • SGaistS SGaist

                  QtZint ?

                  By the way, did you check the binary package ? It might already provide what you need.

                  MucipM Offline
                  MucipM Offline
                  Mucip
                  wrote on last edited by
                  #10

                  @SGaist ,
                  No, I checked and couldn't find QtZint.lib for 32 bit unfortunatelly :(

                  Regards,
                  Mucip:)

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    Is the code accessible somewhere ? If so, then build it first and then continue with the rest.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    MucipM 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      Is the code accessible somewhere ? If so, then build it first and then continue with the rest.

                      MucipM Offline
                      MucipM Offline
                      Mucip
                      wrote on last edited by
                      #12

                      @SGaist ,
                      I think problem is in the newest version. Because I tested older one and worked well both in MSVC2017_64 and MSVC2017_32.

                      I'm tring to find solution from QtRpt sourceforge forum page. :(

                      Regards,
                      Mucip:)

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        ahmed-yousri
                        wrote on last edited by
                        #13

                        config.pri uncomment DEFINES += NO_BARCODE

                        MucipM 2 Replies Last reply
                        1
                        • A ahmed-yousri

                          config.pri uncomment DEFINES += NO_BARCODE

                          MucipM Offline
                          MucipM Offline
                          Mucip
                          wrote on last edited by
                          #14

                          @ahmed-yousri ,
                          I think also it's need to be add

                          #include <QAction>
                          

                          in ScriptEditor.cpp
                          But still same error... :(
                          I copied old QtZint and other thinks from old version. But still linker error. :(

                          What is the problem of new QtRpt version?...

                          Regards,
                          Mucip:)

                          1 Reply Last reply
                          0
                          • A ahmed-yousri

                            config.pri uncomment DEFINES += NO_BARCODE

                            MucipM Offline
                            MucipM Offline
                            Mucip
                            wrote on last edited by
                            #15

                            @ahmed-yousri ,
                            By the way, I want to use barcode in my reports also.

                            Regards,
                            Mucip:)

                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              Park Chongwon
                              wrote on last edited by
                              #16

                              Re: Error when compiling QtRpt in 32 bit MSVC2017?

                              Hello. I had the same error and solved it. (msvc2017 x64)
                              I don't know much about it, but I will write down what I think has helped me solve it.

                              1. Put the QtRPT.dll and QtZint.dll in the path below
                                \ QtRptProject \ bin \ debug \ lib
                                \ QtRptProject \ bin \ release \ lib

                              2. Put libQtRPT.a and libQtZint.a in the path below
                                \ QtRptProject \ bin \ debug \ lib \ lib
                                \ QtRptProject \ bin \ release \ lib \ lib

                              3. Build the file in the path below
                                  \ QtRptProject \ 3rdparty \ zint-2.4.4 \ Zint.pro
                                \ QtRptProject \ QtRPT \ QtRPT.pro
                                  When built, QtRPT.lib and QtZint.lib are generated.

                              I hope it goes well.

                              MucipM 1 Reply Last reply
                              0
                              • P Park Chongwon

                                Re: Error when compiling QtRpt in 32 bit MSVC2017?

                                Hello. I had the same error and solved it. (msvc2017 x64)
                                I don't know much about it, but I will write down what I think has helped me solve it.

                                1. Put the QtRPT.dll and QtZint.dll in the path below
                                  \ QtRptProject \ bin \ debug \ lib
                                  \ QtRptProject \ bin \ release \ lib

                                2. Put libQtRPT.a and libQtZint.a in the path below
                                  \ QtRptProject \ bin \ debug \ lib \ lib
                                  \ QtRptProject \ bin \ release \ lib \ lib

                                3. Build the file in the path below
                                    \ QtRptProject \ 3rdparty \ zint-2.4.4 \ Zint.pro
                                  \ QtRptProject \ QtRPT \ QtRPT.pro
                                    When built, QtRPT.lib and QtZint.lib are generated.

                                I hope it goes well.

                                MucipM Offline
                                MucipM Offline
                                Mucip
                                wrote on last edited by
                                #17

                                @Park-Chongwon ,
                                Unfortunatelly I couldn't solve it on MSVC2017 32bit. Then I immigrated to LimeReport and I am very happy now.

                                Regards,
                                Mucip:)

                                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