[Coin-discuss] FreeBSD Compatibility
Matthew Saltzman
mjs at ces.clemson.edu
Sun Nov 2 09:16:58 EST 2003
On Sun, 2 Nov 2003, Laszlo Ladanyi wrote:
> Hi Joseph,
>
> Good work! I'll add the changes, just you have to fill out the mini-coo...
> I have posted it a few weeks ago, but I can send it again if you need it.
>
> I have two questions:
>
> 1) why does sys/time.h need to be included in OsiClpSolverInterface.cpp? It
> now uses CoinTime.hpp to do any time measurement.
At this point, the CLP SI is the only one using CoinTime.h. I've patched
CoinTime.h to include sys/time.h for FreeBSD as well as OS-X.
> 2) There is no need to change Osi/OsiGlpk/Makefile. The location of glpk
> should be specified in Makefiles/Makefile.location
>
> Thanks,
> --Laci
>
> On Sat, 1 Nov 2003, Joseph Young wrote:
>
> > Although this was originally discussed back in April, it appears
> > as though there's still no formal FreeBSD support. How can we get this
> > added formally to the release?
> >
> > I've compiled Bcp, Clp, Coin, Cgl, Osi, OsiClp, and OsiGlpk under
> > FreeBSD 5.1 Release on the i386 platform. In order to make it work, I
> > needed to make the following additions and changes. Note, these differ
> > from those originally posted by js in April.
> >
> > Makefile util: gmake
> > Note: Did not work under make
> >
> > In file: Osi/OsiClp/OsiClpSolverInterface.cpp
> > Added: #include<sys/time.h>
> >
> > In file: Coin/include/CoinFinite.hpp
> > Added: #if defined(__FreeBSD__)
> > extern "C" {
> > int finite(double);
> > int isnan(double);
> > }
> > # define CoinFinite finite
> > # define CoinIsnan isnan
> > #endif
> >
> > In file: Makefiles/Makefile.FreeBSD
> > Copied From: Makefiles/Makefile.Linux
> > Changed: FF := f77
> > DEPFF := f77 -MM
> >
> > In file: Osi/OsiGlpk/Makefile
> > Added: CXXFLAGS += -I/usr/local/include
> > Note: As far as I can tell, /usr/local/ is not included in the
> > search path for gcc. So, since the port for glpk installs to /usr/local,
> > this line is needed AFTER include ${MakefileDir}/Makefile.coin
> >
> > In file: Bcp/include/BCP_os.hpp
> > Added: #if (defined(__GNUC__) && defined(__FreeBSD__))
> > # include "BCP_freebsd.hpp"
> > #endif
> >
> > In file: Bcp/include/BCP_freebsd.hpp
> > Copied From: Bcp/include/BCP_linux.hpp
> > Edited: #ifndef _BCP_FREEBSD
> > #define _BCP_FREEBSD
> > Added: #include <sys/time.h>
> >
> > In file: include/CoinTime.hpp
> > Added: #include <sys/time.h>
> >
> > Sinc, Joseph Young
> >
> > _______________________________________________
> > Coin-discuss mailing list
> > Coin-discuss at www-124.ibm.com
> > http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
> >
>
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at www-124.ibm.com
> http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
>
--
Matthew Saltzman
Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs
More information about the Coin-discuss
mailing list