David, thank you very much indeed, that would be extremely helpful!
On Thursday, August 6, 2015 at 3:05:27 PM UTC+1, davidcb wrote: > > At home I have a very simple program I wrote for the Beagleboard that does > what you are trying to do. I think it should compile for the BBB fairly > easily. When I get home later this evening I can find it and send it to you. > > > > On Thursday, August 6, 2015 8:18 AM, John London < > [email protected] <javascript:>> wrote: > > > > I'm trying to get a simple example (Hello Triangle) working with BBB > running Debian. I do NOT want to run the example under X11 - I want to run > it from the command line. I do not want to use GLUT; I think this means it > uses the framebuffer. Is this possible and does anyone have an example of > how to do this please? > > > I have been trying to use the example below, taken directly from the > Examples directory of the PowerVR SDK. When I run the compiled program, I > get an error: > > libEGL warning: DRI2: xcb_connect failed > libEGL warning: DRI2: xcb_connect failed > Failed to initialise the EGLDisplay > > > Is the code trying to make a connection to X11 perhaps? > > I am using the Makefile and code below. > > > # > # File Makefile > # Title Makes the demo > # Author PowerVR > # > # Copyright Copyright (C) by Imagination Technologies Limited. > # > > > .PHONY: clean > > > SDKDIR = $(shell cd ../../../../../.. && pwd) > VPATH = ../.. > > > CROSS_COMPILE ?= arm-linux-gnueabihf- > > > ifdef TOOLCHAIN > PLAT_CC = $(TOOLCHAIN)/bin/$(CROSS_COMPILE)gcc > PLAT_CPP = $(TOOLCHAIN)/bin/$(CROSS_COMPILE)g++ > PLAT_AR = $(TOOLCHAIN)/bin/$(CROSS_COMPILE)ar > else > PLAT_CC = $(CROSS_COMPILE)gcc > PLAT_CPP = $(CROSS_COMPILE)g++ > PLAT_AR = $(CROSS_COMPILE)ar > endif > > > ifeq "$(X11BUILD)" "1" > ifndef X11ROOT > $(error When building an X11 BUILD you must set X11ROOT to point at the > location where your X11 headers and libs can be found.) > endif > ifeq "$(EWSBUILD)" "1" > $(error Cannot have both X11BUILD and EWSBUILD enabled at the same time) > endif > WS_LIBS = -L$(X11ROOT)/lib -lX11 -lXau -ldl > WS_RPATH = $(X11ROOT)/lib > WS_INC = $(X11ROOT)/include > WS = X11 > else > ifeq "$(EWSBUILD)" "1" > PLAT_CFLAGS += -DEWS > WS_LIBS = -lews > WS_INC = > WS=EWS > else > ifeq "$(DRMBUILD)" "1" > ifndef DRMROOT > $(error When building a DRM BUILD you must set DRMROOT to point at the > location where your DRM headers and libs can be found.) > endif > WS_LIBS = -L$(DRMROOT)/lib -ldrm -lgbm -ludev -ldl -Wl,--rpath-link,$( > DRMROOT)/lib > WS_INC = $(DRMROOT)/include $(DRMROOT)/include/libdrm $(DRMROOT)/include/ > gbm > WS=DRM > else > WS_LIBS = > WS_INC = > WS = NullWS > endif > endif > endif > > > LIBDIR ?= $(SDKDIR)/Builds/Linux/armv7hf/Lib > LIBDIR_FLAGS = -L$(LIBDIR) -Wl,--rpath-link,$(LIBDIR):$(WS_RPATH) > > > ifdef Debug > DEBUG_RELEASE = Debug > PLAT_CFLAGS += -g > else > DEBUG_RELEASE = Release > PLAT_CFLAGS += -O2 > endif > > > PLAT_CFLAGS += -Wall -march=armv7 -mfloat-abi=hard > PLAT_INC = $(SDKDIR)/Builds/Include $(WS_INC) > > > PLAT_OBJPATH = $(DEBUG_RELEASE)$(WS) > PLAT_LINK = $(LIBDIR_FLAGS) -lEGL -lGLESv2 $(WS_LIBS) -L$(TOOLCHAIN)/lib - > march=armv7 -mfloat-abi=hard > > > ifeq "$(WS)" "X11" > SRCNAME = OGLES2HelloAPI_LinuxX11 > else > ifeq "$(WS)" "EWS" > SRCNAME = OGLES2HelloAPI_EWS > else > ifeq "$(WS)" "DRM" > SRCNAME = OGLES2HelloAPI_LinuxDRM > else > SRCNAME = OGLES2HelloAPI_NullWS > endif > endif > endif > > > OUTNAME = OGLES2HelloAPI > > > OBJECTS = $(PLAT_OBJPATH)/$(SRCNAME).o > > > COMMON_INCLUDES = $(addprefix - > ... -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
