quarta-feira, 24 de julho de 2013

AMD-APP-SDK (2.8/2.8.1.0) patch to make samples (Slackware-current)

Get slackbuild files on
http://slackbuilds.org/repository/14.0/development/amd-app-sdk/
build package and install

*************************************************************
--- ./make/openclsdkdefs.mk-orig    2012-05-14 04:43:34.000000000 -0300
+++ ./make/openclsdkdefs.mk    2012-11-30 20:41:05.275285082 -0200
@@ -230,7 +230,7 @@
 ifdef MINGW
   LDFLAGS           += -L/usr/X11R6/lib
 else
-  LDFLAGS           += -lpthread -ldl -L/usr/X11R6/lib
+  LDFLAGS           += -lpthread -ldl -L/usr/X11R6/lib64 -lX11
 endif
   LD_LIBDIR_FLAG    := -L
   LD_SHARED_FLAG    := -shared 
--- ./samples/opencl/SDKUtil/include/SDKCommon.hpp-orig    2012-05-14 04:43:34.000000000 -0300
+++ ./samples/opencl/SDKUtil/include/SDKCommon.hpp    2012-11-30 14:38:11.671185385 -0200
@@ -18,6 +18,7 @@
 #include <string.h>
 #include <vector>
 #include <malloc.h>
+#include <unistd.h>

 #include <CL/opencl.h>
***************************************************************
# cd /opt/amd-app-sdk
patchs the files and
# LIBAPARAPI=/opt/amd-app-sdk/samples/aparapi/AparapiUtil make

Nenhum comentário:

Postar um comentário