Running QT 5 - cannot install ElmerGUI

Discussion about building and installing Elmer
Post Reply
jmh67
Posts: 1
Joined: 01 Apr 2020, 11:01
Antispam: Yes

Running QT 5 - cannot install ElmerGUI

Post by jmh67 »

Subject says it already - I tried to install Elmer with ElmerGUI, but my OpenSuSE Linux 15.1 uses Qt version 5, and the compliation crashed with the following message:
-- Building ElmerGUI
-- ------------------------------------------------
-- ------------------------------------------------
CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1320 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
ElmerGUI/CMakeLists.txt:32 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
What to do? I cannot downgrade to Qt 4, because other programs on my computer rely on Qt 5.

Any help is appreciated!
kevinarden
Posts: 2237
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Running QT 5 - cannot install ElmerGUI

Post by kevinarden »

I once tried to compile ElmerGUI with QT5 by updating the code and it turned into too much work for my time. Your easiest solution is to use the Elmer VM.

http://www.nic.funet.fi/pub/sci/physics/elmer/bin/
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Running QT 5 - cannot install ElmerGUI

Post by raback »

Hi

Did you use "WITH_QT5" flag? At some platforms this compiles out of the box the ElmerGUI part. There may be further challenges with OpenCascade and known problems with VTK widges (Paraview is anyway to be preferred). So try playing with these starting without any additonal libs.

Code: Select all

    -DWITH_QT5:BOOL=TRUE	\
    -DWITH_ELMERGUI:BOOL=TRUE \
    -DWITH_QWT:BOOL=TRUE \
    -DWITH_VTK:BOOL=FALSE \
    -DWITHOUT_VTKPOST:BOOL=TRUE \
    -DWITH_PARAVIEW:BOOL=TRUE \
    -DWITH_OCC:BOOL=FALSE \
-Peter
Post Reply