Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:3765] csound4 gnu build system

Date2003-12-15 16:16
FromAntoine Lefebvre
Subject[CSOUND-DEV:3765] csound4 gnu build system
AttachmentsNone  

Date2003-12-15 16:52
Fromramsdell@mitre.org (John D. Ramsdell)
Subject[CSOUND-DEV:3766] Re: csound4 gnu build system
Antoine Lefebvre  writes:

> Hi csound developpers. I am actually testing the compilation of
> csound4 using the GNU build systems under windows and linux. I will
> also test SunOS and IRIX. It appear to be working under windows but
> there is still some errors with Linux.

Thank you for engaging in testing.  Please tell me what version of
Linux you are using.  I'm using RedHat 9.0, with autoconf 2.57, and
automake 1.6.3.  For the purposes of building a distribution, I really
want to require the use of a modern version of automake so that Python
language support is available.  I'm sure CsoundVST users will want
Python support.

Are you a Windows expert?  I'd really appreciate help debugging shared
libraries on Windows.  Try configuring with --enable-shared, and see
if you can fix the problem with generating DLLs.

John

> Here is the output of autoreconf -i
> 
> automake: configure.ac: installing `./install-sh'
> automake: configure.ac: installing `./mkinstalldirs'
> automake: configure.ac: installing `./missing'
> automake: Makefile.am: installing `./INSTALL'
> configure.ac: 9: required file `./[csound/config.h].in' not found
> configure.ac: 9: required file `./[csound/stamp-h.in' not found
> csound/Makefile.am:24: HAVE_FLTK does not appear in AM_CONDITIONAL
> csound/Makefile.am:29: HAVE_X11 does not appear in AM_CONDITIONAL
> csound/Makefile.am:35: HAVE_WIN32 does not appear in AM_CONDITIONAL
> csound/Makefile.am:40: variable `fltkobjs' not defined
> csound/Makefile.am:40: variable `x11objs' not defined
> csound/Makefile.am:40: variable `win32objs' not defined
> csound/Makefile.am:10: invalid variable `nodist_pkginclude_HEADERS'
> autoreconf: automake failed with exit status: 1
> 
> 
> In order to fix those problems, i did the following modification to
> configure.ac
> 
> diff -r1.29 configure.ac
> 8,9c8,9
> < AC_CONFIG_SRCDIR([csound/ccsound.c])
> < AM_CONFIG_HEADER([csound/config.h])
> ---
> > AC_CONFIG_SRCDIR(csound/ccsound.c)
> > AM_CONFIG_HEADER(csound/config.h)
> 212c212
> < AM_CONDITIONAL([HAVE_FLTK], [test "x$USE_FLTK" = xyes])
> ---
> > AM_CONDITIONAL(HAVE_FLTK, [test "x$USE_FLTK" = xyes])
> 214c214
> < AM_CONDITIONAL([HAVE_X11], [test "x$USE_X11" = xyes])
> ---
> > AM_CONDITIONAL(HAVE_X11, [test "x$USE_X11" = xyes])
> 216c216
> < AM_CONDITIONAL([HAVE_WIN32], [test "x$USE_WIN32" = xyes])
> ---
> > AM_CONDITIONAL(HAVE_WIN32, [test "x$USE_WIN32" = xyes])
> 
> 
> And i also did the following modification to csound/Makefile.am because the
> space are not allowed as a separator in the Makefile
> 
> retrieving revision 1.12
> diff -r1.12 Makefile.am
> 10c10
> < nodist_pkginclude_HEADERS = config.h
> ---
> > #nodist_pkginclude_HEADERS = config.h
> 25c25
> <   fltkobjs = winFLTK.lo FL_graph.lo widgets.lo
> ---
> > fltkobjs = winFLTK.lo FL_graph.lo widgets.lo
> 27c27
> <   fltkobjs =
> ---
> > fltkobjs =
> 30c30
> <   x11objs = winX11.lo
> ---
> > x11objs = winX11.lo
> 32c32
> <   x11objs =
> ---
> > x11objs =
> 36c36
> <   win32objs = wincwin.lo cwin.lo
> ---
> > win32objs = wincwin.lo cwin.lo
> 38c38
> <   win32objs =
> ---
> > win32objs =
> 114c114
> <   aufltkobjs = winFLTK.$(OBJEXT) FL_graph.$(OBJEXT) widgets.$(OBJEXT)
> ---
> > aufltkobjs = winFLTK.$(OBJEXT) FL_graph.$(OBJEXT) widgets.$(OBJEXT)
> 116c116
> <   aufltkobjs =
> ---
> > aufltkobjs =
> 119c119
> <   aux11objs = winX11.$(OBJEXT)
> ---
> > aux11objs = winX11.$(OBJEXT)
> 121c121
> <   aux11objs =
> ---
> > aux11objs =
> 125c125
> <   auwin32objs = wincwin.$(OBJEXT) cwin.$(OBJEXT)
> ---
> > auwin32objs = wincwin.$(OBJEXT) cwin.$(OBJEXT)
> 127c127
> <   auwin32objs =
> ---
> > auwin32objs =
> 
> 
> I also did test those change back in windows and it is still working.
> 
> Thank you
> 
> -- 
> Antoine Lefebvre
> antoine.lefebvre@polymtl.ca