• 4097阅读
  • 4回复

opengl在solaris下无法显示画面 [复制链接]

上一主题 下一主题
离线candadition
 

只看楼主 倒序阅读 楼主  发表于: 2012-03-01
关键词: qtopenglsolaris
开发的一个qt图形插件项目,有部分用的qt的opengl绘图。 开发环境vs2008+qt4.7.4 。 对方部署环境solaris
但是现在遇到一个问题,在solaris下程序都能编译通过,生成可执行文件,可以运行,但是只要是在opengl绘图的区域在solaris下均无法显示。对方机器的opengl库也都装了,不知道这是为什么?
另外我们在linux下测试,本来也无法显示,但是将QTDIR下的LIb文件夹中的关于opengl的库全部复制到可执行文件的文件夹下,或者配置linux的qtsdk的环境路径,opengl部分就可以正常显示。但是相关方法在solaris不能正常显示,挠头啊.....
哪位大哥知道这是why?给我指一条出路吧.....感激涕零
离线candadition

只看该作者 1楼 发表于: 2012-03-01
大家遇到过这种问题么
离线candadition

只看该作者 2楼 发表于: 2012-03-01
一个老外在遇到过这种情况:
Regular Contributor

Registered: 09/16/05
Posts: 147
Loc: Dayton


I have an application using Qt 4.3.0 that has many OpenGL widgets. Previously we were using Solaris 9 and OpenGL 1.3 but just last week upgraded to Solaris 10. My program still runs, but my OpenGL no longer renders correctly in my QGLWidgets. I am drawing a 2D plot and the first 50 pixels or so from the top of the QGLWidget draws correctly, but then the rest of the widget only shows the clear color calls. I have checked my viewport and ortho values and those are all correct. I then tried the program on an older Solaris 8 box we have and it works correctly on here. I have rebuilt and relinked my program numerous times and even tried untaring a version we had before the upgrade but with the new OpenGL so files it worked incorrectly.
他说是版本问题,我感觉不像。。。哪位在solaris下跑过qt开发的openg程序,介绍下吧,,
离线candadition

只看该作者 3楼 发表于: 2012-03-08
解决了
离线biggerdog
只看该作者 4楼 发表于: 2012-03-12
你如何解决的?

请问你在Solaris下编译的是Qt的哪个版本?是采用什么编译器编译的Qt吗?

快速回复
限100 字节
 
上一个 下一个