Compiling EWO under linux

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
25 posts • Page 3 of 3
CyaNn
Posts:97
Joined: Tue Nov 23, 2010 9:48 am

Re: Compiling EWO under linux

Post by CyaNn »

Hello, Martin !

Brilliant ! So many thanks for your help ! :woohoo:

It do not explain where I saw that my version of Qt was 4.6 and not 4.8 ! But you are right, the linker use the 4.8 version.... :blush: :blush: :whistle: :whistle:
I actually try to compile the 4.7.0 Qt version on my 32bits VM.... I will also try with the 3.15 version of WinCC. We certainly migrate our systems to this version soon.

Again ! Many thanks to take time for my problem.

Another little question. What is the recommended version of QT to compile EWO on WinCC 3.15 ?

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

Re: Compiling EWO under linux

Post by mkoller »

The Qt version in 3.15 is Qt 5.5.0

CyaNn
Posts:97
Joined: Tue Nov 23, 2010 9:48 am

Re: Compiling EWO under linux

Post by CyaNn »

Haha ! The Qt version on the Yum repo is Qt 5.6.1 (Obviously !!!!)
So ok, this time I will compile the right version by myself.

Thank you a lot Martin.

CyaNn
Posts:97
Joined: Tue Nov 23, 2010 9:48 am

Re: Compiling EWO under linux

Post by CyaNn »

Martin ! It works perfectly now ! On 3.10 32bits with Qt 4.7.0 and on 3.15 64bits with Qt 5.5.0
That's perfect. Many thank you.

The ewo in question is really crucial for us, it gives the ability to filter over data dynamically, sort and serialize the filter and sort order.

NB: The mistake I done came from another vitrual machine I installed with Qt 4.6

So many thanks again.

CyaNn
Posts:97
Joined: Tue Nov 23, 2010 9:48 am

Re: Compiling EWO under linux

Post by CyaNn »

Hello Martin,

I have another puzzling behavior with my component.
The filtering function does not works. More precisely, I have created my custom "filter proxy model" by inheriting from QSortFilterProxyModel.
But on linux 32 bits EWO component, the program never call the filterAcceptsRow method I have override.

I think about a bug into the LibQGui.so of the WinCC libs because it works perfectly on all other plaftorms :
- Windows, on standalone mode (QtGui on 4.7.0 X86 and X64)
- Windows, on EWO mode
- Kubuntu standalone X64 (Qt 4.7.0)
- CentOS 6 standalone mode (QtGui on 4.7.0 X86)

But it does not works only on CentOS6 EWO mode X86.
For this last platform, the compilation works perfect now. I does not experience any strange error nor warning. Just this feature that does not works.

Keep in mind, I use the WinCC 3.10 32bits on a 64bits machine. Perhaps I should upgrade our version. I will have a try next tuesday

You can find the source in attachement : https://www.winccoa.com/fileadmin/image ... 170413.zip
The problem come from the SortFilterProxyModel.cpp file, the filterAcceptsRow is not called even if I call the invalidateFilter() method (that works perfectly on windows and other platforms except the centos EWO)

Thank you in advance for your help.


To test the EWO, you can add it on a new panel and put these lines on the initialize of the component :

Code: Select all


this.addReadonlyColumn("name");
this.addRowValues(makeDynString("value 1"));
this.addRowValues(makeDynString("value 2"));
this.addRowValues(makeDynString("value 3"));
this.addRowValues(makeDynString("value 4"));

Then you can click on an item and chose "And equals - valueX" for example.
Normally it should filter on this value and only show it, other lines must disappears.
Attachments
DataGrid-20170413.zip
(165.51 KiB) Downloaded 216 times

25 posts • Page 3 of 3