Intel 显卡无法开启 opengl 吗?

系统默认就是如此……openSUSE12.3,你现在的系统上大概也有 Mesa,也许不够新?
Mesa 的包在官方 Update 源上就有,版本 9.0.2, 今年一月发布的,应该能够支持你的硬件吧。
http://en.wikipedia.org/wiki/Mesa_(computer_graphics) 这个 wiki 看,Mesa DRI 和 Gallium3D 是两种不同的 3D 加速驱动模型,值得一试。
我的机子上没有 Gallium 包,Yast 里也没有,所以也不了解 Gaullium 的情况,备份好系统在 Yast 里装上 Mesa 卸掉 Gallium 也许能行……

我也认为不是硬件的问题,也不是 bumblebee 的问题,而是 intel 驱动的问题。我的另一台电脑也是 intel 集成显卡的,配置比现在我用的要低,glxinfo | grep render 后也是 Mesa DRI Intel(R) Ironlake Mobile ,所安装的系统是 openSUSE12.2,经过对比,我以现 12.2 的多了一个软件包:Mesa-libGLU1,不知你的系统中是否也有这个软件包?

奇怪,我的机子里也找 不到 Gallium 包。

我现在机子上的 Mesa 版本也中 9.02 的

我没有 libGLU1 这个包,我的 Mesa 相关包是这些:

 软件包                            | 摘要                                       | 已安装 (可用)      

DirectFB-Mesa                  | Mesa backend of Graphics Library for ... | 1.6.2-3.1.1   
Mesa                           | System for rendering interactive 3-D ... | 9.0.2-34.20.1 
Mesa-32bit                     | System for rendering interactive 3-D ... | 9.0.2-34.20.1 
Mesa-demo-x                    | GLX-based demos                          | 8.0.1-8.1.1   
Mesa-devel                     | Libraries, includes and more to devel... | 9.0.2-34.20.1 
Mesa-libEGL-devel              | Development files for the EGL API        | 9.0.2-34.20.1 
Mesa-libEGL1                   | Free implementation of the EGL API       | 9.0.2-34.20.1 
Mesa-libGL-devel               | GL/GLX development files of the OpenG... | 9.0.2-34.20.1 
Mesa-libGL1                    | The GL/GLX runtime of the Mesa 3D gra... | 9.0.2-34.20.1 
Mesa-libGL1-32bit              | The GL/GLX runtime of the Mesa 3D gra... | 9.0.2-34.20.1 
Mesa-libGLESv1_CM-devel        | Development files for the OpenGL ES 1... | 9.0.2-34.20.1 
Mesa-libGLESv1_CM1             | Free implementation of the OpenGL|ES ... | 9.0.2-34.20.1 
Mesa-libGLESv2-2               | Free implementation of the OpenGL|ES ... | 9.0.2-34.20.1 
Mesa-libGLESv2-devel           | Development files for the OpenGL ES 2... | 9.0.2-34.20.1 
Mesa-libIndirectGL-devel       | Development Files for the free implem... | 9.0.2-34.20.1 
Mesa-libIndirectGL1            | Free implementation of the OpenGL API    | 9.0.2-34.20.1 
Mesa-libglapi-devel            | Development files for the free implem... | 9.0.2-34.20.1 
Mesa-libglapi0                 | Free implementation of the GL API        | 9.0.2-34.20.1 
Mesa-libglapi0-32bit           | Free implementation of the GL API        | 9.0.2-34.20.1 
libOSMesa-devel                | Development files for the Mesa Offscr... | 9.0.2-34.20.1 
libOSMesa9                     | Mesa Off-screen rendering extension      | 9.0.2-34.20.1

比我的多了好多包。我安装试试。
还有一个奇怪问题,既然:OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x302),那么也应该能开 OpenGL 才对呀?莫非这个 Gallium 根本不存在?

根据 http://www.mesa3d.org/llvmpipe.html
Gallium llvmpipe driver 应该是 Mesa 库的一部分,需要 LLVM 包支持的,但我的机子上没有安装 llvm
这个包貌似还是 Mesa 最快的 software rasterizer,大概新集显才应用,不过从 google 看似乎在许多集显上出问题了(系统配置问题)

安装了你所列出的所有包,仍是不行,看来的确是新集显有问题,旧集显反倒没问题。

安装了 llvm,虽然还是打不开 OpenGL,但系统似乎快多了。

感觉至少快了一倍。

最新版本 Mesa 是 9.22, 刚下载了一个包,./configure,make,这时说找不到 makefile,安装失败。

能帮看一下问题出在哪吗?

./configure
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... (cached) no
checking whether g++ accepts -g... no
checking dependency style of g++... (cached) none
checking how to run the C++ preprocessor... /lib/cpp
checking dependency style of gcc... gcc3
checking for gmake... gmake
checking for python2... python2
checking python2 module: libxml2... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 6291456
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s

checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
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 dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for bison... no
checking for byacc... no
checking if bison is the parser generator... no
checking for flex... no
checking for lex... no
checking if flex is the lexer generator... no
checking for perl... /usr/bin/perl
checking for indent... cat
checking if compiling with clang... no
checking whether gcc version is sufficient... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether gcc supports -Werror=missing-prototypes... yes
checking whether gcc supports -fvisibility=hidden... yes
checking whether to enable assembly... yes, x86_64
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for clock_gettime... yes
checking for posix_memalign... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
checking for LIBDRM... yes
checking for GLPROTO... yes
checking for DRI2PROTO... yes
checking for XF86VIDMODE... yes
checking for DRIGL... yes
checking expat.h usability... no
checking expat.h presence... no
checking for expat.h... no
configure: error: Expat required for DRI.

make

make: *** 没有指明目标并且找不到 makefile。 停止。

configure 失败,缺 Expat 这个东西,没有产生 Makefile

我觉得应该不是 Mesa 的问题,就是系统设置有什么地方不对屏蔽了 Mesa。

但愿如此,那还有希望。

安装了 Expat,但还是一样,没安装成功。
好像提示中蛮多 NO 的,连 c++ 都 NO 了,是什么原因?

是不是还缺包啊。手动编译就是这样的,缺一个补一个,装完还不一定能用。
c++ 编译器系统默认是不带的,要自己装。
我觉得更新 Mesa 没必要,问题很可能不在 Mesa 身上……

不会吧?怎么会缺那么多?难道新版本与旧版本差别那么大吗?
如果不是 Mesa 的问题,现在也找不出解决的办法。

继续贴输出,会更容易找错些。

好像是一样的,没有变化:

./configure
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... (cached) no
checking whether g++ accepts -g... no
checking dependency style of g++... (cached) none
checking how to run the C++ preprocessor... /lib/cpp
checking dependency style of gcc... gcc3
checking for gmake... gmake
checking for python2... python2
checking python2 module: libxml2... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 6291456
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s

checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
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 dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for bison... no
checking for byacc... no
checking if bison is the parser generator... no
checking for flex... no
checking for lex... no
checking if flex is the lexer generator... no
checking for perl... /usr/bin/perl
checking for indent... cat
checking if compiling with clang... no
checking whether gcc version is sufficient... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether gcc supports -Werror=missing-prototypes... yes
checking whether gcc supports -fvisibility=hidden... yes
checking whether to enable assembly... yes, x86_64
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for clock_gettime... yes
checking for posix_memalign... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
checking for LIBDRM... yes
checking for GLPROTO... yes
checking for DRI2PROTO... yes
checking for XF86VIDMODE... yes
checking for DRIGL... yes
checking expat.h usability... no
checking expat.h presence... no
checking for expat.h... no
configure: error: Expat required for DRI.

最后提示 Expat required,试一试
software.opensuse.org/package/expat