Build apitrace failed for Android X86_64

Rob Clark robdclark at gmail.com
Thu Mar 16 10:48:09 UTC 2017


+apitrace list.. I've never really built apitrace on android, but others have

On Wed, Mar 15, 2017 at 11:21 PM, Wang, Gary C <gary.c.wang at intel.com> wrote:
> Hi Rob,
>
>
>
> I use the latest Android-NDK to build apitrace, but suffered error. Would
> you mind to give some advice on it? Thanks!
>
>
>
>>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/egl.h:288:1: note: in
> expansion of macro 'EGLAPI'
>
> EGLAPI EGLBoolean EGLAPIENTRY eglDestroySync (EGLDisplay dpy, EGLSync sync);
>
> ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/KHR/khrplatform.h:106:67:
> error: '__NDK_FPABI__' does not name a type
>
> #   define KHRONOS_APICALL __attribute__((visibility("default")))
> __NDK_FPABI__
>
>                                                                    ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/eglplatform.h:50:16:
> note: in expansion of macro 'KHRONOS_APICALL'
>
> #define EGLAPI KHRONOS_APICALL
>
>                 ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/egl.h:289:1: note: in
> expansion of macro 'EGLAPI'
>
> EGLAPI EGLint EGLAPIENTRY eglClientWaitSync (EGLDisplay dpy, EGLSync sync,
> EGLint flags, EGLTime timeout);
>
> ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/KHR/khrplatform.h:106:67:
> error: '__NDK_FPABI__' does not name a type
>
> #   define KHRONOS_APICALL __attribute__((visibility("default")))
> __NDK_FPABI__
>
>                                                                    ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/eglplatform.h:50:16:
> note: in expansion of macro 'KHRONOS_APICALL'
>
> #define EGLAPI KHRONOS_APICALL
>
>                 ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/egl.h:290:1: note: in
> expansion of macro 'EGLAPI'
>
> EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttrib (EGLDisplay dpy, EGLSync
> sync, EGLint attribute, EGLAttrib *value);
>
> ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/KHR/khrplatform.h:106:67:
> error: '__NDK_FPABI__' does not name a type
>
> #   define KHRONOS_APICALL __attribute__((visibility("default")))
> __NDK_FPABI__
>
>                                                                    ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/eglplatform.h:50:16:
> note: in expansion of macro 'KHRONOS_APICALL'
>
> #define EGLAPI KHRONOS_APICALL
>
>                 ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/egl.h:291:1: note: in
> expansion of macro 'EGLAPI'
>
> EGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx,
> EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
>
> ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/KHR/khrplatform.h:106:67:
> error: '__NDK_FPABI__' does not name a type
>
> #   define KHRONOS_APICALL __attribute__((visibility("default")))
> __NDK_FPABI__
>
>                                                                    ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/eglplatform.h:50:16:
> note: in expansion of macro 'KHRONOS_APICALL'
>
> #define EGLAPI KHRONOS_APICALL
>
>                 ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/egl.h:292:1: note: in
> expansion of macro 'EGLAPI'
>
> EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImage (EGLDisplay dpy, EGLImage
> image);
>
> ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/KHR/khrplatform.h:106:67:
> error: '__NDK_FPABI__' does not name a type
>
> #   define KHRONOS_APICALL __attribute__((visibility("default")))
> __NDK_FPABI__
>
>                                                                    ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/eglplatform.h:50:16:
> note: in expansion of macro 'KHRONOS_APICALL'
>
> #define EGLAPI KHRONOS_APICALL
>
>                 ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/egl.h:293:1: note: in
> expansion of macro 'EGLAPI'
>
> EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplay (EGLenum platform, void
> *native_display, const EGLAttrib *attrib_list);
>
> ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/KHR/khrplatform.h:106:67:
> error: '__NDK_FPABI__' does not name a type
>
> #   define KHRONOS_APICALL __attribute__((visibility("default")))
> __NDK_FPABI__
>
>                                                                    ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/eglplatform.h:50:16:
> note: in expansion of macro 'KHRONOS_APICALL'
>
> #define EGLAPI KHRONOS_APICALL
>
>                 ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/egl.h:294:1: note: in
> expansion of macro 'EGLAPI'
>
> EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface (EGLDisplay
> dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
>
> ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/KHR/khrplatform.h:106:67:
> error: '__NDK_FPABI__' does not name a type
>
> #   define KHRONOS_APICALL __attribute__((visibility("default")))
> __NDK_FPABI__
>
>                                                                    ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/eglplatform.h:50:16:
> note: in expansion of macro 'KHRONOS_APICALL'
>
> #define EGLAPI KHRONOS_APICALL
>
>                 ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/egl.h:295:1: note: in
> expansion of macro 'EGLAPI'
>
> EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface (EGLDisplay
> dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
>
> ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/KHR/khrplatform.h:106:67:
> error: '__NDK_FPABI__' does not name a type
>
> #   define KHRONOS_APICALL __attribute__((visibility("default")))
> __NDK_FPABI__
>
>                                                                    ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/eglplatform.h:50:16:
> note: in expansion of macro 'KHRONOS_APICALL'
>
> #define EGLAPI KHRONOS_APICALL
>
>                 ^
>
> /home/garywang/3t_work/apitrace/thirdparty/khronos/EGL/egl.h:296:1: note: in
> expansion of macro 'EGLAPI'
>
> EGLAPI EGLBoolean EGLAPIENTRY eglWaitSync (EGLDisplay dpy, EGLSync sync,
> EGLint flags);
>
> ^
>
> make[2]: *** [dispatch/CMakeFiles/glproc.dir/glproc.cpp.o] Error 1
>
> make[2]: Leaving directory `/media/garywang/MyHD3T/mywork/apitrace/build'
>
> make[1]: *** [dispatch/CMakeFiles/glproc.dir/all] Error 2
>
> make[1]: Leaving directory `/media/garywang/MyHD3T/mywork/apitrace/build'
>
> make: *** [all] Error 2
>
> make: Leaving directory `/media/garywang/MyHD3T/mywork/apitrace/build'
>
>>
>
>
> Gary


More information about the apitrace mailing list