Regardless of what IDE you use, you can use qmake to generate makefiles for your project. To use OpenGL all you need to do is to add QT+=opengl and rerun qmake.
Regardless of what IDE you use, you can use qmake to generate makefiles for your project. To use OpenGL all you need to do is to add QT+=opengl and rerun qmake.
Thanks, I appreciate the response; however, as I mentioned, that produces another problem:
I did run qmake after adding the "QT += opengl" to the .pro file.
After some more digging around on the internet and in forums, I saw that '-opengl' was a ./configure option. I didn't build it with this option initially, so I figured I'd re-install Qt4 and explicitly building it with the "-opengl" option.
OpenGL support is enabled by default provided your system allows it. Enabling it explicitly won't make a difference. From what I see you experience a run-time error from the X server, so either OpenGL support in your system is broken or you do something weird in your application. The problem is surely unrelated to the process of compilation.
wysota, you're almost certainly correct. I continued to dig at this problem and here's what I found.
The rpmfusion drivers are not completed for Fedora 10 and hence not released as yet. This wasn't news; however, intitially I didn't think this would matter: the proprietary ATI drivers seemed to fix the problem of my screen resolution. What I didn't put together was a crash I was getting whenever I tried using Open Office Writer (or any other OO application).
Apprently, the drivers released by ATI weren't sufficiently compatible with Fedora 10. I've gone back to Fedora 9, which does seem to work ( glxgears runs fine), but am getting artifacts:
I realize this may not be caused by Qt; however, I also believe I can't be the first to encounter this. While I plan to continue digging around at this until I get it working, any further suggestions, thoughts, and ideas would be appreciated.
Thanks for everything so far.
Please don't use 3rd party sites for image storage, we really don't like it.
I can't help you with your application without seeing any codeMy guess is that your paintGL() is messed up.
No problem; what do you do for pics instead then?
Okay, the PaintGL method:
Qt Code:
void GLWidget::PaintGL() { glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); glLoadIdentity(); glTranslated( 0.0, 0.0, -10.0 ); glRotated( ( xRot / 16.0 ), 1.0, 0.0, 0.0 ); glRotated( ( yRot / 16.0 ), 0.0, 1.0, 0.0 ); glRotated( ( zRot / 16.0 ), 0.0, 0.0, 1.0 ); glCallList( object ); }To copy to clipboard, switch view to plain text mode
I'm fairly certain it's not messed up.
Apparently, I'm allowed to only upload five files. If you'd like the Makefile and/or the .pro file, let me know.
Bookmarks