[Coin-discuss] FreeBSD Compatibility
Laszlo Ladanyi
ladanyi at us.ibm.com
Sun Nov 2 01:35:11 EST 2003
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.
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
>
More information about the Coin-discuss
mailing list