Forums - Unable to Compile SDK 3.9 samples - WINAPI_FAMILY

2 posts / 0 new
Last post
Unable to Compile SDK 3.9 samples - WINAPI_FAMILY
Alessandro
Profile picture
Join Date: 6 May 11
Posts: 17
Posted: Sat, 2015-06-20 12:18

Hi,

I'm unable to compile samples from SDK 3.9 using VS 2015 and Win 7 64.

The help files are quite outdated, with references for SDK 3.0, so they are useless to guide on this issue.

Compile errors starts with following code (FrmApplication.h)

#ifndef WINAPI_FAMILY
    #include <EGL/egl.h>
#endif
(...)
#ifndef WINAPI_FAMILY
    FRM_ES_VER   m_OpenGLESVersion;
    EGLDisplay  m_eglDisplay;
    EGLConfig   m_eglConfig;
    EGLContext  m_eglContextGL;
    EGLContext  m_eglContextVG;
    EGLSurface  m_eglSurface;
#else
    Microsoft::WRL::ComPtr<ID3D11RenderTargetView> m_windowRenderTargetView;
    Microsoft::WRL::ComPtr<ID3D11DepthStencilView> m_windowDepthStencilView;
#endif

 

WINAPI_FAMILY is defined, so it tries to compile the second block and fails.

Error        IntelliSense: name followed by '::' must be a class or namespace name    CreateWindow    c:\Projetos\Android\SDKs\AdrenoSDK3.9\Development\Samples\Framework\FrmApplication.h    79

Also, there are errors at Win32\FrmApplication_Platform.cpp:

code:

class CFrmAppContainer
{
public:
    NativeWindowType  m_hWindow; // <- error   
    NativeDisplayType m_hDisplay; // <-error
    CFrmApplication*  m_pApplication;

    BOOL CreateNativeWindow( NativeWindowType* pWindow, NativeDisplayType* pDisplay ); // <- error
    VOID CopyFramebufferToClipboard();

As WINAPI_FAMILY is defined AND EGL\egl.h is NOT included, NativeWindowType and NativeDisplayType are undefined.

AFAIK, it is show stopper bug.

Is SDK correct when it uses the undefined WINAPI_FAMILY ? This way SDK will ignore all GLES stuff from SDK's Framework API.

thanks in advance.

 

 

 

 

 

 

 

then
  • Up0
  • Down0
Alessandro
Profile picture
Join Date: 6 May 11
Posts: 17
Posted: Sat, 2015-06-20 12:36

To run some samples, I have to add the following code at FrmApplication.h

 


#ifdef WINAPI_FAMILY
#undef WINAPI_FAMILY
#endif

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.