Ubuntu 10.04 compile
Brought to you by:
marcus256
Installed glut using:
sudo apt-get install freeglut3 freeglut3-dev
Compile of ctmviewer now needs -lGLU library (http://ubuntuforums.org/showthread.php?p=9350126)
diff tools/Makefile.linux tools/Makefile.linux.orig
59c59
< $(CPP) -s -o $@ -L$(OPENCTMDIR) -L$(TINYXMLDIR) -L$(JPEGDIR) -L$(ZLIBDIR) $(CTMVIEWEROBJS) -Wl,-rpath,. -lopenctm -ltinyxml -ljpeg -lz -lglut -lGLU `pkg-config --libs gtk+-2.0`
---
> $(CPP) -s -o $@ -L$(OPENCTMDIR) -L$(TINYXMLDIR) -L$(JPEGDIR) -L$(ZLIBDIR) $(CTMVIEWEROBJS) -Wl,-rpath,. -lopenctm -ltinyxml -ljpeg -lz -lglut `pkg-config --libs gtk+-2.0`
I had the same problem and used the same fix. Why wasn't this corrected since 2010??