我正在尝试将 mesa 与 vis5d+ 链接起来
mesa 安装在以下目录下:
/usr/lib/i386-linux-gnu/mesa
当我尝试配置 vis5d+ 时
ipc@ipc-ThinkPad-X240:~/Downloads/vis5d+-1.3.0-beta$./configure
它返回
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking for vendor's cc to be used instead of gcc... checking for cc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking whether ln -s works... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependant libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... cc -E
checking for dlfcn.h... yes
checking for file... /usr/bin/file
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... no
checking if cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for libintl.h... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ranlib... (cached) ranlib
checking for strerror in -lcposix... no
checking for ANSI C header files... yes
checking for cc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for argz.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.4.1, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for db2html... ../missing db2html
checking for db2dvi... ../missing db2dvi
checking for db2ps... ../missing db2ps
checking for db2pdf... ../missing db2pdf
checking for db2rtf... ../missing db2rtf
checking for convert... no
configure: WARNING: ImageMagick convert program not found in path. Convert can be used
to save vis5d pictures to a variety of output formats.
checking for f77... no
checking for xlf... no
checking for xlf77... no
checking for cf77... no
checking for fl32... no
checking for g77... no
checking for fort77... no
checking for f90... no
checking for xlf90... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for cf77... no
checking for cft77... no
checking for frt... no
checking for pgf77... no
checking for fl32... no
checking for af77... no
checking for fort77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for lf95... no
checking for g95... no
checking for fc... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
configure: WARNING: didn't find any Fortran compiler
checking whether we are using gcc 2.90 or later... yes
*******************************************************
* Congratulations! You are running Linux. *
*******************************************************
checking whether cc accepts -malign-double... yes
checking whether cc accepts -O3 -fomit-frame-pointer -malign-double... yes
checking for float... yes
checking size of float... 4
checking for int... yes
checking size of int... 4
checking for signed char... yes
checking size of signed char... 1
checking whether byte ordering is bigendian... no
checking for sqrt in -lm... yes
checking for zlib.h... yes
checking for deflate in -lz... yes
checking for png.h... yes
checking for png_write_image in -lpng... yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... yes
checking for strdup... (cached) yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for glBegin in -lGL... no
checking for glBegin in -lMesaGL... no
couldn't find OpenGL libraries!
checking for bgnqstrip in -lgl_s... no
****************************************************
You need to install a 3D graphics library, preferably
the free OpenGL replacement, Mesa. You can download
Mesa from the Mesa home page:
http://www.mesa3d.org/
and install it by running:
./configure && make && su -c 'make install'
in the Mesa directory.
You may also need to run /sbin/ldconfig as root
to update the system after installing Mesa.
(First, add '/usr/local/lib' to /etc/ld.so.conf if
you installed Mesa under /usr/local, the default.)
****************************************************
configure: error: couldn't find 3D graphics library
有什么想法吗?PS 我是 Linux 新手
答案1
刚刚读到您的错误消息:添加/usr/lib/i386-linux-gnu/mesa
(或者,/usr/lib/i386-linux-gnu/mesa
即使存在)/etc/ld.so.conf
并以 root 身份运行/sbin/ldconfig
。
如果您已完成此操作但没有帮助,请尝试使用系统存储库mesa
:
sudo apt-get update
sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx libgl1-mesa-drv libgles1-mesa-dev libgles2-mesa-dev libglu1-mesa-dev libosmesa6-dev libegl1-mesa-dev libglapi-mesa libgbm-dev
如果你想要一些未包含在你的 Ubuntu 版本中的新版本的 OpenGL,请使用苯甲酸:
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update
sudo apt-get install xserver-xorg-video-intel
最后一条命令还会更新所有台面图书馆。如果有的话“开发”错过,尝试使用明确台面来自上一段的库列表。
sudo apt-get install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers