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: Pantxo Diribarne
Subject: Re: OS X 10.9 Build errors
Date: Thu, 10 Jul 2014 14:32:32 +0200




2014-07-10 2:32 GMT+02:00 Ben Abbott <address@hidden>:

On Jul 8, 2014, at 6:58 AM, Pantxo <address@hidden> wrote:

> Robinson, Melvin D-2 wrote
>> 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.
>
> Hi,
>
> I've been facing the same build failure for a few month and don't understand
> its origin. I mentioned it in a conversation with Ben Abott on the bug
> tracker but it didn't seem to ring a bell so it is probably due to a
> particular setup on my (and your) system. Did you install XQuartz as I do?
> Ben, Carlo ?
>
> I didn't pass "--with-x=no" to the configure script but it may be worth
> trying. At least, commenting "#if defined (HAVE_X_WINDOWS)" blocks in
> __init_fltk__.cc makes the compilation work for me, but I don't know why.
>
> Pantxo

ah-ha, that makes some sense. Perhaps Octave is trying to use X11 to determine the screen size and figure size?

I'm using fltk-devel +aqua as well.  That implies that the Carbon framework should be used to determine the screensize, figure size etc.  Thus, I'm explicitly using the configure options below.

   --with-framework-carbon
   --without-x

Ben

Thanks Ben, I already had "--with-framework-carbon" and adding "--without-x" configure option solved the issue for me.

Pantxo

reply via email to

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