From c62fb64c66c52f673cf0889a3273ad486c18f717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adam=20Garnier?= Date: Sun, 18 Feb 2018 07:23:49 +0100 Subject: [PATCH] fixing the /usr/bin/ld: cannot find -lGLESv2 error After an error while trying to compile npm install node-opengv-canvas & digging an answer from https://raspberrypi.stackexchange.com/questions/77619/where-is-legl-lglesv2, I guess this may solve the troubles ;p Also, do you support dispmanX ? (.it 'd be really cool to have a transparent background canvas to be able to see stuff on layers below it ;p ) Thanks for opening & openvg-canva btw :) Keep up the good work ++ Some of the error logs: CXX(target) Release/obj.target/init-egl/src/init-egl.o SOLINK_MODULE(target) Release/obj.target/init-egl.node /usr/bin/ld: cannot find -lGLESv2 collect2: error: ld returned 1 exit status --- binding.gyp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binding.gyp b/binding.gyp index b09cc41..34b5e63 100644 --- a/binding.gyp +++ b/binding.gyp @@ -8,7 +8,8 @@ ], "ldflags": [ "-L/opt/vc/lib", - "-lGLESv2" + "-lbrcmEGL", + "-lbrcmGLESv2" ], "cflags": [ "-DENABLE_GDB_JIT_INTERFACE",