octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X 10.9 Build errors


From: Ben Abbott
Subject: Re: OS X 10.9 Build errors
Date: Tue, 08 Jul 2014 09:50:52 -0400

On Jul 8, 2014, at 9:16 AM, Robinson, Melvin D <address@hidden> wrote:

> From: <Robinson>, Melvin Robinson <address@hidden>
> Date: Tuesday, July 8, 2014 at 12:56 AM
> To: Octave Maintainers <address@hidden>
> Subject: OS X 10.9 Build errors
> 
> Trying to build from default I get the following errors:
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -pipe 
> -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT 
> -I/opt/local/include/freetype2 -I/opt/local/include 
> -I/opt/local/include/libpng16 -I/opt/local/include 
> -I/opt/local/include/freetype2 -I/opt/local/include 
> -I/opt/local/include/freetype2 -I/opt/local/include 
> -I/opt/local/include/libpng16 -I../liboctave/cruft/misc -I../liboctave/array 
> -I../liboctave/numeric -I../liboctave/numeric -I../liboctave/operators 
> -I../liboctave/operators -I../liboctave/system -I../liboctave/util 
> -I./octave-value -I./operators -Iparse-tree -I./parse-tree -Icorefcn 
> -I./corefcn -I../libgnu -I../libgnu -Wall -W -Wshadow -Wold-style-cast 
> -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 
> -D_THREAD_SAFE -pthread -MT dldfcn/dldfcn___init_fltk___la-__init_fltk__.lo 
> -MD -MP -MF dldfcn/.deps/dldfcn___init_fltk___la-__init_fltk__.Tpo -c 
> dldfcn/__init_fltk__.cc  -fno-common -DPIC -o 
> dldfcn/.libs/dldfcn___init_fltk___la-__init_fltk__.o
> In file included from /opt/local/include/FL/x.H:43:0,
>                  from /opt/local/include/FL/fl_draw.H:27,
>                  from dldfcn/__init_fltk__.cc:69:
> /opt/local/include/FL/mac.H:32:32: error: conflicting declaration 'typedef 
> class FLWindow_opaque* Window'
>  typedef class FLWindow_opaque *Window; // pointer to the FLWindow 
> objective-c class
>                                 ^
> In file included from /opt/local/include/X11/Xlib.h:44:0,
>                  from dldfcn/__init_fltk__.cc:46:
> /opt/local/include/X11/X.h:96:13: error: 'Window' has a previous declaration 
> as 'typedef XID Window'
>  typedef XID Window;
>              ^
> dldfcn/__init_fltk__.cc: In member function 'void OpenGL_fltk::overlay()':
> dldfcn/__init_fltk__.cc:230:5: warning: 'void gluOrtho2D(GLdouble, GLdouble, 
> GLdouble, GLdouble)' is deprecated (declared at 
> /System/Library/Frameworks/OpenGL.framework/Headers/glu.h:276): "Use 
> GLKMatrix4MakeOrtho" [-Wdeprecated-declarations]
>      gluOrtho2D (0.0, w (), 0.0, h ());
>      ^
> dldfcn/__init_fltk__.cc:230:37: warning: 'void gluOrtho2D(GLdouble, GLdouble, 
> GLdouble, GLdouble)' is deprecated (declared at 
> /System/Library/Frameworks/OpenGL.framework/Headers/glu.h:276): "Use 
> GLKMatrix4MakeOrtho" [-Wdeprecated-declarations]
>      gluOrtho2D (0.0, w (), 0.0, h ());
>                                      ^
> make[3]: *** [dldfcn/dldfcn___init_fltk___la-__init_fltk__.lo] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> Here is my version of FLTK
> butterfly:octave melrobin$ port list fltk-devel
> fltk-devel                     @1.3.x-r10201   aqua/fltk-devel
> 
> 
> I’m not sure how to fix this one.  Please help.
> 
> 
> Yes, I’m using Xquartz 2.7.6 and I have installed freeglut 2.8.1 from 
> Macports.

I'm not aware of anyone being successful with the Macports version of freeglut. 
 I've tried myself, but was unable to get it to work. Presently, I'm using the 
OpenGL that comes with MacOS X. For that I include the configure options below.

        --with-framework-carbon   --with-opengl
 
If all goes well, your OpenGL libs will include the part below.

        -Wl,-framework -Wl,OpenGL

Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]