Error when compiling QtRpt in 32 bit MSVC2017?
-
Hi,
I use Qt 5.13.2 and want to use QtRpt in 32 bit computers. But when I buid it below error mesage appear?What do you advice? Did I something wrong in MSVC2017 32 bit config?
jom: C:\Users\mucip\Documents\Qt\build-QtRptProject-Desktop_Qt_5_13_2_MSVC2017_32bit-Debug\QtRptDesigner\Makefile [....\QtRptProject\bin\debug\QtRptDesigner.exe] Error 1120
jom: C:\Users\mucip\Documents\Qt\build-QtRptProject-Desktop_Qt_5_13_2_MSVC2017_32bit-Debug\Makefile [sub-QtRptDesigner-make_first-ordered] Error 2
23:37:20: 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 32bit)
The kit Desktop Qt 5.13.2 MSVC2017 32bit has configuration issues which might be the root cause for this problem.
When executing step "Make"
Regards,
Mucip:) -
Hi,
You're not showing enough of the error messages to know what is failing.
-
Hi @SGaist ,
Unfortunatelly I have 18 errors and more than 400 warnings like below only:
cl: Komut satr warning D9002: Bilinmeyen '-std=c++11' se‡ene§i yoksaylyor
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 satr warning D9002: Bilinmeyen '-std=c++11' se‡ene§i yoksaylyor
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:) -
Symbol not found errors ?
-
Which version of QtRpt ?
-
QtZint ?
By the way, did you check the binary package ? It might already provide what you need.
-
QtZint ?
By the way, did you check the binary package ? It might already provide what you need.
@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:) -
QtZint ?
By the way, did you check the binary package ? It might already provide what you need.
-
Is the code accessible somewhere ? If so, then build it first and then continue with the rest.
-
Is the code accessible somewhere ? If so, then build it first and then continue with the rest.
-
config.pri uncomment DEFINES += NO_BARCODE
-
config.pri uncomment DEFINES += NO_BARCODE
@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:) -
config.pri uncomment DEFINES += NO_BARCODE
@ahmed-yousri ,
By the way, I want to use barcode in my reports also.Regards,
Mucip:) -
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.-
Put the QtRPT.dll and QtZint.dll in the path below
\ QtRptProject \ bin \ debug \ lib
\ QtRptProject \ bin \ release \ lib -
Put libQtRPT.a and libQtZint.a in the path below
\ QtRptProject \ bin \ debug \ lib \ lib
\ QtRptProject \ bin \ release \ lib \ lib -
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.
-
-
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.-
Put the QtRPT.dll and QtZint.dll in the path below
\ QtRptProject \ bin \ debug \ lib
\ QtRptProject \ bin \ release \ lib -
Put libQtRPT.a and libQtZint.a in the path below
\ QtRptProject \ bin \ debug \ lib \ lib
\ QtRptProject \ bin \ release \ lib \ lib -
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.
@Park-Chongwon ,
Unfortunatelly I couldn't solve it on MSVC2017 32bit. Then I immigrated to LimeReport and I am very happy now.Regards,
Mucip:) -