On 10/29/12 7:47 PM, Alexander Hansen wrote:
> I've got a Qt-related question.  Gnuplot-4.6.0 added Qt support (not
> turned on by default) and I wanted to enable this as an option.
> However, this doesn't work (on 10.8/Xcode CLI 4.5, anyway):
> 
> c++ -DHAVE_CONFIG_H -I. -I..  -I../term -I../term -DBINDIR=\"/sw/bin\"
> -DX11_DRIVER_DIR=\"/sw/lib/gnuplot/4.6\"
> -DQT_DRIVER_DIR=\"/sw/lib/gnuplot/4.6\"
> -DGNUPLOT_SHARE_DIR=\"/sw/share/gnuplot/4.6\"
> -DGNUPLOT_PS_DIR=\"/sw/share/gnuplot/4.6/PostScript\"
> -DGNUPLOT_JS_DIR=\"/sw/share/gnuplot/4.6/js\"
> -DGNUPLOT_LUA_DIR=\"/sw/share/gnuplot/4.6/lua\"
> -DCONTACT=\"gnuplot-b...@lists.sourceforge.net\"
> -DHELPFILE=\"/sw/share/gnuplot/4.6/gnuplot.gih\" -DGNUPLOT_X11=\"`echo
> gnuplot_x11 | sed 's,x,x,'`\" -DXAPPLRESDIR=\"/etc/X11/app-defaults/\"
> -DQTGNUPLOT_DATA_DIR=\"/sw/share/gnuplot/4.6/qt\" -I/sw/include
> -I/usr/X11/include -I/sw/include -I/sw/include -I/sw/include
> -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include
> -I/sw/include/cairo -I/sw/include/freetype2 -I/sw/include/pango-1.0
> -I/opt/X11/include -I/usr/X11R6/include -I/usr/X11/include
> -I/sw/lib/qt4-x11/include -I/sw/lib/qt4-x11/include/QtCore
> -I/sw/lib/qt4-x11/include/QtGui -I/sw/lib/qt4-x11/include/QtNetwork
> -I/sw/lib/qt4-x11/include/QtSvg -DQT_SHARED  -g -O2  -ObjC -MT
> QtGnuplotWindow.o -MD -MP -MF .deps/QtGnuplotWindow.Tpo -c -o
> QtGnuplotWindow.o `test -f 'qtterminal/QtGnuplotWindow.cpp' || echo
> './'`qtterminal/QtGnuplotWindow.cpp
> In file included from qtterminal/gnuplot_qt.cpp:44:
> In file included from qtterminal/QtGnuplotApplication.h:47:
> In file included from qtterminal/QtGnuplotEvent.h:47:
> In file included from /sw/lib/qt4-x11/include/QtCore/QObject:1:
> In file included from /sw/lib/qt4-x11/include/QtCore/qobject.h:47:
> In file included from /sw/lib/qt4-x11/include/QtCore/qobjectdefs.h:45:
> In file included from /sw/lib/qt4-x11/include/QtCore/qnamespace.h:45:
> /sw/lib/qt4-x11/include/QtCore/qglobal.h:327:6: warning: "This version
> of Mac OS
>       X is unsupported" [-W#warnings]
> #    warning "This version of Mac OS X is unsupported"
>      ^
> In file included from qtterminal/gnuplot_qt.cpp:44:
> In file included from qtterminal/QtGnuplotApplication.h:47:
> In file included from qtterminal/QtGnuplotEvent.h:47:
> In file included from /sw/lib/qt4-x11/include/QtCore/QObject:1:
> In file included from /sw/lib/qt4-x11/include/QtCore/qobject.h:47:
> In file included from /sw/lib/qt4-x11/include/QtCore/qobjectdefs.h:45:
> /sw/lib/qt4-x11/include/QtCore/qnamespace.h:54:1: error: expected
> function body
>       after function declarator
> namespace
> ^
> /sw/lib/qt4-x11/include/QtCore/qnamespace.h:1808:1: error: unknown type name
>       'class'; did you mean 'Class'?
> class Q_CORE_EXPORT QInternal {
> ^~~~~
> Class
> note: 'Class' declared here
> /sw/lib/qt4-x11/include/QtCore/qnamespace.h:1808:20: error: expected ';'
> after
>       top level declarator
> class Q_CORE_EXPORT QInternal {
>                    ^
>                    ;
> 
> Line 54 of qnamespace.h (with some context) has:
> 
> #ifndef Q_MOC_RUN
> namespace
> #else
> class Q_CORE_EXPORT
> #endif
> Qt {
> ...
> 
> and I'm assuming the other errors are due to the failure of this to
> resolve into
> 
> namespace Qt {
> 
> I'm trying a build on 10.6 to see if a cruftier compiler might be more
> tolerant, but that's not going to help 10.7/10.8 users.
> 

It appears that gcc-4.2.1 isn't any happier with this:

In file included from /sw/lib/qt4-mac/include/QtCore/qobjectdefs.h:45,
                 from /sw/lib/qt4-mac/include/QtCore/qobject.h:47,
                 from
/sw/lib/qt4-mac/include/QtCore/qabstractanimation.h:45,
                 from /sw/lib/qt4-mac/include/QtCore/QtCore:3,
                 from qtterminal/qt_term.cpp:44:
/sw/lib/qt4-mac/include/QtCore/qnamespace.h: In function 'QT_MODULE':
/sw/lib/qt4-mac/include/QtCore/qnamespace.h:54: error: expected
declaration specifiers before 'namespace'
...
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to