| Thanks to Steven Yi and John Ramsdell for improving the autotools build.
Things are much better, but there are still problems.
If I run autoconf -i;configure --with-cygwin=no;with-x=no;./configure;make I
build all executables successfully. I can probably use this build.
If I run autoconf -i;configure --with-cygwin=no;configure;make then I get
the following indicating that the FLTK include directory is not properly
configured (though FLTK is installed and the headers are in
/usr/include/FL):
Configuration Summary
----------------------
Real-Time Audio Support: rtwin32.o
Windowing Support: FLTK
Audio Formats suported: WAV AIFF IRCAM
Making all in csound
make[1]: Entering directory `/cygdrive/c/cvs/cvsroot/csound/csound'
make all-am
make[2]: Entering directory `/cygdrive/c/cvs/cvsroot/csound/csound'
if
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -mwindows -DWIN32 -mno-cygw
i
n -MT FL_graph.o -MD -MP -MF ".deps/FL_graph.Tpo" \
-c -o FL_graph.o `test -f 'FL_graph.cpp' || echo './'`FL_graph.cpp; \
then mv -f ".deps/FL_graph.Tpo" ".deps/FL_graph.Po"; \
else rm -f ".deps/FL_graph.Tpo"; exit 1; \
fi
FL_graph.cpp:25:19: FL/Fl.H: No such file or directory
FL_graph.cpp:26:26: FL/Fl_Window.H: No such file or directory
FL_graph.cpp:27:24: FL/fl_draw.H: No such file or directory
FL_graph.cpp:28:26: FL/Fl_Choice.H: No such file or directory
FL_graph.cpp:29:26: FL/Fl_Button.H: No such file or directory
FL_graph.cpp:45: error: syntax error before `*' token
FL_graph.cpp:46: error: syntax error before `*' token
FL_graph.cpp:47: error: syntax error before `*' token
FL_graph.cpp:49: error: syntax error before `[' token
FL_graph.cpp:82: error: syntax error before `{' token
FL_graph.cpp:87: error: syntax error before `int'
FL_graph.cpp:90: error: syntax error before `}' token
FL_graph.cpp:90: error: ISO C++ forbids declaration of `graph' with no type
FL_graph.cpp:93: error: invalid use of undefined type `class graph_box'
FL_graph.cpp:82: error: forward declaration of `class graph_box'
FL_graph.cpp: In member function `void graph_box::draw()':
FL_graph.cpp:94: error: `Fl_Window' undeclared (first use this function)
FL_graph.cpp:94: error: (Each undeclared identifier is reported only once
for
each function it appears in.)
FL_graph.cpp:94: error: syntax error before `::' token
FL_graph.cpp:95: error: `fl_color' undeclared (first use this function)
FL_graph.cpp:96: error: `FL_SOLID' undeclared (first use this function)
FL_graph.cpp:96: error: `fl_line_style' undeclared (first use this function)
FL_graph.cpp:97: error: `w' undeclared (first use this function)
FL_graph.cpp:97: error: `h' undeclared (first use this function)
FL_graph.cpp:97: error: `fl_rect' undeclared (first use this function)
FL_graph.cpp:98: error: `curr' undeclared (first use this function)
FL_graph.cpp:99: error: `menu' undeclared (first use this function)
FL_graph.cpp:137: error: `fl_begin_line' undeclared (first use this
function)
FL_graph.cpp:163: error: `fl_vertex' undeclared (first use this function)
FL_graph.cpp:166: error: `fl_end_line' undeclared (first use this function)
FL_graph.cpp:170: error: `fl_line' undeclared (first use this function)
FL_graph.cpp:173: error: `FL_DOT' undeclared (first use this function)
FL_graph.cpp:177: error: `form' undeclared (first use this function)
FL_graph.cpp:104: warning: unused variable `short int win_w'
FL_graph.cpp: In function `void add_graph(WINDAT*)':
FL_graph.cpp:199: error: request for member `last' in `*graph', which is of
non-class type `int'
FL_graph.cpp:200: error: request for member `last' in `*graph', which is of
non-class type `int'
FL_graph.cpp:201: error: request for member `last' in `*graph', which is of
non-class type `int'
FL_graph.cpp:214: error: request for member `curr' in `*graph', which is of
non-class type `int'
FL_graph.cpp:215: error: `choice' undeclared (first use this function)
FL_graph.cpp:216: error: request for member `redraw' in `*graph', which is
of
non-aggregate type `int'
FL_graph.cpp: At global scope:
FL_graph.cpp:220: error: `Fl_Widget' was not declared in this scope
FL_graph.cpp:220: error: syntax error before `,' token
FL_graph.cpp: In function `void do_redraw(...)':
FL_graph.cpp:222: error: request for member `curr' in `*graph', which is of
non-class type `int'
FL_graph.cpp:223: error: request for member `redraw' in `*graph', which is
of
non-aggregate type `int'
FL_graph.cpp: In function `void makeWindow(char*)':
FL_graph.cpp:229: error: syntax error before `(' token
FL_graph.cpp:230: error: syntax error before `(' token
FL_graph.cpp:233: error: `Fl_Callback' undeclared (first use this function)
FL_graph.cpp:233: error: syntax error before `)' token
FL_graph.cpp:234: error: invalid use of undefined type `class graph_box'
FL_graph.cpp:82: error: forward declaration of `class graph_box'
FL_graph.cpp:235: error: request for member `curr' in `*graph', which is of
non-class type `int'
FL_graph.cpp:236: error: request for member `last' in `*graph', which is of
non-class type `int'
FL_graph.cpp:237: error: request for member `end' in `*graph', which is of
non-aggregate type `int'
FL_graph.cpp:238: error: `end' undeclared (first use this function)
FL_graph.cpp:238: error: syntax error before `(' token
FL_graph.cpp: In function `void DrawGraph_(WINDAT*)':
FL_graph.cpp:259: error: `Fl' undeclared (first use this function)
FL_graph.cpp:259: error: syntax error before `::' token
FL_graph.cpp: In function `long int MakeWindow(char*)':
FL_graph.cpp:264: warning: unused variable `long int m'
FL_graph.cpp: In function `int POLL_EVENTS()':
FL_graph.cpp:274: error: syntax error before `::' token
FL_graph.cpp: In function `int myFLwait()':
FL_graph.cpp:291: error: syntax error before `::' token
FL_graph.cpp: In function `void MakeXYin_(XYINDAT*, float, float)':
FL_graph.cpp:301: error: `xyin' undeclared (first use this function)
FL_graph.cpp:301: error: syntax error before `(' token
FL_graph.cpp:312: error: `fl_color' undeclared (first use this function)
FL_graph.cpp:313: error: `fl_line_style' undeclared (first use this
function)
FL_graph.cpp:314: error: `fl_line' undeclared (first use this function)
FL_graph.cpp: In function `void ReadXYin_(XYINDAT*)':
FL_graph.cpp:326: error: `xwin' undeclared (first use this function)
FL_graph.cpp:326: error: syntax error before `)' token
FL_graph.cpp:329: error: syntax error before `::' token
FL_graph.cpp:330: error: syntax error before `::' token
FL_graph.cpp:346: error: `FL_BACKGROUND_COLOR' undeclared (first use this
function)
FL_graph.cpp:346: error: `fl_color' undeclared (first use this function)
FL_graph.cpp:347: error: `fl_line_style' undeclared (first use this
function)
FL_graph.cpp:348: error: `fl_line' undeclared (first use this function)
FL_graph.cpp: In function `void KillXYin_(XYINDAT*)':
FL_graph.cpp:363: error: `x' undeclared (first use this function)
FL_graph.cpp:363: error: syntax error before `)' token
make[2]: *** [FL_graph.o] Error 1
make[2]: Leaving directory `/cygdrive/c/cvs/cvsroot/csound/csound'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/c/cvs/cvsroot/csound/csound'
make: *** [all-recursive] Error 1
If I run
autoconf -i;configure --with-cygwin-no;--with-fltk=no;./configure;make then
I get:
============================================
Michael Gogins
gogins at pipeline period com
Irreducible Productions
CsoundVST, an extended version of Csound for programming music and sound
Available at http://sourceforge.net/projects/csound/
============================================
----- Original Message -----
From: "John D. Ramsdell"
To: "Csound Developers Discussion List"
Sent: Monday, December 08, 2003 5:39 PM
Subject: [CSOUND-DEV:3729] Re: csound4 - configure.ac, main.c
> steven writes:
>
> > Almost. But it's an unrelated error:
> >
> > libcsound.a(winFLTK.o)(.text+0x11): In function `Graphable_':
> > /cygdrive/f/eclipse/workspace/csound4/csound/winFLTK.c:44: undefined
> > reference t
> > o `_XOpenDisplay'
>
> This is the problem I reported with the subject line with winFLTK.c in
> it. I looked in the FLTK documentation, and I did not see any FLTK
> only way to ask if a FLTK display is available. I'm stumped.
>
> I hacked Graphable_ so it simply returns 1, and linking succeeds, but
> csound.exe exits immediately when invoked. I did not try running it
> under gdb. If Cygwin has strace, maybe that will help too.
>
> But the good news is, the configure.ac script if fixed again for
> Cgywin CVS users. Thanks again. I was so worried.
>
> John
> |