Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] GBS 9

Date2005-03-06 20:47
FromVictor Lazzarini
SubjectRe: [Cs-dev] GBS 9
I ran the script with FLTK_CONFIGURE set and managed
to get my fltk installation to be detected. However
this has troubled me:

checking for Fl::lock... no

I have built and installed fltk with enable-threads and
I've just checked, Fl_lock.cpp was compiled (its object
file was there in the src directory). In fact, I have
built csound5 here and it needs FL::lock, so it is
there. Would you know why it hasn't been detected?

Victor

> 
> The commands in the enclosed note use Bourne Shell 
syntax.
>  If you use a C Shell, enter a shell that uses the correct
> syntax with /bin/bash.
> 
> John
> 
> ramsdell@mitre.org (John D. Ramsdell) writes:
> 
> > Victor Lazzarini  writes:
> > 
> > > I don't know then. Anyway, it's fixable manually.
> > 
> > Yeah, but the whole point of a GBS distribution is it
> > should not need manual intervention on reasonably
> > configured machines.  For me, "fixable manually" means
> > that the GBS distribution is failing at its mission, and
> > its constructors need repair.  Maybe there is some
> operating system version problem I should know about.  I
> > have enclosed the result of uname.  Does this tell you
> > which version of MacOS X I'm using, and how it compares
> > with yours? 
> > $ ssh chauvin
> > ramsdell@chauvin's password:
> > 
> > Last login: Sat Mar  5 21:50:04 2005 from 129.83.10.75
> > Welcome to Darwin!
> > chauvin:~ ramsdell$ uname -a
> > Darwin chauvin.mitre.org 7.7.0 Darwin Kernel Version
> 7.7.0: Sun Nov  7 16:06:51 PST 2004;
> root:xnu/xnu-517.9.5.obj~1/RELEASE_PPC  Power 
Macintosh
> > powerpc chauvin:~ ramsdell$ exit
> > logout
> > Connection to chauvin closed.
> > $ 
> > 
> > By the way, did you ever find the fltk-config script on
> > your machine? The machine I used did not have FLTK
> > installed, so I installed it after configuring it with:
> > 
> > $ ./configure --enable-threads --prefix=$HOME
> > 
> > and then installed Csound after configuring it with:
> > 
> > $ PATH=$HOME/bin:$PATH ./configure --prefix=$HOME
> > 
> > I tested the X11 installation with:
> > 
> > $ ./configure --prefix=$HOME
> > 
> > The current version of the GBS distribution of Csound
> > supposedly can load plugins.  To enable plugins, you
> > must enabled shared libraries, so configure it with:
> > 
> > $ PATH=$HOME/bin:$PATH ./configure --prefix=$HOME
> > --enable-shared 
> > Plugin support has not been tested by me.
> > 
> > In case your wondering, the GBS configure script figures
> > out if FLTK is built on top of X11 by attempting to link
> > programs using the libraries returned from the
> > fltk-config script.  You have to let fltk-config tell
> > you this fact for correct results. 
> > John
> > 
> > > > ramsdell@mitre.org (John D. Ramsdell) writes:
> > > > 
> > > > > Victor Lazzarini 
> > > > > writes: 
> > > > > > ... but the configure script picked up, quite
> > > > > > rightly that I have X11 installed, so ...
> > > > > > 
> > > > > > The script should have include -lX11 in the
> > > > > > makefiles, in the macro definition for the libs,
> > > > just after '-framework carbon'.
> > > > 
> > > > Victor,
> > > > 
> > > > I just got remote access to a MacOS X machine, but
> > > > did not have any problem using the distribution to
> > > > build an X11 enabled version of Csound.  There were
> > > > no linking errors.  Given that I cannot duplicate
> > > > the error, I'm not sure where to go from here.
> > > > 
> > > > John
> > > > 
> > > > > Well this failure is not of my doing.  The
> > > > > configure.ac script uses the AC_PATH_X macro to
> > > > > figure out libraries needed by X11, and apparently
> > > > > the version of that macro I'm using on Linux to
> > > > > build the distribution does not correctly handle
> > > > > X11 on MacOS X.  I'll try to trace this failure
> > > > > down, as it must be causing a lot of other people
> > > > > > problems.  Thanks for the bug report.  I suppose
> > > > > > it hasn't done it because somewhere in the
> > > > > > script, in the OSX platform bits, it is missing
> > > > > > whatever code or directive it needs to do so. It
> might be just the case of comparing the script bits for
> > > > > > the Linux and OSX platforms. 
> > > > > > Victor
> > > > > > 
> > > > > > At 02:51 23/02/2005, you wrote:
> > > > > > >With Cygwin on Windows, one can use FLTK 
built
> > > on  top
> > > > > > of X11, but one >usually uses FLTK built on top
> > > > > > of the native Windows library. >Similarly, on a
> > > > > > Mac, I expect most people will build Csound 
GBS
> > > > > > with >an FLTK that uses the native window 
system
> > > > , and not with X11. >However, I'm interested in the
> > > > > > bug report because there is no reason >one
> > > > > > should not be able to build the system with X11
> > > > > > whenever it is >available. 
> > > > > > Victor Lazzarini
> > > > > > Music Technology Laboratory
> > > > > > Music Department
> > > > > > National University of Ireland, Maynooth
> > > > > >
> > > > > >
> > > >
> > > > > >
> ------------------------------------------------------- SF
> > > > email is sponsored by - The IT Product Guide Read
> > > > > > honest & candid reviews on hundreds of IT
> Products from real users. Discover which products truly
> > > > > > live up to the hype. Start reading now.
> > > > > >
> > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&
op=
> > > click
> > > > > > 
> > > 
_______________________________________________
> > > > > > Csound-devel mailing list
> > > > > > Csound-devel@lists.sourceforge.net
> > > > >
> > > > >
> > > >
> > > > >
> https://lists.sourceforge.net/lists/listinfo/csound-devel 
> > > > >
> ------------------------------------------------------- SF
> > > > > email is sponsored by - The IT Product Guide Read
> > > > > honest & candid reviews on hundreds of IT 
Products
> > > > > from real users. Discover which products truly
> > > > > live up to the hype. Start reading now.
> > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&
op=
> > > > > click 
> > > 
_______________________________________________
> > > > > Csound-devel mailing list
> > > > > Csound-devel@lists.sourceforge.net
> > > >
> > > >
> > > >
> https://lists.sourceforge.net/lists/listinfo/csound-devel 
> > > >
> > > >
> ------------------------------------------------------- SF
> > > > email is sponsored by - The IT Product Guide Read
> > > > honest & candid reviews on hundreds of IT Products
> > > > from real users. Discover which products truly live
> > > > up to the hype. Start reading now.
> > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&
op=
> > > > click
> > > > 
_______________________________________________
> > > > Csound-devel mailing list
> > > > Csound-devel@lists.sourceforge.net
> > >
> > >
> https://lists.sourceforge.net/lists/listinfo/csound-devel 
> > >
> > >
> ------------------------------------------------------- SF
> > > email is sponsored by - The IT Product Guide Read
> honest & candid reviews on hundreds of IT Products from
> > > real users. Discover which products truly live up to
> > > the hype. Start reading now.
> > >
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=
click
> > > 
_______________________________________________
> > > Csound-devel mailing list
> > > Csound-devel@lists.sourceforge.net
> >
> >
> https://lists.sourceforge.net/lists/listinfo/csound-devel 
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products
> > from real users. Discover which products truly live up
> > to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=
click
> > 
_______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products
> from real users. Discover which products truly live up to
> the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=
click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-06 21:48
Fromramsdell@mitre.org (John D. Ramsdell)
SubjectRe: [Cs-dev] GBS 9
Victor Lazzarini  writes:

> checking for Fl::lock... no
> 
> I have built and installed fltk with enable-threads ...

Victor,

This must be my problem.  Please send me your config.log file.  It
should tell me why it cannot find Fl::lock.  The code that makes the
check is enclosed, along with the config.log output generated on my
Mac machine.

Also, please run the following commands:

$ fltk-config --cxxflags
-I/home/ramsdell/include
$ fltk-config --ldflags
-L/home/ramsdell/lib -lfltk -lpthread -framework Carbon -framework ApplicationServices -lsupc++
$ 

Thanks for your help,

John

----------- test program (C++) ---------------
#include 
int main(int argc, char **argv) { Fl::lock(); return 0; }
----------- test program (C++) ---------------

----------- configure.ac ---------------
if test "x$USE_FLTK" = xyes; then
  LIBS="`$FLTK_CONFIG --ldflags` -lstdc++ $LIBS" 
  AC_LANG_PUSH(C++)
  AC_MSG_CHECKING([for Fl::lock])
  AC_LINK_IFELSE(
[#include 
int main(int argc, char **argv) { Fl::lock(); return 0; }], 
fl_lock=yes,
fl_lock=no)
  AC_MSG_RESULT([$fl_lock])
  if test "x$fl_lock" = xyes; then
    AC_DEFINE(HAVE_FL__LOCK, 1, [Define when FLTK has multithreading support])
  fi
  AC_LANG_POP(C++)
fi
----------- configure.ac ---------------

----------- config.log ---------------
configure:21360: checking for Fl::lock
configure:21367: g++ -o conftest -g -O2 -Wall -I/home/ramsdell/include   conftest.cc -L/home/ramsdell/lib -lfltk -lpthread -framework Carbon -framework ApplicationServices -lsupc++ -lstdc++ -lpthread  -framework CoreAudio >&5
configure:21373: $? = 0
configure:21377: test -z 
			 || test ! -s conftest.err
configure:21380: $? = 0
configure:21383: test -s conftest
configure:21386: $? = 0
configure:21397: result: yes
----------- config.log ---------------


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-06 22:08
Fromramsdell@mitre.org (John D. Ramsdell)
SubjectRe: [Cs-dev] GBS 9
ramsdell@mitre.org (John D. Ramsdell) writes:

> Victor Lazzarini  writes:
> 
> > checking for Fl::lock... no
> > 
> > I have built and installed fltk with enable-threads ...

Victor,

One more thing.  The way to be sure your FLTK has thread support is
by looking at the result of the following g++ command.

$ fltkbin=
$ cat lock.cc 
#include 
int main(int argc, char **argv) { Fl::lock(); return 0; }
$ g++ `$fltkbin/fltk-config --cxxflags` `$fltkbin/fltk-config --ldflags` lock.cc 

John


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net