Library Include Problem on EWO

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
9 posts • Page 1 of 1
blackout
Posts:12
Joined: Tue Jan 12, 2016 3:52 pm

Library Include Problem on EWO

Post by blackout »

Hi,

I've created a widget and built it with 5.5.1 msvc 2013 64 bit and the EWO is working fine on WinCC OA. Then, I've included the QtCharts (https://github.com/qt/qtcharts) library -that originally exists in version 5.8- to the project and even though the building succeeded, the ewo is not being loaded on WinCC OA.

I've statically included the QtCharts library from the 5.8 msvc 2013 64 bit compiler version of Qt.

Do you guys have any idea about why the ewo could not be loaded on WinCC OA?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Library Include Problem on EWO

Post by mkoller »

Any error message in the log file ?

blackout
Posts:12
Joined: Tue Jan 12, 2016 3:52 pm

Re: Library Include Problem on EWO

Post by blackout »

Here's the log msg.

WCCOAui (1), 2017.04.04 15:17:39.505, SYS, WARNING, 16/uim,
Module: Gedi_1
Panel: C:\\WinCC_OA_Proj\\ewoTry\\panels\\ewo.pnl []
Object: 16 named: "PieChartEwo3_ewo1" of type: PieChartEwo3_ewo
, Could not load ExternalWidgetObject "widgets/PieChartEwo3.ewo"
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui (1), 2017.04.04 15:17:49.202, SYS, WARNING, 133, Could not load shared library C:\\Siemens\\Automation\\WinCC_OA\\3.14\\bin\\widgets/windows-64/PieChartEwo33.ewo, The specified module could not be found.
WCCOAui (1), 2017.04.04 15:17:49.207, SYS, WARNING, 36/uim, The EWO "C:\\Siemens\\Automation\\WinCC_OA\\3.14\\bin\\widgets/windows-64/PieChartEwo33.ewo" is version "1", but we can only load version "4"
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR
WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR

blackout
Posts:12
Joined: Tue Jan 12, 2016 3:52 pm

Re: Library Include Problem on EWO

Post by blackout »

Image

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Library Include Problem on EWO

Post by mkoller »

It seems it can't find the Qt charts library.
It must be in one of the directories listed in PATH, e.g. the /bin

blackout
Posts:12
Joined: Tue Jan 12, 2016 3:52 pm

Re: Library Include Problem on EWO

Post by blackout »

Still not working with the same error on log viewer:/

WCCOAui1:VarAttrElem "pixmap" isAttribute(): type not implemented:QVARIANT_VAR

I think it may be about the qvariant library in Qt5Core.dll file. Tried to replace it with the one that is under Qt software library (C:\\.....\\5.5\\msvc2013_64\\bin) but didnt work.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Library Include Problem on EWO

Post by mkoller »

That message has nothing to do with the message "Could not load ExternalWidgetObject "widgets/PieChartEwo3.ewo" - or at least they mean different things.

First make sure that your ewo can be loaded, that is: you see it inside the Panel and you don't get just the "error" label in place.

The "VarAttrElem" message is just a warning and about a property named "pixmap" which Gedi can not display in the property editor. This is not serious.

blackout
Posts:12
Joined: Tue Jan 12, 2016 3:52 pm

Re: Library Include Problem on EWO

Post by blackout »

I understand. How can I see the reason of why ewo could not be loaded?

Image

may these missing DLLs be the reason ?

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Library Include Problem on EWO

Post by Gertjan van Schijndel »

Normally when an ewo cannot be loaded the missing libraries are shown in the top-left tree.

The missing DLLs are delay-loaded (indicated by the sand piper icon), so they are only required when a function from the library is being called. However at my station dependency walker is able to find the 'GPSVC.dll' library (in %WINDIR%\\system32).

I see that you have placed 'Qt5Charts.dll' in the 'WINCCOA_PATH/bin/widgets/windows-64', which is normally not listed in the PATH environment variable. Did you add this directory to your PATH environment variable?

Since the QtCharts is open source you could consider compiling it directly in the ewo, so you cannot get this missing dependency. Also on the WebClients/RuntimeUIs it should work without additional work for making the dependency available on them.

9 posts • Page 1 of 1