本文介绍了libX11中的Dyld Missing glX *的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试运行[executable]这个我在Linux下编写的程序,并试图在OSX的XQuartz下进行测试时,我得到:

​While attempting to run [executable], a program I wrote under Linux and am attempting to test under XQuartz on OSX, I get:

dyld: lazy symbol binding failed: Symbol not found: _glXChooseVisual
  Referenced from: [executable]
  Expected in: /usr/X11/lib/libX11.6.dylib
[...]
Trace/BPT trap: 5

我能找到的唯一先例是,但尚未解决.我的程序在此处中设置了GLEW.显然,没有找到glXChooseVisual,但是我会在libX11期望,所以. . .出了什么问题?

The only precedent I could find was this, which wasn't resolved. My program uses GLEW as set up here. Clearly, glXChooseVisual isn't being found, but I would expect it in libX11, so . . . what went wrong?

推荐答案

glXChooseVisual位于libGL中,而不位于libX11中

glXChooseVisual is located in libGL not in libX11

这篇关于libX11中的Dyld Missing glX *的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 22:14