Reputation: 20564
Is there anyway to execute/run unix/linux executable on a mac (10.6)? Specifically, i'm trying to run this:
http://www.cs.ubc.ca/~kevinlb/CATS/
I have Xcode SDK/gcc/g++, but the source provided on this website is not compiling/executing on my mac (os x 10.6). That's where i need help.
Thanking in anticipation.
Edit: "make -j16" produces following results:
Upvotes: 0
Views: 1274
Reputation: 141790
I've just compiled this on my Mac.
wget http://www.cs.ubc.ca/~kevinlb/CATS/CATS20source.tgz
tar zxvf CATS20source.tgz
In lp_solve_4.0/lpglob.h
I had to change the declaration of extern size_t yyleng;
(was int
).
make -j16
And then...
./cats -help | head
CATS v2.1 (http://robotics.stanford.edu/CATS)
Kevin Leyton-Brown, Mark Pearson, Galen Andrew, Yoav Shoham; Stanford University
=================================================================================
What follows are the general parameters for CATS.
To see parameters for a specific distribution, select a distribution with -help
Required Parameters (no default values):
-d [no default]: selects a distribution. Valid options (without quotes) are:
"arbitrary"; "arbitrary-npv"; "arbitrary-upv"; "matching"; "paths"; "regions";
This was with GCC v4.0.1.
To build with GCC v4.2.1, I had to add:
#include <assert.h>
... to Legacy.cpp
, Param.cpp
and featureCalc.cpp
, to fix compilation errors.
There are also a load of warnings that should be fixed and a patch sent to the maintainer.
Upvotes: 2
Reputation: 698
Of course : Mac OS X is an Unix system. You need to install XCode SDK that contains (in many other things) GCC 4.2 and make. After that, if you need a more complete Unix environment, you can look at MacPorts.
Upvotes: 0
Reputation: 4026
Yes, just download the source tar/zip and run make
in the source directory. This assumes you have a C++ compiler and make installed.
Upvotes: 0