Sunday, February 1, 2009

Tips for Mac users

If you're using a Mac to work on the project, it's easy to get cppunit and doxygen installed using Macports: http://www.macports.org/  (Leopard installer)  It's a package manager like apt-get or yum for Linux, but for OS X.  It also keeps all its changes inside the /opt/local directory, so  you don't have to worry about screwing up your OS X install.

(You've already installed the OS X Developer Tools, right?  Because otherwise you don't have any compiler in the first place.)

You just type 'sudo port selfupdate' to get the list of ports, then type 'sudo port install cppunit' and let it chug away.  It'll take a while, because the developers of macports decided that supplying prebuilt binaries would be too much hassle or something, so you'll have to compile all the dependencies.  I suggest downloading Doxygen from the doxygen site instead of building it because it takes a very long time to compile using macports: ftp link However, the GUI isn't terribly helpful, so the command line version might be better.

After it's done, you should be able to type doxygen to use it.  To include cppunit, you should add 
"-I/opt/local/include -L/opt/local/lib" to your g++ command, like so:

g++ -ansi -pedantic -I/opt/local/include -L/opt/local/lib -lcppunit -ldl -Wall -DTEST main.c++ -o main.app

I also omit the .app extension from the output file, because on OS X that's supposed to be an application and the output from g++ isn't.

Or you could just simply ssh to the CS machines.  But I think it's important to understand how to do things on OS X.

Windows users:  if you want a command line that sucks less than command prompt, use a PuTTY session to the CS machines, or if you want to build locally, a mintty set up with Cygwin.

Aside: we should be using googletest, because it's cooler and doesn't require registering every single test.  It even has 'death tests' that check that a test crashes, and non-fatal assertions.
http://code.google.com/p/googletest/

4 comments:

  1. Baccarat - Live Dealer Casino | Free Baccarat & Casino Games
    Learn 카지노사이트 how to jeetwin play the most popular Baccarat online and read our full tutorial on how to play the game, 바카라사이트 strategies, strategies, and ways to play.

    ReplyDelete
  2. If would possibly be} craving spinning some slots in a casino with an essence of Las Vegas, look no further than Slots of Vegas. This playing website presents casino bonuses for selection of|quite lots of|a big selection of} games, together with slots, keno, and blackjack. They also supply broad range|a variety} of bonuses and promotions, together with welcome 카지노 사이트 bonuses and particular presents for VIP gamers.

    ReplyDelete
  3. According to the researchers, some casino practices could allow even better returns. "If you want to beat the house, look for a wheel for which the ball drops solely from one side of the rim – that's, a crooked table," Small stated in the release. "Prediction turns into considerably simpler and extra reliable." But that did not stop a gaggle of chaos theorists from 우리카지노 making an attempt to beat it anyway.

    ReplyDelete
  4. Remember that you should not|you shouldn't} proceed half in} in a web-based institution with an dependancy. AtBettingGuide.comwe strive to deliver Canadians one of the best of the best. To achieve this we complete extensive research and review every on-line casino totally. We always check to see which methods of communication can be used to achieve customer support representatives. A casino should supply a variety 1xbet of contact methods, from virtual chat to a direct phone line.

    ReplyDelete