I am installing OMNET++ 5.1.1. However, during the installation, it is reported that:
我正在安装OMNET++ 5.1.1。但是,在安装过程中,据报道:
configure: error: Cannot build Qt apps, probably due to missing or too old Qt packages. Make sure Qt development packages are installed and newer than Qt 5.4. You can disable Qtenv by setting the WITH_QTENV variable to "no" in configure.user.
配置:错误:无法构建Qt应用程序,可能是由于缺少或太旧的Qt包。确保Qt开发包已经安装,并且比Qt 5.4更新。您可以通过在configure.user中将WITH_QTENV变量设置为“no”来禁用Qtenv。
Then I download and install the Qt from https://www.qt.io/download/. But it still report the same problem. How can I solve this problem ? Thank you.
然后我从https://www.qt.io/download/下载并安装Qt。但它仍然报告了同样的问题。我如何解决这个问题?谢谢你!
1 个解决方案
#1
2
I assume you're running some kind of GNU/Linux, because on Windows and macOS, the bundled Qt libraries should just work.
我假设您正在运行某种GNU/Linux,因为在Windows和macOS上,捆绑的Qt库应该可以工作。
Try installing the Qt5 development packages using your distro's native package manager, then they should be detected.
尝试使用发行版的本机包管理器安装Qt5开发包,然后应该检测它们。
If you can't, or they are too old, take a look in the configure.user
file, and adjust the value of the QT_PATH
variable according to the instructions there.
如果不能,或者它们太老了,请查看配置。用户文件,根据这里的说明调整QT_PATH变量的值。
EDIT:
编辑:
Since the OS was clarified: On Windows, you don't need to download Qt, or any other library separately. They are all bundled with the OMNeT++ distribution, and should work fine.
由于操作系统是明确的:在Windows上,您不需要分别下载Qt或任何其他库。它们都与OMNeT++分布捆绑在一起,应该可以正常工作。
Just make sure you always use the included mingwenv
shell to install and run OMNeT++. In it, the environment variables are set up as necessary.
只要确保您总是使用包含的mingwenv shell来安装和运行OMNeT++。在其中,根据需要设置环境变量。
#1
2
I assume you're running some kind of GNU/Linux, because on Windows and macOS, the bundled Qt libraries should just work.
我假设您正在运行某种GNU/Linux,因为在Windows和macOS上,捆绑的Qt库应该可以工作。
Try installing the Qt5 development packages using your distro's native package manager, then they should be detected.
尝试使用发行版的本机包管理器安装Qt5开发包,然后应该检测它们。
If you can't, or they are too old, take a look in the configure.user
file, and adjust the value of the QT_PATH
variable according to the instructions there.
如果不能,或者它们太老了,请查看配置。用户文件,根据这里的说明调整QT_PATH变量的值。
EDIT:
编辑:
Since the OS was clarified: On Windows, you don't need to download Qt, or any other library separately. They are all bundled with the OMNeT++ distribution, and should work fine.
由于操作系统是明确的:在Windows上,您不需要分别下载Qt或任何其他库。它们都与OMNeT++分布捆绑在一起,应该可以正常工作。
Just make sure you always use the included mingwenv
shell to install and run OMNeT++. In it, the environment variables are set up as necessary.
只要确保您总是使用包含的mingwenv shell来安装和运行OMNeT++。在其中,根据需要设置环境变量。