Results 1 to 10 of 10

Thread: glew: undefined reference to `_imp____glewFramebufferTexture2D'

  1. #1
    Join Date
    Apr 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default glew: undefined reference to `_imp____glewFramebufferTexture2D'

    Hallo,

    i want to use Framebufferobjects,
    I have glew32.lib
    i call glewInit(); all fine
    Only when calling
    glFramebufferTexture2D( GL_FRAMEBUFFER_EXT,
    GL_COLOR_ATTACHMENT0_EXT,
    GL_TEXTURE_2D,
    fbo_render->texture(),
    0);

    I get the error mentioned above
    I would be very grateful for any hints leading to the solution of this problem
    Regards
    Last edited by Mixpicles; 19th May 2011 at 18:49.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: glew: undefined reference to `_imp____glewFramebufferTexture2D'

    This is an English speaking forum, please post in English.
    It is against the rules of the forum to post in other languages.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Apr 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: glew: undefined reference to `_imp____glewFramebufferTexture2D'

    sry, forgot which language I was writing in.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: glew: undefined reference to `_imp____glewFramebufferTexture2D'

    Include the GLEW library path and library in your link command. If you are using qmake then you want the LIBS variable, to read the qmake manual, and to search this forum for numerous examples (try "external library" or "LIBS").

    If you are using some other build system then look in their manuals because this really has nothing to do with Qt.

  5. #5
    Join Date
    Apr 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: glew: undefined reference to `_imp____glewFramebufferTexture2D'

    Hello, thank you for your reply,

    I already have set the path to my glew32.lib.
    And the initGlew(); does not throw any error, as it would, had I not set the path.

  6. #6
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: glew: undefined reference to `_imp____glewFramebufferTexture2D'

    are 100% sure that the glew headers that you use, and the lib it self have the same version?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  7. #7
    Join Date
    Apr 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: glew: undefined reference to `_imp____glewFramebufferTexture2D'

    I belive so,

    I have copied everything fom the same archive.

  8. #8
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: glew: undefined reference to `_imp____glewFramebufferTexture2D'

    maybe you have a corrupt lib.
    Try downloading it again, possibly from a source that offers a checksum.
    If you are downloading this in a compressed file such a zip or tar ball, it could also happen that the extraction is not done well, resulting in a corrupt file.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  9. #9
    Join Date
    Apr 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: glew: undefined reference to `_imp____glewFramebufferTexture2D'

    Unfortunately, no better result

  10. #10
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: glew: undefined reference to `_imp____glewFramebufferTexture2D'

    Can you post a link to the actual GLEW file you downloaded and a small example of code that can be built, run, and fails in the manner you describe?

    What compiler are you using for GLEW and your application?

Similar Threads

  1. undefined reference
    By deepakswaroop in forum Newbie
    Replies: 1
    Last Post: 2nd March 2011, 06:46
  2. undefined reference
    By jayreddy in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2009, 13:45
  3. Undefined reference to crt
    By derektaprell in forum Installation and Deployment
    Replies: 0
    Last Post: 20th October 2009, 08:34
  4. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 12:14
  5. Undefined reference
    By Salazaar in forum Newbie
    Replies: 12
    Last Post: 23rd May 2007, 10:21

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.