Skip to content

Instantly share code, notes, and snippets.

@mojodna
Created December 5, 2009 23:13
Show Gist options
  • Save mojodna/249909 to your computer and use it in GitHub Desktop.
Save mojodna/249909 to your computer and use it in GitHub Desktop.
Index: color-relief.cpp
===================================================================
--- color-relief.cpp (revision 199)
+++ color-relief.cpp (working copy)
@@ -32,10 +32,11 @@
#include <fstream>
#include <list>
#include "gdal_priv.h"
-#include "stringtok.h"
using namespace std;
+#include "stringtok.h"
+
struct SColor
{
int Red;
Index: Makefile
===================================================================
--- Makefile (revision 199)
+++ Makefile (working copy)
@@ -6,12 +6,13 @@
######
CPP=g++
-GDAL_LIB=-lgdal
+GDAL_LIB=-I /Library/Frameworks/GDAL.framework/unix/include/ -L/Library/Frameworks/GDAL.framework/unix/lib/ -lgdal
default: compile
compile:
@echo "Demtools compilation ..."
+ mkdir bin
${CPP} hillshade.cpp ${GDAL_LIB} -o bin/hillshade
${CPP} color-relief.cpp ${GDAL_LIB} -o bin/color-relief
${CPP} aspect.cpp ${GDAL_LIB} -o bin/aspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment