EWO compilation

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
2 posts • Page 1 of 1
ja_ma_
Posts: 10
Joined: Thu Jun 09, 2022 3:56 pm

EWO compilation

Post by ja_ma_ »

I am trying to compile the standard ewo generated by the "newEwo.cmd", but i am receiving errors.

My setup:
WinCC OA: 3.19
WinCC OA QtVersion: 5.15.11
Qt Creator: 9.0.1
Qt Compiler: 5.15.2 (The 5.15.11 QtVersion is not available in the Qt-Archive Installer. But since I am not even getting it compiled, this is not a problem yet)

I didnt change anything at the automatic compiled Ewo Projekt, besides changing the API_ROOT path inside ".proj" to a static one.

Code: Select all

INCLUDEPATH += . $$(API_ROOT)/include/EWO

unix: LIBS += -L$$(API_ROOT)/../bin -lewo
win32:LIBS += -L$$(API_ROOT)/lib.winnt        -lewo

Code: Select all

INCLUDEPATH += . D:/Siemens/WinCC_OA/3.19/api/include/EWO

unix: LIBS += -LD:/Siemens/WinCC_OA/3.19/api/../bin -lewo
win32:LIBS += -LD:/Siemens/WinCC_OA/3.19/api/lib.winnt        -lewo

When I am compiling/creating the whole project i am getting the following errors:

Code: Select all

release/Test.o:Test.cxx:(.text+0x2c7): undefined reference to `__imp__ZN16BaseExternWidget6signalERK7QStringRK8QVariant'
release/Test.o:Test.cxx:(.text+0x38c): undefined reference to `__imp__ZN16BaseExternWidget6signalERK7QStringRK8QVariant'
release/Test.o:Test.cxx:(.text+0x751): undefined reference to `__imp__ZN16BaseExternWidgetD2Ev'
release/Test.o:Test.cxx:(.text+0xc56): undefined reference to `__imp__ZN16BaseExternWidget10hasNumArgsERK7QStringRK5QListI8QVariantEiRS0_'
release/Test.o:Test.cxx:(.text+0xccc): undefined reference to `__imp__ZN16BaseExternWidget10hasNumArgsERK7QStringRK5QListI8QVariantEiRS0_'
release/Test.o:Test.cxx:(.text+0xf98): undefined reference to `__imp__ZN16BaseExternWidget10hasNumArgsERK7QStringRK5QListI8QVariantEiRS0_'
release/Test.o:Test.cxx:(.text+0x11fd): undefined reference to `__imp__ZN16BaseExternWidget10hasNumArgsERK7QStringRK5QListI8QVariantEiRS0_'
release/Test.o:Test.cxx:(.text+0x133b): undefined reference to `__imp__ZN16BaseExternWidget10hasNumArgsERK7QStringRK5QListI8QVariantEiRS0_'
release/Test.o:Test.cxx:(.text+0x145c): undefined reference to `__imp__ZN16BaseExternWidget12invokeMethodERK7QStringR5QListI8QVariantERS0_'
release/moc_Test.o:moc_Test.cpp:(.text+0x5cf): undefined reference to `__imp__ZN16BaseExternWidget11qt_metacastEPKc'
release/moc_Test.o:moc_Test.cpp:(.text+0x5f1): undefined reference to `__imp__ZN16BaseExternWidget11qt_metacallEN11QMetaObject4CallEiPPv'
release/moc_Test.o:moc_Test.cpp:(.text$_ZN4TestD1Ev[_ZN4TestD1Ev]+0xd): undefined reference to `__imp__ZN16BaseExternWidgetD2Ev'
release/moc_Test.o:moc_Test.cpp:(.text$_ZN4TestD0Ev[_ZN4TestD0Ev]+0x14): undefined reference to `__imp__ZN16BaseExternWidgetD2Ev'
release/moc_Test.o:moc_Test.cpp:(.text.startup+0x11): undefined reference to `__imp__ZN16BaseExternWidget16staticMetaObjectE'
release/moc_Test.o:moc_Test.cpp:(.rdata$_ZTV4Test[_ZTV4Test]+0x80): undefined reference to `BaseExternWidget::signalInterface(QString const&, QList<QVariant::Type>&) const'
collect2.exe: error: ld returned 1 exit status
mingw32-make[1]: *** [Makefile.Release:69: release/Test.dll] Error 1

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

Re: EWO compilation

Post by gschijndel »

I guess it does not work with the mingw32 compiler. It is not in the list of supported compilers.

Post Reply
2 posts • Page 1 of 1