Qt4 is required to compile and there is no qt4 in repo for Centos 8.

406 views
Skip to first unread message

gokhan

unread,
Jun 27, 2021, 10:14:53 PM6/27/21
to SCALE Users Group
Hello,

Qt4.x is required to compile SCALE6.2. But unfortunately, there is no qt4 in repo for Centos 8. Is there a workaround to this problem?

Our other clusters’ OS are Centos 7 and Qt4 is available in the repo so they are fine.

Here is the error message during configure:

CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1314 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  cmake/TPLs/FindTPLQT.cmake:117 (FIND_PACKAGE)
  TriBITS/tribits/core/package_arch/TribitsProcessEnabledTpl.cmake:89 (INCLUDE)
  TriBITS/tribits/core/package_arch/TribitsGlobalMacros.cmake:1544 (TRIBITS_PROCESS_ENABLED_TPL)
  TriBITS/tribits/core/package_arch/TribitsProjectImpl.cmake:209 (TRIBITS_PROCESS_ENABLED_TPLS)
  TriBITS/tribits/core/package_arch/TribitsProject.cmake:93 (TRIBITS_PROJECT_IMPL)
  CMakeLists.txt:160 (TRIBITS_PROJECT)


Thanks,

Gokhan

X-energy, LLC

Rob Lefebvre

unread,
Jun 28, 2021, 5:42:05 AM6/28/21
to SCALE Users Group
Hi Gokhan,
You should be able to obtain Qt4.8 from https://download.qt.io/archive/qt/4.8/4.8.7/

You will need to compile from the source. Once compiled, place the Qt/bin in the path and reconfigure SCALE.

The full Qt install is not necessary. The following Qt configure line should reduce compile time and still fulfill SCALE's requirements:

configure -prefix path/to/where/you/want/qt/installed -shared -no-script -no-webkit -no-multimedia -no-audio-backend -no-scripttools -opensource

Best regards,
Rob Lefebvre
SCALE Code System

Rob Lefebvre

unread,
Jun 29, 2021, 6:56:27 AM6/29/21
to SCALE Users Group
Hi Gokhan,
Which compiler and version are you using?

Reply all
Reply to author
Forward
0 new messages