Patchwork [WIP] Recipe for Vivante GPU Sdk

login
register
mail settings
Submitter Diego Rondini
Date April 30, 2013, 10:14 a.m.
Message ID <1854835.BLcgak9JCV@localhost.localdomain>
Download mbox | patch
Permalink /patch/49129/
State Not Applicable
Delegated to: Otavio Salvador
Headers show

Comments

Diego Rondini - April 30, 2013, 10:14 a.m.
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
Diego Rondini - April 30, 2013, 10:25 a.m.
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
Otavio Salvador - April 30, 2013, 11:09 a.m.
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
Daiane Angolini - April 30, 2013, 11:33 a.m.
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

Patch

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