Skip to content

Instantly share code, notes, and snippets.

@velenux
Created January 11, 2011 08:10
Show Gist options
  • Save velenux/774188 to your computer and use it in GitHub Desktop.
Save velenux/774188 to your computer and use it in GitHub Desktop.
Patch for compiling ATI Streams SDK 2.3 on Fedora 13 64bit
diff -rupN ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/BoxFilterGL/Makefile ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/BoxFilterGL/Makefile
--- ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/BoxFilterGL/Makefile 2010-12-07 07:27:48.000000000 +0100
+++ ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/BoxFilterGL/Makefile 2011-01-11 08:17:52.575903890 +0100
@@ -24,6 +24,8 @@ CLFILES = BoxFilterGL_Kernels.cl
IMAGES = BoxFilterGL_Input.bmp
LLIBS += SDKUtil
+LLIBS += GL
+LLIBS += GLU
ifeq ($(OS),lnx)
ifdef MINGW
diff -rupN ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/FluidSimulation2D/Makefile ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/FluidSimulation2D/Makefile
--- ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/FluidSimulation2D/Makefile 2010-12-07 07:27:48.000000000 +0100
+++ ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/FluidSimulation2D/Makefile 2011-01-11 08:18:29.346911961 +0100
@@ -23,6 +23,8 @@ FILES = FluidSimulation2D ColorScale
CLFILES = FluidSimulation2D_Kernels.cl
LLIBS += SDKUtil
+LLIBS += GL
+LLIBS += GLU
ifeq ($(OS),lnx)
ifdef MINGW
diff -rupN ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/Mandelbrot/Makefile ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/Mandelbrot/Makefile
--- ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/Mandelbrot/Makefile 2010-12-07 07:27:48.000000000 +0100
+++ ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/Mandelbrot/Makefile 2011-01-11 08:19:32.379913198 +0100
@@ -23,6 +23,8 @@ FILES = Mandelbrot MandelbrotDisplay
CLFILES = Mandelbrot_Kernels.cl
LLIBS += SDKUtil
+LLIBS += GL
+LLIBS += GLU
ifeq ($(OS),lnx)
ifdef release
diff -rupN ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/NBody/Makefile ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/NBody/Makefile
--- ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/NBody/Makefile 2010-12-07 07:27:48.000000000 +0100
+++ ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/NBody/Makefile 2011-01-11 08:20:20.580913231 +0100
@@ -23,6 +23,9 @@ FILES = NBody
CLFILES = NBody_Kernels.cl
LLIBS += SDKUtil
+LLIBS += GL
+LLIBS += GLU
+
ifeq ($(OS),lnx)
ifdef MINGW
diff -rupN ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/SimpleGL/Makefile ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/SimpleGL/Makefile
--- ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/SimpleGL/Makefile 2010-12-07 07:27:48.000000000 +0100
+++ ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/SimpleGL/Makefile 2011-01-11 08:22:40.433079849 +0100
@@ -24,6 +24,8 @@ CLFILES = SimpleGL_Kernels.cl
IMAGES = SimpleGL.bmp
LLIBS += SDKUtil
+LLIBS += GL
+LLIBS += GLU
ifeq ($(OS),lnx)
ifdef MINGW
diff -rupN ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/Template/Makefile ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/Template/Makefile
--- ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/Template/Makefile 2010-12-07 07:27:48.000000000 +0100
+++ ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/Template/Makefile 2011-01-11 08:22:04.595912574 +0100
@@ -19,6 +19,9 @@ EXE_TARGET_INSTALL = Template
#
####
+LLIBS += GL
+LLIBS += GLU
+
FILES = Template
CLFILES = Template_Kernels.cl
diff -rupN ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/URNGNoiseGL/Makefile ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/URNGNoiseGL/Makefile
--- ati-stream-sdk-v2.3-lnx64/samples/opencl/cl/app/URNGNoiseGL/Makefile 2010-12-07 07:27:48.000000000 +0100
+++ ati-stream-sdk-v2.3-lnx64-patched/samples/opencl/cl/app/URNGNoiseGL/Makefile 2011-01-11 08:23:30.161903033 +0100
@@ -24,6 +24,8 @@ CLFILES = URNGNoiseGL_Kernels.cl
IMAGES = URNGNoiseGL_Input.bmp
LLIBS += SDKUtil
+LLIBS += GL
+LLIBS += GLU
ifeq ($(OS),lnx)
ifdef MINGW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment