安装有限元工具包 (FETK) 需要哪些 GL 库?

安装有限元工具包 (FETK) 需要哪些 GL 库?

尝试在 Ubuntu 12.04 中安装“有限元工具包”。

从以下网址下载 1.5 版的源文件 (tar.gz)这里

它有一个脚本来安装随之而来的所有工具,所以当我运行该脚本时,它会依次调用./configure 脚本并检查缺失和所需的依赖项。

然后程序停止并出现错误“GL 库缺失但需要..因错误退出”

---------- begin processing APP configure options ----------
checking whether you want pedantic ANSI compilation... no
checking whether you want profiling... no
checking whether you want ElectricFence... no
checking whether your environment defines FETK_MOTIF_LIBRARY... no
checking for XmGetColors in -lXm... no
Motif library missing but not required ...rocking on...
checking whether your environment defines FETK_GL_LIBRARY... no
checking whether you need the MacOSX hack for OpenGL... no
checking for glPushMatrix in -lGL... no
configure: error: GL library missing but REQUIRED...EXITING ON ERROR
make: *** No rule to make target `install'.  Stop.
~/Desktop/fetk
---------------------- FETK-BUILD: STOPPING ----------------------

虽然我已经安装了几乎大多数图形库包,如 freeglut3、freeglut3-dev、libglib-mesa 等,但仍然出现同样的错误。

答案1

在 CentOS 上,我通过安装所有 XOrg 库修复了此错误:

yum 安装‘libX*-devel’

我假设在 Ubuntu 上也会有类似的东西。也许是:

apt 安装 libx11-dev

相关内容