Re: [LAD] Fwd: Re: basic g++ compiling of faust programs

From: Renato <rennabh@email-addr-hidden>
Date: Sat Feb 04 2012 - 01:23:28 EET

On Fri, 03 Feb 2012 21:34:18 +0100
hermann <brummer-@web.de> wrote:

> Am Freitag, den 03.02.2012, 19:37 +0100 schrieb Renato:
> > On Fri, 03 Feb 2012 15:30:47 +0100
> > hermann <brummer-@web.de> wrote:
> >
> > > Am Freitag, den 03.02.2012, 15:17 +0100 schrieb Renato Budinich:
> > > > Forgot to send to list also:
> > > >
> > > > On Fri, 3 Feb 2012 14:48:37 +0100
> > > > Nick Copeland <nickycopeland@hotmail.com> wrote:
> > > >
> > > > >
> > > > > You probably need something like -I/usr/lib/faust which will
> > > > > give
> > > > you
> > > > > the final path of /usr/lib/faust/gui/FUI.h, you might also
> > > > > want to try -I. if the headerfiles are also in $CWD/gui
> > > > > Either way, I am not certain you would find it with -L/-l
> > > > > (upper/lower case) sinceit
> > > > looks
> > > > > like an include file rather than a library.
> > > > >
> > > >
> > > > ok, it seems it gets past that but I get another error:
> > > >
> > > > $ g++ -I/usr/lib/faust -o simple simple.cpp
> > > > In file included from simple.cpp:48:0:
> > > > /usr/lib/faust/gui/faustqt.h:34:24: fatal error: QApplication:
> > > > No such file or directory
> > > > compilation terminated.
> > > >
> > >
> > > $ locate QApplication
> > > /usr/include/qt4/QtGui/QApplication
> > >
> > > -I/usr/include/qt4/QtGui/
> > >
> >
> > ok, so I ended up with this:
> >
> > $ g++ -I/usr/lib/faust -I/usr/include/QtGui -I/usr/include/QtCore
> > -o simple simple.cpp In file included
> > from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:62:0,
> > from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/algorithm:63,
> > from /usr/include/QtCore/qglobal.h:68,
> > from /usr/include/QtCore/qnamespace.h:45,
> > from /usr/include/QtCore/qobjectdefs.h:45,
> > from /usr/include/QtCore/qobject.h:47,
> > from /usr/include/QtCore/qcoreapplication.h:45,
> > from /usr/include/QtGui/qapplication.h:45,
> > from /usr/include/QtGui/QApplication:1,
> > from /usr/lib/faust/gui/faustqt.h:34, from simple.cpp:48:
> > /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:358:41:
> > error: macro "max" passed 3 arguments, but takes just
> > 2 /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:369:41:
> > error: macro "min" passed 3 arguments, but takes just 2 In file
> > included
> > from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:62:0,
> > from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/algorithm:63,
> > from /usr/include/QtCore/qglobal.h:68,
> > from /usr/include/QtCore/qnamespace.h:45,
> > from /usr/include/QtCore/qobjectdefs.h:45,
> > from /usr/include/QtCore/qobject.h:47,
> > from /usr/include/QtCore/qcoreapplication.h:45,
> > from /usr/include/QtGui/qapplication.h:45,
> > from /usr/include/QtGui/QApplication:1,
> > from /usr/lib/faust/gui/faustqt.h:34, from
> > simple.cpp:48: /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
> > error: expected unqualified-id before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
> > error: expected ‘)’ before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
> > error: expected ‘)’ before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
> > error: expected ‘)’ before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
> > error: expected initializer before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:358:5:
> > error: template declaration of ‘const _Tp&
> > std::max’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
> > error: expected unqualified-id before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
> > error: expected ‘)’ before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
> > error: expected ‘)’ before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
> > error: expected ‘)’ before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
> > error: expected initializer before
> > ‘const’ /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:369:5:
> > error: template declaration of ‘const _Tp& std::min’ In file
> > included
> > from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/algorithm:63:0,
> > from /usr/include/QtCore/qglobal.h:68,
> > from /usr/include/QtCore/qnamespace.h:45,
> > from /usr/include/QtCore/qobjectdefs.h:45,
> > from /usr/include/QtCore/qobject.h:47,
> > from /usr/include/QtCore/qcoreapplication.h:45,
> > from /usr/include/QtGui/qapplication.h:45,
> > from /usr/include/QtGui/QApplication:1,
> > from /usr/lib/faust/gui/faustqt.h:34, from
> > simple.cpp:48: /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:
> > In function ‘void std::__merge_sort_loop(_RandomAccessIterator1,
> > _RandomAccessIterator1, _RandomAccessIterator2,
> > _Distance)’: /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:3285:26:
> > error: expected unqualified-id before ‘(’
> > token /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:
> > In function ‘void std::__merge_sort_loop(_RandomAccessIterator1,
> > _RandomAccessIterator1, _RandomAccessIterator2, _Distance,
> > _Compare)’: /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:3308:26:
> > error: expected unqualified-id before ‘(’ token
> >
> >
> > BTW simple.dsp consists of:
> >
> > process = _,_*2;
> >
> >
>
> try this :
>
> mkdir ./simple
>
> faust -a jack-qt.cpp simple.dsp -o ./simple/simple.dsp.cpp
>
> cd ./simple/
>
> /usr/bin/qmake-qt4 -project "" "INCLUDEPATH+=/usr/lib/faust"
> "INCLUDEPATH+=/usr/lib/faust/gui" "INCLUDEPATH+=/usr/lib/faust/osclib"
> "LIBS+=-ljack " "HEADERS+=/usr/lib/faust/gui/faustqt.h"
>
> /usr/bin/qmake-qt4
>
> make -C .
>
>
>

hmm it seems like I'm getting the same error... BTW I have no
"qmake-qt4" on my Archlinux system, only "qmake" (which belongs to
package qt-4.8.0)

$ make -C .
make: Entering directory `/home/renato/Documents/faust/simple'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I/usr/lib/faust -I/usr/lib/faust/gui -I/usr/lib/faust/osclib -I. -I. -o simple.dsp.o simple.dsp.cpp
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:62:0,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/algorithm:63,
                 from /usr/include/QtCore/qglobal.h:68,
                 from /usr/include/QtCore/qnamespace.h:45,
                 from /usr/include/QtCore/qobjectdefs.h:45,
                 from /usr/include/QtCore/qobject.h:47,
                 from /usr/include/QtCore/qcoreapplication.h:45,
                 from /usr/include/QtGui/qapplication.h:45,
                 from /usr/include/QtGui/QApplication:1,
                 from /usr/lib/faust/gui/faustqt.h:34,
                 from simple.dsp.cpp:48:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:358:41: error: macro "max" passed 3 arguments, but takes just 2
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:369:41: error: macro "min" passed 3 arguments, but takes just 2
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:62:0,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/algorithm:63,
                 from /usr/include/QtCore/qglobal.h:68,
                 from /usr/include/QtCore/qnamespace.h:45,
                 from /usr/include/QtCore/qobjectdefs.h:45,
                 from /usr/include/QtCore/qobject.h:47,
                 from /usr/include/QtCore/qcoreapplication.h:45,
                 from /usr/include/QtGui/qapplication.h:45,
                 from /usr/include/QtGui/QApplication:1,
                 from /usr/lib/faust/gui/faustqt.h:34,
                 from simple.dsp.cpp:48:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5: error: expected unqualified-id before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5: error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5: error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5: error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5: error: expected initializer before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:358:5: error: template declaration of ‘const _Tp& std::max’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5: error: expected unqualified-id before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5: error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5: error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5: error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5: error: expected initializer before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:369:5: error: template declaration of ‘const _Tp& std::min’
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/algorithm:63:0,
                 from /usr/include/QtCore/qglobal.h:68,
                 from /usr/include/QtCore/qnamespace.h:45,
                 from /usr/include/QtCore/qobjectdefs.h:45,
                 from /usr/include/QtCore/qobject.h:47,
                 from /usr/include/QtCore/qcoreapplication.h:45,
                 from /usr/include/QtGui/qapplication.h:45,
                 from /usr/include/QtGui/QApplication:1,
                 from /usr/lib/faust/gui/faustqt.h:34,
                 from simple.dsp.cpp:48:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h: In function ‘void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _Distance)’:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:3285:26: error: expected unqualified-id before ‘(’ token
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h: In function ‘void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _Distance, _Compare)’:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:3308:26: error: expected unqualified-id before ‘(’ token
simple.dsp.cpp: At global scope:
simple.dsp.cpp:78:14: warning: unused parameter ‘m’ [-Wunused-parameter]
simple.dsp.cpp:83:14: warning: unused parameter ‘samplingFreq’ [-Wunused-parameter]
make: *** [simple.dsp.o] Error 1
make: Leaving directory `/home/renato/Documents/faust/simple'
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sat Feb 4 04:15:01 2012

This archive was generated by hypermail 2.1.8 : Sat Feb 04 2012 - 04:15:01 EET