Hi,
I'm trying to install OctPlot on Mac OS X, but can't seem to compile (v 0.4.0).
I get the following error mesg. There doesn't seem to be a directory GL or file glu.h
is there a patch I need ??
R.
patch.cpp:20:20: error: GL/glu.h: No such file or directory
patch.cpp: In function `void errorCallback(GLenum)':
patch.cpp:50: error: 'gluErrorString' was not declared in this scope
patch.cpp: In member function `virtual void Patch::draw()':
patch.cpp:145: error: 'GLUtesselator' was not declared in this scope
patch.cpp:145: error: 'tobj' was not declared in this scope
patch.cpp:146: error: 'gluNewTess' was not declared in this scope
patch.cpp:148: error: 'GLU_TESS_VERTEX' was not declared in this scope
patch.cpp:149: error: 'gluTessCallback' was not declared in this scope
patch.cpp:150: error: 'GLU_TESS_BEGIN' was not declared in this scope
patch.cpp:152: error: 'GLU_TESS_END' was not declared in this scope
patch.cpp:154: error: 'GLU_TESS_ERROR' was not declared in this scope
patch.cpp:156: error: 'GLU_TESS_COMBINE' was not declared in this scope
patch.cpp:158: error: 'GLU_TESS_EDGE_FLAG' was not declared in this scope
patch.cpp:160: error: 'GLU_TESS_WINDING_RULE' was not declared in this scope
patch.cpp:161: error: 'GLU_TESS_WINDING_ODD' was not declared in this scope
patch.cpp:161: error: 'gluTessProperty' was not declared in this scope
patch.cpp:162: error: 'GLU_TESS_TOLERANCE' was not declared in this scope
patch.cpp:186: error: 'gluTessBeginPolygon' was not declared in this scope
patch.cpp:187: error: 'gluTessBeginContour' was not declared in this scope
patch.cpp:198: error: 'gluTessVertex' was not declared in this scope
patch.cpp:200: error: 'gluTessEndContour' was not declared in this scope
patch.cpp:201: error: 'gluTessEndPolygon' was not declared in this scope
patch.cpp:206: error: 'gluDeleteTess' was not declared in this scope
make[2]: *** [octplot-patch.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't help much since I have zero OS X experience. I seems you are missing the glu.h header file
googling for "os x glu" turned this up:
If your OpenGL program has the include library <GL/glut.h>, change this to <GLUT/glut.h> for Mac OS X. If you are including <gl.h> and/or <glu.h>, you'll need to change them to <OpenGL/gl.h> and/or <OpenGL/glu.h>
Also, try searching for the file glu.h in you disk
Shai
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just noticed your post. I was the originator of this thread. Here's what I did to get OctPlot to work. I had some troubles with my Fink install. I've since deleted my Octave install and reinstalled Octave. Thus, I no longer have OctPlot installed an running.
If you are successful, please let us know.
Current state on Macbook Pro (Intel) running OS X 10.4.10 with Fink (http://www.finkproject.org/)
Fink is used to satisfy the "prerequests"
fink list octave
i octave 2.9.12-3 Matlab-like language for computations
i octave-forge 2006.03.17- Extensions to octave
fink list fltk
i fltk-x11 1.1.6-11.1 GUI toolkit
i fltk-x11-shlibs 1.1.6-11.1 Runtime code for fltk-x11
fink list freetype
i freetype219 2.2.1-4 TrueType font rendering library, headers
i freetype219-shlibs 2.2.1-4 TrueType font rendering library, shared libs
fink list ghostscript
i ghostscript 8.56-1 Interpreter for PostScript and PDF
i ghostscript-fonts 8.11-3 Standard fonts for Ghostscript
i x-ghostscript-fonts 20020206-3 Allows ghostscript fonts to be used within X-windows
Below is the sequence I used to install an *almost* working octplot
Hi,
I'm trying to install OctPlot on Mac OS X, but can't seem to compile (v 0.4.0).
I get the following error mesg. There doesn't seem to be a directory GL or file glu.h
is there a patch I need ??
R.
patch.cpp:20:20: error: GL/glu.h: No such file or directory
patch.cpp: In function `void errorCallback(GLenum)':
patch.cpp:50: error: 'gluErrorString' was not declared in this scope
patch.cpp: In member function `virtual void Patch::draw()':
patch.cpp:145: error: 'GLUtesselator' was not declared in this scope
patch.cpp:145: error: 'tobj' was not declared in this scope
patch.cpp:146: error: 'gluNewTess' was not declared in this scope
patch.cpp:148: error: 'GLU_TESS_VERTEX' was not declared in this scope
patch.cpp:149: error: 'gluTessCallback' was not declared in this scope
patch.cpp:150: error: 'GLU_TESS_BEGIN' was not declared in this scope
patch.cpp:152: error: 'GLU_TESS_END' was not declared in this scope
patch.cpp:154: error: 'GLU_TESS_ERROR' was not declared in this scope
patch.cpp:156: error: 'GLU_TESS_COMBINE' was not declared in this scope
patch.cpp:158: error: 'GLU_TESS_EDGE_FLAG' was not declared in this scope
patch.cpp:160: error: 'GLU_TESS_WINDING_RULE' was not declared in this scope
patch.cpp:161: error: 'GLU_TESS_WINDING_ODD' was not declared in this scope
patch.cpp:161: error: 'gluTessProperty' was not declared in this scope
patch.cpp:162: error: 'GLU_TESS_TOLERANCE' was not declared in this scope
patch.cpp:186: error: 'gluTessBeginPolygon' was not declared in this scope
patch.cpp:187: error: 'gluTessBeginContour' was not declared in this scope
patch.cpp:198: error: 'gluTessVertex' was not declared in this scope
patch.cpp:200: error: 'gluTessEndContour' was not declared in this scope
patch.cpp:201: error: 'gluTessEndPolygon' was not declared in this scope
patch.cpp:206: error: 'gluDeleteTess' was not declared in this scope
make[2]: *** [octplot-patch.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I can't help much since I have zero OS X experience. I seems you are missing the glu.h header file
googling for "os x glu" turned this up:
If your OpenGL program has the include library <GL/glut.h>, change this to <GLUT/glut.h> for Mac OS X. If you are including <gl.h> and/or <glu.h>, you'll need to change them to <OpenGL/gl.h> and/or <OpenGL/glu.h>
Also, try searching for the file glu.h in you disk
Shai
I get the same error on PowerBook (Mac OS X 10.4.10). I do have glu.h in several locations:
locate glu.h
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/glu.h
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h
/Developer/SDKs/MacOSX10.3.9.sdk/usr/X11R6/include/GL/glu.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/glu.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/GL/glu.h
/System/Library/Frameworks/AGL.framework/Versions/A/Headers/glu.h
/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h
/usr/X11R6/include/GL/glu.h
So: any ideas to fix this problem?
Cheers
Matthias
Hi Matthias,
Just noticed your post. I was the originator of this thread. Here's what I did to get OctPlot to work. I had some troubles with my Fink install. I've since deleted my Octave install and reinstalled Octave. Thus, I no longer have OctPlot installed an running.
If you are successful, please let us know.
Current state on Macbook Pro (Intel) running OS X 10.4.10 with Fink (http://www.finkproject.org/)
Fink is used to satisfy the "prerequests"
fink list octave
i octave 2.9.12-3 Matlab-like language for computations
i octave-forge 2006.03.17- Extensions to octave
fink list fltk
i fltk-x11 1.1.6-11.1 GUI toolkit
i fltk-x11-shlibs 1.1.6-11.1 Runtime code for fltk-x11
fink list freetype
i freetype219 2.2.1-4 TrueType font rendering library, headers
i freetype219-shlibs 2.2.1-4 TrueType font rendering library, shared libs
fink list ghostscript
i ghostscript 8.56-1 Interpreter for PostScript and PDF
i ghostscript-fonts 8.11-3 Standard fonts for Ghostscript
i x-ghostscript-fonts 20020206-3 Allows ghostscript fonts to be used within X-windows
Below is the sequence I used to install an *almost* working octplot
(1) change src/patch.cpp
< #include <GL/glu.h>
> #include <OpenGL/glu.h>
(2) change highlevel/axis.m to set return variable
< endfunction
> _ax = ax;
> endfunction
(3) ./configure
(4) make
(5) chmod 755 install-sh
(6) sudo mkdir -p /sw/lib/octave/2.9.12/site/octplot-0.4.0/fonts/
(7) sudo mkdir -p /sw/share/octave/2.9.12/site/m/octplot/
(8) sudo make install
BTW, did you try the lates svn source?
The relevant change is the chaging of the line giving you trouble in patch.cpp to
#include <FL/glu.h>
This might solve the problem since fltk should run fine on OSX
please try and report sucess/failure
Shai