glTail 启动错误
对于那些不知道我在说什么的人,这是来自 glTail a href="http://www.fudgie.org/" rel="nofollow noreferrer">Fudgie。
在我家里的 Mac 上,我一直无法让 glTail 工作。 我已经让它在我的工作 Mac 上运行了。 这只是最后的手段,因为过去的两天除了浪费时间之外什么也没有。
我安装了相同的库:Ruby 1.8.6、Gem 1.3.1、net-ssh 1.1.4、Chipmunk 2D、ruby-opengl 0.60.0 和 file-tail 1.0.3。
这是我尝试启动它时运行的命令:
./gl_tail configfile config.yaml
它立即显示(几乎是瞬间):
-macbook:bin Garrett$ ./gl_tail configfile config.yaml ./../lib/gl_tail/engine.rb:300: [BUG] Bus Error ruby 1.8.6 (2008-03-03) [universal-darwin9.0] Abort trap
如果您查看 engine.rb
,它是第一行:
def start glutInit() # Line 300 glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE) glutInitWindowPosition(0, 0) glutInitWindowSize(@config.screen.window_width, @config.screen.window_height) glutCreateWindow('glTail')
我有一种感觉一些类似于 GLUT 的东西没有正确安装。 我并不期待太多帮助,因为它本身的代码几乎没有文档。 但看到它立即被杀死,我有一种感觉,也许它没有完全更新,很可能是 OpenGL。
For all those who don't know what I am talking about, it's glTail from Fudgie.
On my Mac at home, I have never been able to get glTail to work. I have gotten it to work on my work Mac. This is just a last resort, as the past 2 days have been nothing but seems like wasted time.
I have the same libraries installed: Ruby 1.8.6, Gem 1.3.1, net-ssh 1.1.4, Chipmunk 2D, ruby-opengl 0.60.0 and file-tail 1.0.3.
Here is the command that I run to try to start it up:
./gl_tail configfile config.yaml
It says right off the bat (almost instantaneously):
-macbook:bin Garrett$ ./gl_tail configfile config.yaml ./../lib/gl_tail/engine.rb:300: [BUG] Bus Error ruby 1.8.6 (2008-03-03) [universal-darwin9.0] Abort trap
If you look at engine.rb
, it's the first line:
def start glutInit() # Line 300 glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE) glutInitWindowPosition(0, 0) glutInitWindowSize(@config.screen.window_width, @config.screen.window_height) glutCreateWindow('glTail')
I have a feeling it's something along the lines of GLUT not being installed properly. I am not expecting too much help, as the code it self has very little documentation as it is. But seeing as it's being killed right away I have a feel maybe it's something that isn't updated all the way, most likely OpenGL.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定这对 Linux 用户是否有帮助,但是……
我认为您确实缺少 libglut-headers。 如果您通过 gems 安装,这是您需要的唯一外部东西。 在Linux上,我只需要安装
libglut3-dev
包,然后gem install gltail
它就可以用它构建ruby-opengl
。因此,尝试在您的平台上找到 libglut 开发标头。 希望有帮助!
I'm not sure if this is at all helpful to you coming from a linux user, but here goes...
I think you are missing the libglut-headers, indeed. If you are installing through gems, that's the only external thing you would need. On linux, I only have to install the
libglut3-dev
package, thengem install gltail
it can buildruby-opengl
with that.So, try to find the libglut development headers on your platform. Hope that helps!