Skip to main content
New Participant
June 15, 2018

Conflict between GLEW and CAPI_GLE_GL

I'm new to Oculus development, and I'm trying to incorporate the hand models from the Avatar SDK into the OculusRoomTiny demo. I am using version 1.24.0 of the Oculus SDK and 1.26.0 of the Avatar SDK, in native C++. In the process of doing this, I ran into a conflict. OculusTinyRoom relies heavily on CAPI_GLE.h (included in its header file Win32_GLAppUtil.h) and other associated LibOVR files, whereas the Mirror sample from the Avatar SDK relies on GLEW to expose a lot of OpenGL functionality. However, the two conflict with each other over the inclusion of gl.h; if I try to #include Win32_GLAppUtil.h before glew.h, GLEW complains that gl.h must be included after it. If I try to #include glew.h before Win32_GLAppUtil.h, then CAPI_GLE_GL complains that gl.h must be included after it. Is there some way to work around this incompatibility issue, or a way to conveniently use one or the other instead of both?

    2 replies

    mousebear
    Honored Contributor
    June 20, 2018
    @zhoui

    Thanks for reaching out! I've passed this question along to our internal engineering team. I'll update you here once I get a response.
    If you need immediate help or want additional support/context on an issue you are having with our platform or integrations: 1. Gather any and all logs , screenshots, and version numbers of relevant software (Oculus SDK, engine, etc.) 2. Please submit a ticket here through the "Contact Us" link (include what you've gathered in step 1). 3. Tag me @mouse_bear once you have done so!
    New Participant
    October 24, 2018
    @zhoui 
    @NinjaGaijin

    Hi,

    is there a solution to this problem/conflict ? 

    Thank you for your time