Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Please document how exactly a latest RK3399 Ubuntu rootfs is built

92

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
92
Posted at 12/14/2017 16:02:40      1#
About GPU (OpenGL ES)
You should link libmali.so\libEGL.so to libmali-rk-midgard-4th-r13p0.so
Reply

Use props Report

92

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
92
Posted at 12/18/2017 09:06:45      2#
Last edited by Rudis In 12/18/2017 09:08 Editor

You can find the libmali for X11 on https://github.com/rockchip-linux/libmali

The marching version is libmali-midgard-t86x-r13p0.so https://github.com/rockchip-linu ... b/aarch64-linux-gnu

I had tested it before.
Reply

Use props Report

92

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
92
Posted at 12/18/2017 09:23:32      3#
Last edited by Rudis In 12/18/2017 09:25 Editor

You can try it.

You can modify /usr/include/EGL/eglplatform.h


  1.     struct gbm_device;
  2.     struct gbm_surface;

  3.     typedef struct gbm_device * EGLNativeDisplayType;
  4.     typedef struct gbm_surface * EGLNativeWindowType;
  5.     typedef void * EGLNativePixmapType;

  6.     /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
  7.     typedef EGLNativeDisplayType NativeDisplayType;
  8.     typedef EGLNativePixmapType  NativePixmapType;
  9.     typedef EGLNativeWindowType NativeWindowType;
Copy the code


to

  1.     struct gbm_device;
  2.     struct gbm_surface;

  3.     #if defined(__GBM__)
  4.     typedef struct gbm_device * EGLNativeDisplayType;
  5.     typedef struct gbm_surface * EGLNativeWindowType;
  6.     typedef void * EGLNativePixmapType;
  7.     #elif defined(__unix__)
  8.     #include <X11/Xlib.h>
  9.     #include <X11/Xutil.h>
  10.     typedef Display *EGLNativeDisplayType;
  11.     typedef Pixmap EGLNativePixmapType;
  12.     typedef Window EGLNativeWindowType;
  13.     #endif

  14.     typedef EGLNativeWindowType NativeWindowType;
  15.     typedef EGLNativePixmapType NativePixmapType;
  16.     typedef EGLNativeDisplayType NativeDisplayType;
Copy the code

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list