Skip to content

Qt5 Config not found for 2021.1 build #27

@oliverdrozdowski

Description

@oliverdrozdowski

Hello,

I am trying to reinstall 2021.1 on a new Mac, as I have been working on a project for Chaste, which is not updated and tested to the 2024 release(s) yet.
I have been using Chaste Docker for the old builds without any problems on my old computer. I now tried the same, specifically installing the 2021.1 version with the command

docker build -t chaste:custom --build-arg GIT_TAG=2021.1 https://github.com/chaste/chaste-docker.git

as written in the tutorial. However, the build_chaste script apparently does not work, as it cannot find a Qt5 config in the cmake step.

The output is

[build 1/1] RUN build_chaste.sh 2021.1:                                                                               
0.084 Cloning Chaste from https://github.com/Chaste/Chaste.git#2021.1 into /home/chaste/src...                           
0.085 Cloning into '/home/chaste/src'...                                                                                 
57.41 Note: switching to 'f7b6bafa64287d567125b587b29af6d8bd7aeb90'.                                                     
57.41 
57.41 You are in 'detached HEAD' state. You can look around, make experimental
57.41 changes and commit them, and you can discard any commits you make in this
57.41 state without impacting any branches by switching back to a branch.
57.41 
57.41 If you want to create a new branch to retain commits you create, you may
57.41 do so (now or later) by using -c with the switch command. Example:
57.41 
57.41   git switch -c <new-branch-name>
57.41 
57.41 Or undo this operation with:
57.41 
57.41   git switch -
57.41 
57.41 Turn off this advice by setting config variable advice.detachedHead to false
57.41 
58.20 Building Chaste 2021.1 in /home/chaste/build with 10 cores...
58.20 WARNING: Chaste 2021.1 branch should be built with Debug and ERROR_ON_WARNING=ON.
58.20 The environment variables are currently set as: 
58.20 CMAKE_BUILD_TYPE=Debug
58.20 Chaste_ERROR_ON_WARNING=ON
58.20 
58.20 ####################################
58.20 # Setting compilers and build type
58.20 ####################################
58.20 
58.20 -- CMake version: 3.30.3
58.22 -- The C compiler identification is GNU 14.2.0
58.24 -- The CXX compiler identification is GNU 14.2.0
58.24 -- Detecting C compiler ABI info
58.27 -- Detecting C compiler ABI info - done
58.28 -- Check for working C compiler: /usr/bin/cc - skipped
58.28 -- Detecting C compile features
58.28 -- Detecting C compile features - done
58.28 -- Detecting CXX compiler ABI info
58.31 -- Detecting CXX compiler ABI info - done
58.31 -- Check for working CXX compiler: /usr/bin/c++ - skipped
58.31 -- Detecting CXX compile features
58.31 -- Detecting CXX compile features - done
58.31 -- Operating system detected as...
58.31 -- 	... : Linux-6.12.5-linuxkit
58.32 -- Adding build types...
58.32 -- Current build type is : Debug
58.32 -- Adding compiler flags...
58.32 -- 	...for GNU compiler, version 14.2.0
58.32 
58.32 ####################################
58.32 # Finding libraries
58.32 ####################################
58.32 
58.32 CMake Warning (dev) at CMakeLists.txt:262 (find_package):
58.32   Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
58.32   are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
58.32   the cmake_policy command to set the policy and suppress this warning.
58.32 
58.32 This warning is for project developers.  Use -Wno-dev to suppress it.
58.32 
58.32 -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.12.7", minimum required is "3.5")
58.32 -- Creating virtual environment for chaste_codegen in /home/chaste/build/codegen_python3_venv
59.15 -- Updating pip setuptools and wheel
59.24 Requirement already satisfied: pip in ./build/codegen_python3_venv/lib/python3.12/site-packages (24.2)
59.29 Collecting pip
59.34   Downloading pip-25.0.1-py3-none-any.whl.metadata (3.7 kB)
59.45 Collecting setuptools
59.46   Downloading setuptools-78.1.0-py3-none-any.whl.metadata (6.6 kB)
59.49 Collecting wheel
59.49   Downloading wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
59.50 Downloading pip-25.0.1-py3-none-any.whl (1.8 MB)
59.87    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 5.2 MB/s eta 0:00:00
59.88 Downloading setuptools-78.1.0-py3-none-any.whl (1.3 MB)
60.08    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 6.6 MB/s eta 0:00:00
60.08 Downloading wheel-0.45.1-py3-none-any.whl (72 kB)
60.12 Installing collected packages: wheel, setuptools, pip
60.43   Attempting uninstall: pip
60.43     Found existing installation: pip 24.2
60.44     Uninstalling pip-24.2:
60.44       Successfully uninstalled pip-24.2
60.77 Successfully installed pip-25.0.1 setuptools-78.1.0 wheel-0.45.1
60.80 -- Installing chaste_codegen
60.93 Collecting chaste_codegen<0.9.0,>=0.8.0 (from -r /home/chaste/src/chaste_codegen.txt (line 1))
60.99   Downloading chaste_codegen-0.8.1-py3-none-any.whl.metadata (3.8 kB)
61.01 Collecting py>=1.10.0 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.03   Downloading py-1.11.0-py2.py3-none-any.whl.metadata (2.8 kB)
61.04 Collecting decorator<5,>=4.4.2 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.06   Downloading decorator-4.4.2-py2.py3-none-any.whl.metadata (4.2 kB)
61.09 Collecting importlib-metadata<5,>=1.7 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.11   Downloading importlib_metadata-4.13.0-py3-none-any.whl.metadata (4.9 kB)
61.12 Collecting isodate<1,>=0.6.0 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.14   Downloading isodate-0.7.2-py3-none-any.whl.metadata (11 kB)
61.26 Collecting lxml<5,>=4.6.3 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.27   Downloading lxml-4.9.4-cp312-cp312-manylinux_2_28_aarch64.whl.metadata (3.7 kB)
61.31 Collecting MarkupSafe<2,>=1.1.1 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.32   Downloading MarkupSafe-1.1.1.tar.gz (19 kB)
61.33   Preparing metadata (setup.py): started
61.40   Preparing metadata (setup.py): finished with status 'done'
61.41 Collecting mpmath<2,>=1.1.0 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.41   Downloading mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
61.43 Collecting networkx<3,>=2.4 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.44   Downloading networkx-2.8.8-py3-none-any.whl.metadata (5.1 kB)
61.46 Collecting packaging<21,>=20.4 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.47   Downloading packaging-20.9-py2.py3-none-any.whl.metadata (13 kB)
61.49 Collecting Pint<0.20,>=0.9 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
61.50   Downloading Pint-0.19.2.tar.gz (292 kB)
61.57   Installing build dependencies: started
62.71   Installing build dependencies: finished with status 'done'
62.71   Getting requirements to build wheel: started
62.76   Getting requirements to build wheel: finished with status 'done'
62.77   Preparing metadata (pyproject.toml): started
62.83   Preparing metadata (pyproject.toml): finished with status 'done'
62.86 Collecting pyparsing<3,>=2.4.7 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
62.87   Downloading pyparsing-2.4.7-py2.py3-none-any.whl.metadata (3.6 kB)
62.88 Collecting rdflib<6,>=5.0.0 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
62.89   Downloading rdflib-5.0.0-py3-none-any.whl.metadata (2.3 kB)
62.91 Collecting six<2,>=1.15.0 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
62.91   Downloading six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
62.93 Collecting sympy<2,>=1.6.1 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
62.94   Downloading sympy-1.13.3-py3-none-any.whl.metadata (12 kB)
62.96 Collecting zipp<2,>=1.2.0 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
62.97   Downloading zipp-1.2.0-py2.py3-none-any.whl.metadata (1.8 kB)
62.99 Collecting cellmlmanip<0.4,>=0.3.0 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
63.00   Downloading cellmlmanip-0.3.7-py3-none-any.whl.metadata (2.2 kB)
63.02 Collecting Jinja2<3,>=2.11.3 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
63.03   Downloading Jinja2-2.11.3-py2.py3-none-any.whl.metadata (3.5 kB)
63.04 Collecting sympy<2,>=1.6.1 (from chaste_codegen<0.9.0,>=0.8.0->-r /home/chaste/src/chaste_codegen.txt (line 1))
63.05   Downloading sympy-1.12.1-py3-none-any.whl.metadata (12 kB)
63.08 Downloading chaste_codegen-0.8.1-py3-none-any.whl (106 kB)
63.12 Downloading cellmlmanip-0.3.7-py3-none-any.whl (83 kB)
63.15 Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
63.16 Downloading importlib_metadata-4.13.0-py3-none-any.whl (23 kB)
63.18 Downloading isodate-0.7.2-py3-none-any.whl (22 kB)
63.20 Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
63.22 Downloading lxml-4.9.4-cp312-cp312-manylinux_2_28_aarch64.whl (7.7 MB)
64.51    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.7/7.7 MB 6.0 MB/s eta 0:00:00
64.52 Downloading mpmath-1.3.0-py3-none-any.whl (536 kB)
64.61    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 6.4 MB/s eta 0:00:00
64.62 Downloading networkx-2.8.8-py3-none-any.whl (2.0 MB)
64.93    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 6.5 MB/s eta 0:00:00
64.94 Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)
64.95 Downloading py-1.11.0-py2.py3-none-any.whl (98 kB)
64.98 Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
65.00 Downloading rdflib-5.0.0-py3-none-any.whl (231 kB)
65.05 Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
65.06 Downloading sympy-1.12.1-py3-none-any.whl (5.7 MB)
65.89    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 6.9 MB/s eta 0:00:00
65.91 Downloading zipp-1.2.0-py2.py3-none-any.whl (4.8 kB)
65.95 Building wheels for collected packages: MarkupSafe, Pint
65.95   Building wheel for MarkupSafe (setup.py): started
66.11   Building wheel for MarkupSafe (setup.py): finished with status 'done'
66.11   Created wheel for MarkupSafe: filename=markupsafe-1.1.1-cp312-cp312-linux_aarch64.whl size=31157 sha256=c9eb14c183f46e3bd011ff16d21afa6a679cd512b7b25643300ecebbc8f07048
66.11   Stored in directory: /tmp/pip-ephem-wheel-cache-yr0c2xxz/wheels/ff/6d/06/f08a8fbf292f9c43851e9d71174d98d1262f11ddaeb5dbe290
66.11   Building wheel for Pint (pyproject.toml): started
66.21   Building wheel for Pint (pyproject.toml): finished with status 'done'
66.21   Created wheel for Pint: filename=pint-0.19.2-py3-none-any.whl size=231047 sha256=1b45d5dddcb67b11e9efe6f4df66c16ade10a576a5211d44d55bc04155f421f0
66.21   Stored in directory: /tmp/pip-ephem-wheel-cache-yr0c2xxz/wheels/5b/bf/1d/cdfc2a0e12385295b6be4d7226f5bc364ff4dd9c09fefa2bec
66.21 Successfully built MarkupSafe Pint
66.22 Installing collected packages: mpmath, zipp, sympy, six, pyparsing, py, Pint, networkx, MarkupSafe, lxml, isodate, decorator, rdflib, packaging, Jinja2, importlib-metadata, cellmlmanip, chaste_codegen
69.10 Successfully installed Jinja2-2.11.3 MarkupSafe-1.1.1 Pint-0.19.2 cellmlmanip-0.3.7 chaste_codegen-0.8.1 decorator-4.4.2 importlib-metadata-4.13.0 isodate-0.7.2 lxml-4.9.4 mpmath-1.3.0 networkx-2.8.8 packaging-20.9 py-1.11.0 pyparsing-2.4.7 rdflib-5.0.0 six-1.17.0 sympy-1.12.1 zipp-1.2.0
69.20 CMake Error at /usr/lib/aarch64-linux-gnu/cmake/vtk-9.3/VTK-vtk-module-find-packages.cmake:115 (find_package):
69.20   By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
69.20   asked CMake to find a package configuration file provided by "Qt5", but
69.20   CMake did not find one.
69.20 
69.20   Could not find a package configuration file provided by "Qt5" (requested
69.20   version 5.15) with any of the following names:
69.20 
69.20     Qt5Config.cmake
69.20     qt5-config.cmake
69.20 
69.20   Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
69.20   to a directory containing one of the above files.  If "Qt5" provides a
69.20   separate development package or SDK, be sure it has been installed.
69.20 Call Stack (most recent call first):
69.20   /usr/lib/aarch64-linux-gnu/cmake/vtk-9.3/vtk-config.cmake:159 (include)
69.20   CMakeLists.txt:326 (find_package)
69.20 
69.20 
69.20 -- Configuring incomplete, errors occurred!

Dockerfile:152

 150 |     ARG GIT_TAG=-
 151 |     ENV GIT_TAG=${GIT_TAG}
 152 | >>> RUN build_chaste.sh ${GIT_TAG}
 153 |     
 154 |     # Automatically mount the home directory in a volume to persist changes made there.

ERROR: failed to solve: process "/bin/sh -c build_chaste.sh ${GIT_TAG}" did not complete successfully: exit code: 1

Is it possible to fix this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions