tce-load -i compiletc mesa-dev libEGL-dev libGLES-dev https://downloads.sourceforge.net/glew/glew-2.1.0.tgz cd glew-2.1.0 sed -i -e '/glew.lib.static:/d' -e '/0644 .*STATIC/d' -e 's/glew.lib.static//' Makefile edit Makefile GLEW_PREFIX ?= /usr/local GLEW_DEST ?= /usr/local edit config/Makefile.linux ifeq (${ARCH64},true) LDFLAGS.EXTRA = -L/usr/local/lib -L/usr/lib LIBDIR = $(GLEW_DEST)/lib else LDFLAGS.EXTRA = -L/usr/local/lib -L/usr/lib LIBDIR = $(GLEW_DEST)/lib POPT = make CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" [1m 2.86s] sudo make install.all