问题描述
我已经尝试了 2 周,知道在 Ubuntu 20.04 中安装 Geant4,我遇到了很多错误,我在本论坛的您的帮助下修复了这些错误,但我无法通过这一点:
fer-tofe@pez:~/Software/geant4.10.07.p01/build$ cmake -DCMAKE_INSTALL_PREFIX=/home/fer-tofe/Software/geant4 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT=ON ..
...
CMake Error at cmake/Modules/G4InterfaceOptions.cmake:143 (find_package):
By not providing "FindQt5OpenGL.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5OpenGL",but CMake did not find one.
Could not find a package configuration file provided by "Qt5OpenGL" with
any of the following names:
Qt5OpenGLConfig.cmake
qt5opengl-config.cmake
Add the installation prefix of "Qt5OpenGL" to CMAKE_PREFIX_PATH or set
"Qt5OpenGL_DIR" to a directory containing one of the above files. If
"Qt5OpenGL" provides a separate development package or SDK,be sure it has
been installed.
Call Stack (most recent call first):
cmake/Modules/G4CMakeMain.cmake:64 (include)
CMakeLists.txt:51 (include)
-- Configuring incomplete,errors occurred!
我已经试过了:
sudo apt update -y
sudo apt-get install -y libqt5opengl5-dev
但它说无法安装软件包:
Do not can instal some pack. This may mean that
you asked for an impossible situation or,if you are using the distribution
unstable,that some required packages have not yet been created or are
They have taken from "Incoming".
The following @R_324_4045@ion can help resolve the situation:
The following packages have unmet dependencies:
libqt5opengl5-dev: Depends: libqt5opengl5 (= 5.12.8 + dfsg-0ubuntu1) but it will not install
Depends: qtbase5-dev (= 5.12.8 + dfsg-0ubuntu1) but it won't install
E: Problems Could not be corrected,you have retained broken packages.
我还尝试了另一种安装库的方法,并且这种方法一直在进行。 希望你能帮助我,谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)