* [WIP] Recipe for Vivante GPU Sdk
@ 2013-04-30 10:14 Diego
2013-04-30 10:25 ` Diego
0 siblings, 1 reply; 5+ messages in thread
From: Diego @ 2013-04-30 10:14 UTC (permalink / raw)
To: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 2272 bytes --]
Hello everybody,
here I am with this alpha - rough - bad - wrong - not working - etc recipe for
Vivante GPU Sdk.
The current status is:
- waiting for Diane for tar.gz hosting, for the moment you should put it in
the files folder;
- waiting for Diane for feedback on the license, for the moment it's just
"CLOSED", which is obviously wrong, but it's just for testing;
- builds only the GLES 1.1 with X11 Samples;
- doesn't install anything;
- actually fails to build.
Aside from the known issue mentioned I'm seeking for initial guidance on what
might be wrong or badly written in the recipe and on help with the following
issues:
1) build is failing;
2) I'm not able to start a devshell.
1) Build is failing:
I've fixed some build issues, but now I'm stuck with this problem:
| make[1]: Entering directory `/opt/yocto_builder/build/tmp/work/armv7a-vfp-
neon-poky-linux-gnueabi/vivante-gpu-sdk/1.00-
r0/Samples/GLES1.1/02_VertexColors'
| CC VertexColors.o
| arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-
abi=softfp -mfpu=neon --
sysroot=/opt/yocto_builder/build/tmp/sysroots/nitrogen6x -DDEBUG -D_DEBUG -
D_GNU_SOURCE -mfloat-abi=softfp -mfpu=neon -fPIC -O3 -fno-strict-aliasing -fno-
optimize-sibling-calls -Wall -g -DLINUX -DEGL_USE_X11 -I -I../common/inc -
MMD -c VertexColors.c -o VertexColors.o
| VertexColors.c:18:23: fatal error: GLU3/glu3.h: No such file or directory
I can't understand the problem, as GLU3/glu3.h is actually in ../common/inc,
as specified in the -I option.
2) Not able to start devshell:
To debug 1) I've tried to start a devshell. I'm building on a powerful remote
server, so I don't have Konsole or xfterm, etc, I've got just tmux in a ssh
shell. When I "bitbake -c devshell" I get the following error, which seems to
be related to bitbake passing the wrong options to tmux.
http://pastebin.com/UkSkn7UV
http://pastebin.com/iZc1cCig
Anybody has this problem?
I'm attaching the draft recipe and the patch. I've put the recipe in:
sources/meta-fsl-demos/recipes-graphics/vivante-gpu-sdk
and the patch and gpu_sdk_v1.00.tar.gz in:
sources/meta-fsl-demos/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk
Thanks to anybody who might help.
Diego
[-- Attachment #2: vivante-gpu-sdk_1.00.bb --]
[-- Type: application/octet-stream, Size: 349 bytes --]
SUMMARY = "Vivante GPU SDK Samples"
DESCRIPTION = "Freescale's adaptation of Jeff Molofee demos"
LICENSE = "CLOSED"
PR = "r0"
SRC_URI = "file://gpu_sdk_v1.00.tar.gz \
file://0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch;striplevel=3"
S = "${WORKDIR}/Samples/GLES1.1"
do_compile () {
oe_runmake -f Makefile.x11
}
[-- Attachment #3: 0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch --]
[-- Type: text/x-patch, Size: 17013 bytes --]
From 005f3a6d80fc343f40a4aab611e2139c654df7ba Mon Sep 17 00:00:00 2001
From: Diego Rondini <diego.ml@zoho.com>
Date: Tue, 30 Apr 2013 10:52:25 +0200
Subject: [PATCH] Fix compilation of the GLES1.1 X11 Samples in Yocto
This commit fixes the following build problems:
- gcc 4.7 compatibility (remove unsupported "-Wl" option);
- wrong compiler binary name (caused by an overwrite of CC and AR variables)
- unknown include and library paths (caused by forcing paths when not needed)
---
Samples/GLES1.1/01_SimpleTriangle/Makefile.x11 | 9 +--------
Samples/GLES1.1/02_VertexColors/Makefile.x11 | 6 +-----
.../GLES1.1/03_VertexTransformation/Makefile.x11 | 6 +-----
.../04_ColoredVerticesInterpolation/Makefile.x11 | 6 +-----
Samples/GLES1.1/05_GeometricObjects/Makefile.x11 | 6 +-----
Samples/GLES1.1/06_Projection/Makefile.x11 | 6 +-----
Samples/GLES1.1/07_BasicTexturing/Makefile.x11 | 6 +-----
Samples/GLES1.1/08_Multitexturing/Makefile.x11 | 6 +-----
Samples/GLES1.1/09_Alphablending/Makefile.x11 | 6 +-----
Samples/GLES1.1/10_FilteringLights/Makefile.x11 | 6 +-----
Samples/GLES1.1/11_LightingFog/Makefile.x11 | 6 +-----
Samples/GLES1.1/12_Stencil/Makefile.x11 | 6 +-----
Samples/GLES1.1/13_3DFonts/Makefile.x11 | 6 +-----
.../14_ParticlesSpritesAnimation/Makefile.x11 | 6 +-----
.../GLES1.1/15_ParticleAccelerator/Makefile.x11 | 6 +-----
.../GLES1.1/16_VertexBufferObjects/Makefile.x11 | 6 +-----
Samples/GLES1.1/17_Beizer/Makefile.x11 | 6 +-----
17 files changed, 17 insertions(+), 88 deletions(-)
diff --git a/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11 b/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11
index 1b86dbf..54c09ab 100755
--- a/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11
+++ b/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11
@@ -2,12 +2,6 @@ APPNAME := 01_SimpleTriangle
DESTDIR ?= .
-# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -21,7 +15,6 @@ CFLAGS_TUT += \
-DEGL_USE_X11 \
CFLAGS_TUT += \
- -I$(TARGET_PATH_INCLUDE) \
-I$(COMMON_DIR)/inc \
@@ -30,7 +23,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
$(COMMON_DIR)/src/glu3.o
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/02_VertexColors/Makefile.x11 b/Samples/GLES1.1/02_VertexColors/Makefile.x11
index 6d9d063..b0235f5 100755
--- a/Samples/GLES1.1/02_VertexColors/Makefile.x11
+++ b/Samples/GLES1.1/02_VertexColors/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -30,7 +26,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
$(COMMON_DIR)/src/glu3.o
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/03_VertexTransformation/Makefile.x11 b/Samples/GLES1.1/03_VertexTransformation/Makefile.x11
index b5574e0..27595be 100755
--- a/Samples/GLES1.1/03_VertexTransformation/Makefile.x11
+++ b/Samples/GLES1.1/03_VertexTransformation/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -30,7 +26,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
$(COMMON_DIR)/src/glu3.o
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11 b/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11
index c9346f2..22d1ab9 100755
--- a/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11
+++ b/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -29,7 +25,7 @@ OBJECTS_TUT += \
ColoredVerticesInterpolation.o \
$(COMMON_DIR)/src/fsl_egl.o\
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/05_GeometricObjects/Makefile.x11 b/Samples/GLES1.1/05_GeometricObjects/Makefile.x11
index a2cec68..0660740 100755
--- a/Samples/GLES1.1/05_GeometricObjects/Makefile.x11
+++ b/Samples/GLES1.1/05_GeometricObjects/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -30,7 +26,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
$(COMMON_DIR)/src/glu3.o
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/06_Projection/Makefile.x11 b/Samples/GLES1.1/06_Projection/Makefile.x11
index 84b674f..e859319 100755
--- a/Samples/GLES1.1/06_Projection/Makefile.x11
+++ b/Samples/GLES1.1/06_Projection/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -30,7 +26,7 @@ OBJECTS_TUT += \
render.o \
$(COMMON_DIR)/src/fsl_egl.o\
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/07_BasicTexturing/Makefile.x11 b/Samples/GLES1.1/07_BasicTexturing/Makefile.x11
index a22a236..033c7ec 100755
--- a/Samples/GLES1.1/07_BasicTexturing/Makefile.x11
+++ b/Samples/GLES1.1/07_BasicTexturing/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR = .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -33,7 +29,7 @@ OBJECTS_TUT += \
ASSETS = BasicTexturing.bmp
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/08_Multitexturing/Makefile.x11 b/Samples/GLES1.1/08_Multitexturing/Makefile.x11
index f8d244f..99226f8 100755
--- a/Samples/GLES1.1/08_Multitexturing/Makefile.x11
+++ b/Samples/GLES1.1/08_Multitexturing/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -32,7 +28,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
$(COMMON_DIR)/src/fslutil.o\
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/09_Alphablending/Makefile.x11 b/Samples/GLES1.1/09_Alphablending/Makefile.x11
index aa9ab43..80d074d 100755
--- a/Samples/GLES1.1/09_Alphablending/Makefile.x11
+++ b/Samples/GLES1.1/09_Alphablending/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR = .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -33,7 +29,7 @@ OBJECTS_TUT += \
ASSETS = Alphablending.bmp
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/10_FilteringLights/Makefile.x11 b/Samples/GLES1.1/10_FilteringLights/Makefile.x11
index d5f17c7..511e333 100755
--- a/Samples/GLES1.1/10_FilteringLights/Makefile.x11
+++ b/Samples/GLES1.1/10_FilteringLights/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR = .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -33,7 +29,7 @@ OBJECTS_TUT += \
ASSETS = FilteringLights.bmp
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/11_LightingFog/Makefile.x11 b/Samples/GLES1.1/11_LightingFog/Makefile.x11
index a284335..6289ba4 100755
--- a/Samples/GLES1.1/11_LightingFog/Makefile.x11
+++ b/Samples/GLES1.1/11_LightingFog/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -32,7 +28,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/12_Stencil/Makefile.x11 b/Samples/GLES1.1/12_Stencil/Makefile.x11
index 7d86842..15bec75 100755
--- a/Samples/GLES1.1/12_Stencil/Makefile.x11
+++ b/Samples/GLES1.1/12_Stencil/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR = .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -30,7 +26,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
$(COMMON_DIR)/src/glu3.o
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/13_3DFonts/Makefile.x11 b/Samples/GLES1.1/13_3DFonts/Makefile.x11
index 7075616..3105e9c 100755
--- a/Samples/GLES1.1/13_3DFonts/Makefile.x11
+++ b/Samples/GLES1.1/13_3DFonts/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -35,7 +31,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
$(COMMON_DIR)/src/fslutil.o\
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11 b/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11
index ccf7a75..8f5c90d 100755
--- a/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11
+++ b/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR = .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -33,7 +29,7 @@ OBJECTS_TUT += \
ASSETS = ParticlesSpritesAnimation.bmp
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11 b/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11
index 67bae20..a7ca953 100755
--- a/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11
+++ b/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -37,7 +33,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
$(COMMON_DIR)/src/fslutil.o\
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11 b/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11
index 418f37d..01c444d 100755
--- a/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11
+++ b/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR ?= .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -36,7 +32,7 @@ OBJECTS_TUT += \
$(COMMON_DIR)/src/fsl_egl.o\
$(COMMON_DIR)/src/fslutil.o\
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
diff --git a/Samples/GLES1.1/17_Beizer/Makefile.x11 b/Samples/GLES1.1/17_Beizer/Makefile.x11
index 7fba8ce..b9dbdd2 100755
--- a/Samples/GLES1.1/17_Beizer/Makefile.x11
+++ b/Samples/GLES1.1/17_Beizer/Makefile.x11
@@ -3,11 +3,7 @@ DESTDIR = .
# Make command to use for dependencies
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
COMMON_DIR=../common
BIN_TUT = $(DESTDIR)/$(APPNAME)
@@ -33,7 +29,7 @@ OBJECTS_TUT += \
ASSETS = Beizer.bmp
-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
+DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
$(BIN_TUT) : $(OBJECTS_TUT)
@echo " LD " $@
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [WIP] Recipe for Vivante GPU Sdk 2013-04-30 10:14 [WIP] Recipe for Vivante GPU Sdk Diego @ 2013-04-30 10:25 ` Diego 2013-04-30 11:09 ` Otavio Salvador 2013-04-30 11:33 ` Daiane Angolini 0 siblings, 2 replies; 5+ messages in thread From: Diego @ 2013-04-30 10:25 UTC (permalink / raw) To: meta-freescale In data martedì 30 aprile 2013 12:14:44, hai scritto: > Hello everybody, > Replying to myself. Writing the previous mail popped up some ideas on my head. > 1) Build is failing: > > I've fixed some build issues, but now I'm stuck with this problem: > | make[1]: Entering directory `/opt/yocto_builder/build/tmp/work/armv7a-vfp- > > neon-poky-linux-gnueabi/vivante-gpu-sdk/1.00- > r0/Samples/GLES1.1/02_VertexColors' > > | CC VertexColors.o > | > | arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat- > > abi=softfp -mfpu=neon -- > sysroot=/opt/yocto_builder/build/tmp/sysroots/nitrogen6x -DDEBUG -D_DEBUG - > D_GNU_SOURCE -mfloat-abi=softfp -mfpu=neon -fPIC -O3 -fno-strict-aliasing > -fno- optimize-sibling-calls -Wall -g -DLINUX -DEGL_USE_X11 -I > -I../common/inc - MMD -c VertexColors.c -o VertexColors.o > > | VertexColors.c:18:23: fatal error: GLU3/glu3.h: No such file or directory > > I can't understand the problem, as GLU3/glu3.h is actually in ../common/inc, > as specified in the -I option. Looking more closely at the string gcc string there's a leftover "-I" with no path which actually breaks compilation. I'll adjust the Makefiles patch. > > 2) Not able to start devshell: > To debug 1) I've tried to start a devshell. I'm building on a powerful > remote server, so I don't have Konsole or xfterm, etc, I've got just tmux > in a ssh shell. When I "bitbake -c devshell" I get the following error, > which seems to be related to bitbake passing the wrong options to tmux. > http://pastebin.com/UkSkn7UV > http://pastebin.com/iZc1cCig > Anybody has this problem? > Uninstalling tmux from the system forces bitbake to use screen instead, which works. I'll report the problem to bitbake developers, but this is a workaround. Diego ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [WIP] Recipe for Vivante GPU Sdk 2013-04-30 10:25 ` Diego @ 2013-04-30 11:09 ` Otavio Salvador 2013-04-30 11:33 ` Daiane Angolini 1 sibling, 0 replies; 5+ messages in thread From: Otavio Salvador @ 2013-04-30 11:09 UTC (permalink / raw) To: Diego; +Cc: meta-freescale@yoctoproject.org On Tue, Apr 30, 2013 at 7:25 AM, Diego <diego.ml@zoho.com> wrote: > In data martedì 30 aprile 2013 12:14:44, hai scritto: >> Hello everybody, >> > > Replying to myself. Writing the previous mail popped up some ideas on my head. Oh, this one was easy ;-) >> 1) Build is failing: >> >> I've fixed some build issues, but now I'm stuck with this problem: >> | make[1]: Entering directory `/opt/yocto_builder/build/tmp/work/armv7a-vfp- >> >> neon-poky-linux-gnueabi/vivante-gpu-sdk/1.00- >> r0/Samples/GLES1.1/02_VertexColors' >> >> | CC VertexColors.o >> | >> | arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat- >> >> abi=softfp -mfpu=neon -- >> sysroot=/opt/yocto_builder/build/tmp/sysroots/nitrogen6x -DDEBUG -D_DEBUG - >> D_GNU_SOURCE -mfloat-abi=softfp -mfpu=neon -fPIC -O3 -fno-strict-aliasing >> -fno- optimize-sibling-calls -Wall -g -DLINUX -DEGL_USE_X11 -I >> -I../common/inc - MMD -c VertexColors.c -o VertexColors.o >> >> | VertexColors.c:18:23: fatal error: GLU3/glu3.h: No such file or directory >> >> I can't understand the problem, as GLU3/glu3.h is actually in ../common/inc, >> as specified in the -I option. > > Looking more closely at the string gcc string there's a leftover "-I" with no > path which actually breaks compilation. I'll adjust the Makefiles patch. Yes indeed. Please first fix the Makefile.\ >> >> 2) Not able to start devshell: >> To debug 1) I've tried to start a devshell. I'm building on a powerful >> remote server, so I don't have Konsole or xfterm, etc, I've got just tmux >> in a ssh shell. When I "bitbake -c devshell" I get the following error, >> which seems to be related to bitbake passing the wrong options to tmux. >> http://pastebin.com/UkSkn7UV >> http://pastebin.com/iZc1cCig >> Anybody has this problem? >> > > Uninstalling tmux from the system forces bitbake to use screen instead, which > works. I'll report the problem to bitbake developers, but this is a > workaround. +1 Regards, -- Otavio Salvador O.S. Systems E-mail: otavio@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [WIP] Recipe for Vivante GPU Sdk 2013-04-30 10:25 ` Diego 2013-04-30 11:09 ` Otavio Salvador @ 2013-04-30 11:33 ` Daiane Angolini 2013-04-30 13:27 ` Diego 1 sibling, 1 reply; 5+ messages in thread From: Daiane Angolini @ 2013-04-30 11:33 UTC (permalink / raw) To: Diego; +Cc: meta-freescale On 04/30/2013 07:25 AM, Diego wrote: > In data martedì 30 aprile 2013 12:14:44, hai scritto: >> Hello everybody, >> > > Replying to myself. Writing the previous mail popped up some ideas on my head. <3 > >> 1) Build is failing: >> >> I've fixed some build issues, but now I'm stuck with this problem: >> | make[1]: Entering directory `/opt/yocto_builder/build/tmp/work/armv7a-vfp- >> >> neon-poky-linux-gnueabi/vivante-gpu-sdk/1.00- >> r0/Samples/GLES1.1/02_VertexColors' >> >> | CC VertexColors.o >> | >> | arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat- >> >> abi=softfp -mfpu=neon -- >> sysroot=/opt/yocto_builder/build/tmp/sysroots/nitrogen6x -DDEBUG -D_DEBUG - >> D_GNU_SOURCE -mfloat-abi=softfp -mfpu=neon -fPIC -O3 -fno-strict-aliasing >> -fno- optimize-sibling-calls -Wall -g -DLINUX -DEGL_USE_X11 -I >> -I../common/inc - MMD -c VertexColors.c -o VertexColors.o >> >> | VertexColors.c:18:23: fatal error: GLU3/glu3.h: No such file or directory >> >> I can't understand the problem, as GLU3/glu3.h is actually in ../common/inc, >> as specified in the -I option. > > Looking more closely at the string gcc string there's a leftover "-I" with no > path which actually breaks compilation. I'll adjust the Makefiles patch. Did I understand it right? Inside gpu-sdk there are 3 "samples". Each one has it's own Makefile, and there is no "commom" Makefile. Are you thinking about create one recipe for the "gpu-sdk" package and make it provides 3 "packages"? Or, are you thinking about create one recipe for each "sample"? *instalation I took a look on one Makefile, and if you do not define DESTDIR it will assume a default value for it. So, you must define DESTDIR someway. > >> >> 2) Not able to start devshell: >> To debug 1) I've tried to start a devshell. I'm building on a powerful >> remote server, so I don't have Konsole or xfterm, etc, I've got just tmux >> in a ssh shell. When I "bitbake -c devshell" I get the following error, >> which seems to be related to bitbake passing the wrong options to tmux. >> http://pastebin.com/UkSkn7UV >> http://pastebin.com/iZc1cCig >> Anybody has this problem? >> > > Uninstalling tmux from the system forces bitbake to use screen instead, which > works. I'll report the problem to bitbake developers, but this is a > workaround. <3 (i love when people find bugs) --- Daiane ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [WIP] Recipe for Vivante GPU Sdk 2013-04-30 11:33 ` Daiane Angolini @ 2013-04-30 13:27 ` Diego 0 siblings, 0 replies; 5+ messages in thread From: Diego @ 2013-04-30 13:27 UTC (permalink / raw) To: Daiane Angolini; +Cc: meta-freescale [-- Attachment #1: Type: text/plain, Size: 1705 bytes --] In data martedì 30 aprile 2013 08:33:06, Daiane Angolini ha scritto: > On 04/30/2013 07:25 AM, Diego wrote: > > Looking more closely at the string gcc string there's a leftover "-I" with > > no path which actually breaks compilation. I'll adjust the Makefiles > > patch. Ok, fixed that and another build issue (strangely enough Samples/GLES1.1/Makefile.x11 tries to build 2 examples that are not there in the package). Now the recipes compiles but doesn't install anything. Attached are the updated recipe and patches (BTW, is there a suggested way to propose a new recipe and its revisions?). > Did I understand it right? Inside gpu-sdk there are 3 "samples". Each > one has it's own Makefile, and there is no "commom" Makefile. Yes, the "Samples" folder has 3 subfolders (GLES1.1, GLES2.0 and OpenVG) each with its own Makefile.[fbdev|x11], but no common Makefile. Moreover OpenVG has no Makefile.x11. > > Are you thinking about create one recipe for the "gpu-sdk" package and > make it provides 3 "packages"? > > Or, are you thinking about create one recipe for each "sample"? I'm not an expert packager, so I'm eager to receive suggestions on what's best. > > > *instalation > I took a look on one Makefile, and if you do not define DESTDIR it will > assume a default value for it. So, you must define DESTDIR someway. I'm open to suggestions on where to install the result. Could /opt/vivante- gpu-sdk/ be a good idea as they are nothing more than samples? By default the make install puts the result in a bin/GLES11_X11 folder. The first part can be GLES11, GLES20 or OpenVG, second part can be X11 or fbdev. Thank for your help, Diego [-- Attachment #2: 0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch --] [-- Type: text/x-patch, Size: 19484 bytes --] From 72ba888f8e33a95343be834d5d9f12ce5d8c00f2 Mon Sep 17 00:00:00 2001 From: Diego Rondini <diego.ml@zoho.com> Date: Tue, 30 Apr 2013 10:52:25 +0200 Subject: [PATCH 1/2] Fix compilation of the GLES1.1 X11 Samples in Yocto This commit fixes the following build problems: - gcc 4.7 compatibility (remove unsupported "-Wl" option); - wrong compiler binary name (caused by an overwrite of CC and AR variables) - unknown include and library paths (caused by forcing paths when not needed) --- Samples/GLES1.1/01_SimpleTriangle/Makefile.x11 | 9 +-------- Samples/GLES1.1/02_VertexColors/Makefile.x11 | 7 +------ .../GLES1.1/03_VertexTransformation/Makefile.x11 | 7 +------ .../04_ColoredVerticesInterpolation/Makefile.x11 | 7 +------ Samples/GLES1.1/05_GeometricObjects/Makefile.x11 | 7 +------ Samples/GLES1.1/06_Projection/Makefile.x11 | 7 +------ Samples/GLES1.1/07_BasicTexturing/Makefile.x11 | 7 +------ Samples/GLES1.1/08_Multitexturing/Makefile.x11 | 7 +------ Samples/GLES1.1/09_Alphablending/Makefile.x11 | 7 +------ Samples/GLES1.1/10_FilteringLights/Makefile.x11 | 7 +------ Samples/GLES1.1/11_LightingFog/Makefile.x11 | 7 +------ Samples/GLES1.1/12_Stencil/Makefile.x11 | 7 +------ Samples/GLES1.1/13_3DFonts/Makefile.x11 | 7 +------ .../14_ParticlesSpritesAnimation/Makefile.x11 | 7 +------ .../GLES1.1/15_ParticleAccelerator/Makefile.x11 | 7 +------ .../GLES1.1/16_VertexBufferObjects/Makefile.x11 | 7 +------ Samples/GLES1.1/17_Beizer/Makefile.x11 | 7 +------ 17 files changed, 17 insertions(+), 104 deletions(-) diff --git a/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11 b/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11 index 1b86dbf..54c09ab 100755 --- a/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11 +++ b/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11 @@ -2,12 +2,6 @@ APPNAME := 01_SimpleTriangle DESTDIR ?= . -# Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar - -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +15,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -30,7 +23,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ $(COMMON_DIR)/src/glu3.o -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/02_VertexColors/Makefile.x11 b/Samples/GLES1.1/02_VertexColors/Makefile.x11 index 6d9d063..d2294e8 100755 --- a/Samples/GLES1.1/02_VertexColors/Makefile.x11 +++ b/Samples/GLES1.1/02_VertexColors/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -30,7 +25,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ $(COMMON_DIR)/src/glu3.o -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/03_VertexTransformation/Makefile.x11 b/Samples/GLES1.1/03_VertexTransformation/Makefile.x11 index b5574e0..8f41874 100755 --- a/Samples/GLES1.1/03_VertexTransformation/Makefile.x11 +++ b/Samples/GLES1.1/03_VertexTransformation/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -30,7 +25,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ $(COMMON_DIR)/src/glu3.o -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11 b/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11 index c9346f2..9092b2b 100755 --- a/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11 +++ b/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -29,7 +24,7 @@ OBJECTS_TUT += \ ColoredVerticesInterpolation.o \ $(COMMON_DIR)/src/fsl_egl.o\ -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/05_GeometricObjects/Makefile.x11 b/Samples/GLES1.1/05_GeometricObjects/Makefile.x11 index a2cec68..295fd77 100755 --- a/Samples/GLES1.1/05_GeometricObjects/Makefile.x11 +++ b/Samples/GLES1.1/05_GeometricObjects/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -30,7 +25,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ $(COMMON_DIR)/src/glu3.o -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/06_Projection/Makefile.x11 b/Samples/GLES1.1/06_Projection/Makefile.x11 index 84b674f..a33dcef 100755 --- a/Samples/GLES1.1/06_Projection/Makefile.x11 +++ b/Samples/GLES1.1/06_Projection/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -30,7 +25,7 @@ OBJECTS_TUT += \ render.o \ $(COMMON_DIR)/src/fsl_egl.o\ -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/07_BasicTexturing/Makefile.x11 b/Samples/GLES1.1/07_BasicTexturing/Makefile.x11 index a22a236..1278393 100755 --- a/Samples/GLES1.1/07_BasicTexturing/Makefile.x11 +++ b/Samples/GLES1.1/07_BasicTexturing/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR = . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -33,7 +28,7 @@ OBJECTS_TUT += \ ASSETS = BasicTexturing.bmp -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/08_Multitexturing/Makefile.x11 b/Samples/GLES1.1/08_Multitexturing/Makefile.x11 index f8d244f..d8a3841 100755 --- a/Samples/GLES1.1/08_Multitexturing/Makefile.x11 +++ b/Samples/GLES1.1/08_Multitexturing/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ ASSETS = data @@ -32,7 +27,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ $(COMMON_DIR)/src/fslutil.o\ -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/09_Alphablending/Makefile.x11 b/Samples/GLES1.1/09_Alphablending/Makefile.x11 index aa9ab43..39c964a 100755 --- a/Samples/GLES1.1/09_Alphablending/Makefile.x11 +++ b/Samples/GLES1.1/09_Alphablending/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR = . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -33,7 +28,7 @@ OBJECTS_TUT += \ ASSETS = Alphablending.bmp -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/10_FilteringLights/Makefile.x11 b/Samples/GLES1.1/10_FilteringLights/Makefile.x11 index d5f17c7..9ac6886 100755 --- a/Samples/GLES1.1/10_FilteringLights/Makefile.x11 +++ b/Samples/GLES1.1/10_FilteringLights/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR = . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -33,7 +28,7 @@ OBJECTS_TUT += \ ASSETS = FilteringLights.bmp -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/11_LightingFog/Makefile.x11 b/Samples/GLES1.1/11_LightingFog/Makefile.x11 index a284335..d2f57c2 100755 --- a/Samples/GLES1.1/11_LightingFog/Makefile.x11 +++ b/Samples/GLES1.1/11_LightingFog/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ ASSETS = data @@ -32,7 +27,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/12_Stencil/Makefile.x11 b/Samples/GLES1.1/12_Stencil/Makefile.x11 index 7d86842..1823434 100755 --- a/Samples/GLES1.1/12_Stencil/Makefile.x11 +++ b/Samples/GLES1.1/12_Stencil/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR = . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -30,7 +25,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ $(COMMON_DIR)/src/glu3.o -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/13_3DFonts/Makefile.x11 b/Samples/GLES1.1/13_3DFonts/Makefile.x11 index 7075616..0499002 100755 --- a/Samples/GLES1.1/13_3DFonts/Makefile.x11 +++ b/Samples/GLES1.1/13_3DFonts/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -24,7 +20,6 @@ ASSETS = data CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -35,7 +30,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ $(COMMON_DIR)/src/fslutil.o\ -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11 b/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11 index ccf7a75..7be1e6d 100755 --- a/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11 +++ b/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR = . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -33,7 +28,7 @@ OBJECTS_TUT += \ ASSETS = ParticlesSpritesAnimation.bmp -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11 b/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11 index 67bae20..72c557e 100755 --- a/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11 +++ b/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ ASSETS = data @@ -37,7 +32,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ $(COMMON_DIR)/src/fslutil.o\ -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11 b/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11 index 418f37d..a96e982 100755 --- a/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11 +++ b/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR ?= . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ ASSETS = data @@ -36,7 +31,7 @@ OBJECTS_TUT += \ $(COMMON_DIR)/src/fsl_egl.o\ $(COMMON_DIR)/src/fslutil.o\ -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ diff --git a/Samples/GLES1.1/17_Beizer/Makefile.x11 b/Samples/GLES1.1/17_Beizer/Makefile.x11 index 7fba8ce..1e18c51 100755 --- a/Samples/GLES1.1/17_Beizer/Makefile.x11 +++ b/Samples/GLES1.1/17_Beizer/Makefile.x11 @@ -3,11 +3,7 @@ DESTDIR = . # Make command to use for dependencies -CC = $(CROSS_COMPILE)gcc -AR = $(CROSS_COMPILE)ar -TARGET_PATH_LIB = $(ROOTFS)/usr/lib -TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include COMMON_DIR=../common BIN_TUT = $(DESTDIR)/$(APPNAME) @@ -21,7 +17,6 @@ CFLAGS_TUT += \ -DEGL_USE_X11 \ CFLAGS_TUT += \ - -I$(TARGET_PATH_INCLUDE) \ -I$(COMMON_DIR)/inc \ @@ -33,7 +28,7 @@ OBJECTS_TUT += \ ASSETS = Beizer.bmp -DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB) +DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl $(BIN_TUT) : $(OBJECTS_TUT) @echo " LD " $@ -- 1.7.9.5 [-- Attachment #3: 0002-Don-t-build-missing-samples.patch --] [-- Type: text/x-patch, Size: 840 bytes --] From 97f3af7a44b41f3e46c54765ba415ba9f511fb81 Mon Sep 17 00:00:00 2001 From: Diego Rondini <diego.ml@zoho.com> Date: Tue, 30 Apr 2013 12:46:38 +0200 Subject: [PATCH 2/2] Don't build missing samples Samples 18_VertexBufferObjects and 19_Beizer are not included in the package, so don't try to compile them. --- Samples/GLES1.1/Makefile.x11 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Samples/GLES1.1/Makefile.x11 b/Samples/GLES1.1/Makefile.x11 index 003763d..1c95158 100755 --- a/Samples/GLES1.1/Makefile.x11 +++ b/Samples/GLES1.1/Makefile.x11 @@ -17,9 +17,7 @@ SUB_PROJECTS= \ 14_ParticlesSpritesAnimation \ 15_ParticleAccelerator \ 16_VertexBufferObjects \ - 17_Beizer \ - 18_VertexBufferObjects \ - 19_Beizer + 17_Beizer .PHONY: all -- 1.7.9.5 [-- Attachment #4: vivante-gpu-sdk_1.00.bb --] [-- Type: application/octet-stream, Size: 471 bytes --] SUMMARY = "Vivante GPU SDK Samples" DESCRIPTION = "Freescale's adaptation of Jeff Molofee demos" LICENSE = "CLOSED" PR = "r0" SRC_URI = "file://gpu_sdk_v1.00.tar.gz \ file://0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch;striplevel=3 \ file://0002-Don-t-build-missing-samples.patch;striplevel=3" S = "${WORKDIR}/Samples/GLES1.1" do_compile () { oe_runmake -f Makefile.x11 } do_install () { oe_runmake -f Makefile.x11 install } ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-04-30 13:27 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-04-30 10:14 [WIP] Recipe for Vivante GPU Sdk Diego 2013-04-30 10:25 ` Diego 2013-04-30 11:09 ` Otavio Salvador 2013-04-30 11:33 ` Daiane Angolini 2013-04-30 13:27 ` Diego
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.