Results 1 to 4 of 4

Thread: GL For Symbian

  1. #1
    Join Date
    Mar 2010
    Posts
    38
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default GL For Symbian

    When im trying to compile any GL application im getting an error:

    Qt Code:
    1. WARNING: Can't find following headers in System Include Path
    2. <qglobalt.h> <GL\gl.h> <GL\glu.h>
    3. (Sys Inc Paths "\Qt\4.6.1-symbian\include\QtCore\" "\Qt\4.6.1-symbian\include\QtCore\tmp\" "\Qt\4.6.1-symbian\include\QtGui\" "\Qt\4.6.1-symbian\include\QtGui\tmp\" "\Qt\4.6.1-symbian\include\QtOpenGL\" "\Qt\4.6.1-symbian\include\QtOpenGL\tmp\" "\Qt\4.6.1-symbian\include\" "\Qt\4.6.1-symbian\include\tmp\" "\Qt\4.6.1-symbian\mkspecs\common\symbian\" "\Qt\4.6.1-symbian\mkspecs\common\symbian\tmp\" "\Symbian\9.2\S60_3rd_FP1_3\EPOC32\include\" "\source\OGLPyramid\" "\source\OGLPyramid\tmp\" "\Symbian\9.2\S60_3rd_FP1_3\EPOC32\include\stdapis\" "\Symbian\9.2\S60_3rd_FP1_3\EPOC32\include\stdapis\sys\" "\Symbian\9.2\S60_3rd_FP1_3\EPOC32\include\stdapis\stlport\" "\Symbian\9.2\S60_3rd_FP1_3\epoc32\include\variant" "C:\Program Files\CSL Arm Toolchain\bin\..\lib\gcc\arm-none-symbianelf\3.4.3\include\")
    4. Dependency list for "\source\OGLPyramid\OGLPyramid.cpp" may be incomplete
    To copy to clipboard, switch view to plain text mode 

    As a result im getting:
    Qt Code:
    1. In file included from /Qt/4.6.1-symbian/include/QtCore/qatomic_symbian.h:1,
    2. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_arch.h:86,
    3. from /Qt/4.6.1-symbian/include/QtCore/qatomic_arch.h:1,
    4. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/thread/qbasicatomic.h:227,
    5. from /Qt/4.6.1-symbian/include/QtCore/qbasicatomic.h:1,
    6. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/thread/qatomic.h:46,
    7. from /Qt/4.6.1-symbian/include/QtCore/qatomic.h:1,
    8. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/tools/qbytearray.h:45,
    9. from /Qt/4.6.1-symbian/include/QtCore/qbytearray.h:1,
    10. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/tools/qstring.h:46,
    11. from /Qt/4.6.1-symbian/include/QtCore/qstring.h:1,
    12. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/kernel/qobject.h:48,
    13. from /Qt/4.6.1-symbian/include/QtCore/qobject.h:1,
    14. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/animation/qabstractanimation.h:45,
    15. from /Qt/4.6.1-symbian/include/QtCore/qabstractanimation.h:1,
    16. from /Qt/4.6.1-symbian/include/QtCore/QtCore:3,
    17. from /Qt/4.6.1-symbian/include/QtGui/QtGui:3,
    18. from /source/OGLPyramid/oglpyramid.cpp:10:
    19. /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_symbian.h:45:22: qglobalt.h: No such file or directory
    20. In file included from /Qt/4.6.1-symbian/include/QtCore/qatomic_symbian.h:1,
    21. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_arch.h:86,
    22. from /Qt/4.6.1-symbian/include/QtCore/qatomic_arch.h:1,
    23. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/thread/qbasicatomic.h:227,
    24. from /Qt/4.6.1-symbian/include/QtCore/qbasicatomic.h:1,
    25. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/thread/qatomic.h:46,
    26. from /Qt/4.6.1-symbian/include/QtCore/qatomic.h:1,
    27. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/tools/qbytearray.h:45,
    28. from /Qt/4.6.1-symbian/include/QtCore/qbytearray.h:1,
    29. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/tools/qstring.h:46,
    30. from /Qt/4.6.1-symbian/include/QtCore/qstring.h:1,
    31. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/kernel/qobject.h:48,
    32. from /Qt/4.6.1-symbian/include/QtCore/qobject.h:1,
    33. from /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/animation/qabstractanimation.h:45,
    34. from /Qt/4.6.1-symbian/include/QtCore/qabstractanimation.h:1,
    35. from /Qt/4.6.1-symbian/include/QtCore/QtCore:3,
    36. from /Qt/4.6.1-symbian/include/QtGui/QtGui:3,
    37. from /source/OGLPyramid/oglpyramid.cpp:10:
    38. /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_symbian.h: In member function `bool QBasicAtomicInt::ref()':
    39. /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_symbian.h:117: error: `User' has not been declared
    40. /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_symbian.h:117: error: `LockedInc' undeclared (first use this function)
    41. /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_symbian.h:117: error: (Each undeclared identifier is reported only once for each function it appears in.)
    42. /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_symbian.h: In member function `bool QBasicAtomicInt::deref()':
    43. /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_symbian.h:123: error: `User' has not been declared
    44. /Qt/4.6.1-symbian/include/QtCore/../../src/corelib/arch/qatomic_symbian.h:123: error: `LockedDec' undeclared (first use this function)
    45. In file included from /Qt/4.6.1-symbian/include/QtOpenGL/qgl.h:1,
    46. from /Qt/4.6.1-symbian/include/QtOpenGL/QGLWidget:1,
    47. from /source/OGLPyramid/OGLPyramid.h:13,
    48. from /source/OGLPyramid/oglpyramid.cpp:11:
    49. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:77:20: GL/gl.h: No such file or directory
    50. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:79:23: GL/glu.h: No such file or directory
    51. In file included from /Qt/4.6.1-symbian/include/QtOpenGL/qgl.h:1,
    52. from /Qt/4.6.1-symbian/include/QtOpenGL/QGLWidget:1,
    53. from /source/OGLPyramid/OGLPyramid.h:13,
    54. from /source/OGLPyramid/oglpyramid.cpp:11:
    55. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h: At global scope:
    56. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:315: error: `GLuint' does not name a type
    57. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:317: error: `GLuint' does not name a type
    58. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:320: error: `GLuint' does not name a type
    59. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:322: error: `GLuint' does not name a type
    60. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:324: error: `GLuint' does not name a type
    61. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:326: error: `GLuint' has not been declared
    62. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:326: error: ISO C++ forbids declaration of `tx_id' with no type
    63. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:328: error: `GLuint' has not been declared
    64. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:328: error: `GLenum' has not been declared
    65. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:328: error: ISO C++ forbids declaration of `textureId' with no type
    66. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:328: error: ISO C++ forbids declaration of `textureTarget' with no type
    67. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:329: error: `GLuint' has not been declared
    68. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:329: error: `GLenum' has not been declared
    69. /Qt/4.6.1-symbian/include/QtOpenGL/../../src/opengl/qgl.h:329: error: ISO C++ forbids declaration of `textureId' with no type
    To copy to clipboard, switch view to plain text mode 

    and:

    Qt Code:
    1. make[2]: *** [\Symbian\9.2\S60_3rd_FP1_3\EPOC32\BUILD\source\OGLPyramid\OGLPYRAMID_0XE1FD10D6\GCCE\UDEB\OGLPyramid.o] Error 1
    2. make[1]: *** [TARGETOGLPYRAMID_0XE1FD10D6] Error 2
    To copy to clipboard, switch view to plain text mode 

    What can it be?

  2. #2
    Join Date
    Mar 2010
    Location
    Bangalore, India
    Posts
    4
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: GL For Symbian

    Hi,

    I am getting the same errors. Basically, can anyone please show how to use Qt OpenGL API on Symbian. I am trying to run the "Hello GL" example on Symbian. I am able to run it fine on Windows platform but not in Symbian.

    Thanks in advance.

    Regards,
    Azhar

  3. #3
    Join Date
    Mar 2010
    Location
    Bangalore, India
    Posts
    4
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: GL For Symbian

    Hi,

    I came to know that Symbian uses "OpenGL ES" instead of "OpenGL". Then, I tried to run, "Hello OpenGL ES". Still, I got errors. But, i resolved them by including "#include <GLES/egl.h>".
    Now, I am getting error, "Specified file '\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\ WINSCW\udeb\QtOpenGL.lib' not found". I tried searching for this file but could not find it neither in Symbian SDK nor in Qt SDK folder.


    Regards,
    Azhar

  4. #4
    Join Date
    Jun 2010
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: GL For Symbian

    Two things. Are you running on the simulator? If so, it doesn't support OpenGL, so it'll give you this error. Also you can't use deprecated OpenGL commands like GLBegin and many others. I'm struggling with this myself as all the frustrum, perpective and color and lighting information has to done in shaders now. The new versions of OpenGL will work the same way. For information on OpenGL ES and some code that helps either use the Qt3d engine on Gitorious for code or the Imagination technology SDK. You can download both for free, they have a lot of example code on how to use OpenGL ES. Unfortunately, I haven't found an example that uses a simple frustrum as the Hello OpenGL ES example uses ortho only.

Similar Threads

  1. Symbian/Windows
    By jonl in forum Newbie
    Replies: 0
    Last Post: 8th March 2010, 23:14
  2. In Symbian?
    By martinn in forum Qwt
    Replies: 1
    Last Post: 25th February 2010, 10:33
  3. Qt for Symbian, where to start?
    By Lawand in forum Qt Programming
    Replies: 4
    Last Post: 13th February 2010, 08:25
  4. Load dll on Symbian
    By hubbobubbo in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 9th February 2010, 14:08
  5. Telephony API for QT (not Symbian)
    By almodius in forum Qt Programming
    Replies: 1
    Last Post: 13th November 2009, 08:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.