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
To run some samples, I have to add the following code at FrmApplication.h