yes your right looking at the Makefile.linux
here I had to re-write the Makefile.linux
here just copy paste mine. it built fine.
Code:
GIMPTOOL=gimptool-2.0
CC=gcc -lm
CFLAGS= -O2 -fPIC -Wall `pkg-config --cflags gtk+-2.0 gtkglext-1.0 gimp-2.0 `
TARGET=normalmap
OBJS=normalmap.o preview3d.o scale.o
LIBS=`pkg-config --libs gtk+-2.0 gtkglext-1.0 gimp-2.0 gimpui-2.0` \
-L/usr/X11R6/lib64 -lGLEW
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET)
clean:
rm -f *.o $(TARGET)
install: all
$(GIMPTOOL) --install-bin $(TARGET)
.c.o:
$(CC) -c $(CFLAGS) $<
normalmap.o: normalmap.c scale.h preview3d.h Makefile
preview3d.o: preview3d.c scale.h objects/cube.h objects/quad.h \
objects/sphere.h objects/torus.h objects/teapot.h pixmaps/object.xpm \
pixmaps/light.xpm pixmaps/scene.xpm pixmaps/full.xpm Makefile
scale.o: scale.c Makefile
the -lm tells the gcc compiler to use the math.h then the "-O2 -fPIC " is standard for compiling 64 bit.
then we need to use the 64 bit X11. I will put this on my git or bitbuckit and see if otheres want it.
remeber do a make clean then a make.