Problem with qt version while installing

Install support for openEMS

Moderators: thorsten, sebastian

thorsten
Posts: 1520
Joined: Mon 27 Jun 2011, 12:26

Re: Problem with qt version while installing

Post by thorsten » Tue 17 May 2022, 22:43

Well that sounds to me like vtk was build without a Qt binding... That is not good and cannot be used for the openEMS GUI...

leather_rebel
Posts: 12
Joined: Sun 15 May 2022, 06:03

Re: Problem with qt version while installing

Post by leather_rebel » Tue 17 May 2022, 22:48

I found this online. Perhaps That variable isn't set anymore.
https://discourse.vtk.org/t/vtk-8-90-mi ... aded/145/4

thorsten
Posts: 1520
Joined: Mon 27 Jun 2011, 12:26

Re: Problem with qt version while installing

Post by thorsten » Tue 17 May 2022, 22:52

Well then the gentoo vtk build is without qt5 support which makes it useless for this ...

leather_rebel
Posts: 12
Joined: Sun 15 May 2022, 06:03

Re: Problem with qt version while installing

Post by leather_rebel » Tue 17 May 2022, 22:54

Qt5 is explicitly enabled in the vtk package USE flags in gentoo. The link I provided isn't gentoo specific.

thorsten
Posts: 1520
Joined: Mon 27 Jun 2011, 12:26

Re: Problem with qt version while installing

Post by thorsten » Tue 17 May 2022, 22:58

Yes I understand, but then I don't know why the required Qt version cannot be read.
In any case, try to remove this from the if clause and see what happens...
In future openEMS will drop older vtk and qt4 support in any case.

leather_rebel
Posts: 12
Joined: Sun 15 May 2022, 06:03

Re: Problem with qt version while installing

Post by leather_rebel » Wed 18 May 2022, 00:05

Thank you for your help. I managed to build the software by defining VTK_QT_VERSION whenever it is not defined.
It also took some additional work due to some breaking changes in VTK like:
https://gitlab.kitware.com/vtk/vtk/-/me ... uests/6506

I will be pleased to open pull requests on github to the corresponding projects with all my changes, if you would like to take a look.

thorsten
Posts: 1520
Joined: Mon 27 Jun 2011, 12:26

Re: Problem with qt version while installing

Post by thorsten » Wed 18 May 2022, 07:36

What breaking changes in vtk? It builds fine for me with vtk 9.1

And I'm still puzzled to why "VTK_QT_VERSION" is not set for your vtk? I have never seen that and really questioning if your vtk is build correctly.

leather_rebel
Posts: 12
Joined: Sun 15 May 2022, 06:03

Re: Problem with qt version while installing

Post by leather_rebel » Wed 18 May 2022, 08:09

thorsten wrote:
Wed 18 May 2022, 07:36
What breaking changes in vtk?
Check the link I've provided. patching code according to those changes fixes the build.
According to the first link I've provided, this error is not something specific to my installation of vtk.

I will prepare the prs on gh later
Last edited by leather_rebel on Wed 18 May 2022, 08:12, edited 1 time in total.

leather_rebel
Posts: 12
Joined: Sun 15 May 2022, 06:03

Re: Problem with qt version while installing

Post by leather_rebel » Wed 18 May 2022, 08:10

thorsten wrote:
Wed 18 May 2022, 07:36
I have never seen that and really questioning if your vtk is build correctly.
I doubt that there's a problem with vtk. I'm suspecting that openEMS contains a bit of legacy code that hasn't been kept up to date with its dependencies.

thorsten
Posts: 1520
Joined: Mon 27 Jun 2011, 12:26

Re: Problem with qt version while installing

Post by thorsten » Wed 18 May 2022, 08:21

Are you sure you have the latest version? Because all of that mentioned in the link "should" be already fixed?
As I said, it builds fine for me with vtk 9.0.x and 9.1 as it is...

As for vtk, why is "VTK_QT_VERSION" not set in cmake for your vtk build? This is not related to openEMS at all.
But as I said, I think we could drop support for older vtk depending on qt4

Post Reply