[Coin-discuss] FreeBSD Compatibility
Joseph Young
josyoun at nmt.edu
Sun Nov 2 00:48:06 EST 2003
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
More information about the Coin-discuss
mailing list