How to use GLFW / OpenGL ES on Armbian
#1
Hi folks,

I am trying to write a small application that renders stuff using OpenGL ES on Armbian. I enabled 3D video acceleration via the RK3328 Media Script. Now I'm trying to create a simple window with an OpenGL context on it, using GLFW:


Code:
if err := glfw.Init(); err != nil {
 panic(err)
}
defer glfw.Terminate()

glfw.WindowHint(glfw.ClientAPI, glfw.OpenGLESAPI)

window, err := glfw.CreateWindow(640, 480, "Testing", nil, nil)

(This is Go, but I think the programming language is not really relevant.)

I compile and link that using -lGLESv2 and GLFW's dependencies, which produces a binary. However, when I execute that, I get:

Code:
libGL error: unable to load driver: rockchip_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: rockchip
2019/04/14 16:46:56 Link error in program Program(0): ""

So for some reason, my executable uses libGL instead of libGLESv2, and that doesn't work, since the rockchip only supports OpenGL ES. I have no idea why that happens. ldd ensures me that my binary is not linked against libGL.

How can I fix that? Is there perhaps a better Linux distribution for development? I tested Debian before, but that wasn't even able to install X11 and was pretty bricked after I tried.
  Reply


Messages In This Thread
How to use GLFW / OpenGL ES on Armbian - by flyx86 - 04-17-2019, 11:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  RXDP from Win10 to Armbian on Rock64 Transportsicherung 0 637 05-27-2023, 06:11 AM
Last Post: Transportsicherung
  USB3.0 Issues at DietPi(Armbian) #22.02.1 t4_4t 3 2,335 08-15-2022, 06:58 PM
Last Post: TRS-80
  Armbian for Rock64 pineadmin 57 71,955 04-01-2022, 03:16 PM
Last Post: TRS-80
  Armbian 22.02 Release Announcement TRS-80 0 1,011 02-28-2022, 05:06 PM
Last Post: TRS-80
  Armbian/Ubuntu for Rockbox Wizzard 5 4,296 05-18-2021, 08:18 AM
Last Post: Wizzard
  Armbian 5.4.43: Network is unreachable; Red LED blinking; RNG failure? aves 1 2,921 07-27-2020, 02:04 PM
Last Post: aves
  Unable to boot armbian fchazal 2 3,844 05-19-2020, 06:43 PM
Last Post: Rocklobster
  armbian / bionic - hdmi to vga not functioning on newer5.4 kapqa 1 3,022 03-31-2020, 07:19 PM
Last Post: tllim
  Not able to boot Armbian 5.75@Rock64 4GB wundidajah 1 2,564 03-29-2019, 05:30 AM
Last Post: dkryder
Question No USB Power (ROCK64+ARMBIAN 5.7) takezo 2 4,085 03-15-2019, 07:46 AM
Last Post: takezo

Forum Jump:


Users browsing this thread: 1 Guest(s)