×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    8

    Question How to use OpenGL with PySide (Python-Qt)?

    I have a very basic question? What do I need to know to be able to create a simple OpenGL (ES2 or whatever) application with PySide 0.2.3 and Qt 4.6? What I need is just 'hello world' level information

    Currently I have Pyside 0.2.3 installed and working with Qt 4.6, which is verified with non-OpenGL applications. However, when I try to say "from OpenGL import GL", the Python claims I have no such library installed. Should I even try to import OpenGL? Should I import something else? Should I apt-get install some library other than 'pyside-qt4-opengl' or 'libqt4-maemo5-opengl' because those I already have?

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenGL with PySide (Python-Qt)?

    You can find examples here:
    http://qt.gitorious.org/pyside/pysid...xamples/opengl
    OpenGL driver is not available for x86 target at the moment.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    8

    Re: How to use OpenGL with PySide (Python-Qt)?

    Yep. I already found those. But when I try to run for example 'hellogl.py' in my N900, the application shows a dialog saying 'PyOpenGL must be installed to run this example'.

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenGL with PySide (Python-Qt)?

    I guess an example depends on python-opengl package, which is available for Ubuntu, but not for Maemo.

  5. #5
    Registered User
    Join Date
    Apr 2007
    Posts
    8

    Re: How to use OpenGL with PySide (Python-Qt)?

    So are there any plans on supporting Python-OpenGL on Maemo or is 3D programming going to be C++ only?

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenGL with PySide (Python-Qt)?

    Quote Originally Posted by TomiS View Post
    So are there any plans on supporting Python-OpenGL on Maemo or is 3D programming going to be C++ only?
    If you find python bindings to OpenGL ES 2.0, then it will be supported on Maemo

Similar Threads

  1. Qt for Symbian development resources
    By liuxg in forum [Archived] Qt General ( Qt技术)
    Replies: 55
    Last Post: 2011-01-26, 04:06
  2. kinetic scrolling
    By stalep in forum Nokia N9
    Replies: 10
    Last Post: 2009-12-08, 12:41
  3. Python for S60 1.9.4 is now released
    By tvijayan in forum Symbian
    Replies: 9
    Last Post: 2009-05-27, 10:39
  4. Python for S60 1.9.3 released
    By tvijayan in forum Symbian
    Replies: 40
    Last Post: 2009-04-03, 15:00
  5. Python for S60 1.9.0 released
    By tvijayan in forum Symbian
    Replies: 48
    Last Post: 2009-01-27, 15:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×