My favorites | Sign in
Project Logo
                
Search
for
Updated Oct 31, 2008 by thomasoa
Labels: Phase-Deploy
BuildingNotes  
Building from the Google Code

Building from the Google Code

My primary build computers are Macintoshes, so the Makefile is somewhat Mac-centric. You will have to figure out how to change the Makefile yourself for Linux builds.

Building on OS X

You need the Apple Developer Tools installed.

After checking out the code, just create an empty file, "Make.dep" in the top directory and then run 'make.' It should just work.

Building on Ubuntu

You will need 'g++' and 'tcl-dev' packages installed.

$ sudo apt-get install tcl8.5-dev
$ sudo apt-get install g++

Edit the Makefile so that it includes Make.ubuntu file.

Create an empty file, Make.dep.

If you installed another version of Tcl (say, 8.3) change the line in Make.ubuntu to read:

TCL_VERSION=8.3

Building on Windows

You are on your own here, sorry.


Comment by CounsellorJFF, Apr 29, 2009

i ahve apple tools installed + Deal installed I have created a new file "Make.dep"

Now what how do I run "make" ? Many thanks for your help

Paul

Comment by Jerry.Wilcox, Jul 02, 2009

I'm trying to install Deal 317 on my iBookG4 (PPC) running OSX 10.5.7.

I first tried the .dmg file, but running Deal from that gives me the following error:

-bash: ./deal: Bad CPU type in executable

Downloaded the source and tried to build it per your instructions. Created empty Makefile.dep, then ran make. Got the following error:

g++ -g -ansi -Wall -O2 -I/usr/include/tcl8.5  random.o additive.o hand.o deal.o formats.o tcl_deal.o maindeal.o stat.o counttable.o vector.o dist.o stringbox.o dealtypes.o keywords.o holdings.o tcl_dds.o dds.o ddsLookup.o   -o deal -L/usr/lib -ltcl8.5 -lm
ld: library not found for -ltcl8.5
collect2: ld returned 1 exit status
make: *** [deal] Error 1

I have current tools, so I took a look at the Makefile. Found the following lines:

#include Make.mac-osx
include Make.ubuntu

Uncommented include for mac-osx and commented out the include for ubuntu. Did 'make clean', then ran make again. This time with the following results:

g++ -fast -ansi -Wall  -I/usr/local/include  random.o additive.o hand.o deal.o formats.o tcl_deal.o maindeal.o stat.o counttable.o vector.o dist.o stringbox.o dealtypes.o keywords.o holdings.o tcl_dds.o dds.o ddsLookup.o   -o deal -L/usr/lib -ltcl -lm
Undefined symbols:
  "_counttable", referenced from:
      _counttable$non_lazy_ptr in hand.o
      _counttable$non_lazy_ptr in deal.o
      _counttable$non_lazy_ptr in dist.o
      _counttable$non_lazy_ptr in dealtypes.o
      _counttable$non_lazy_ptr in holdings.o
      _counttable$non_lazy_ptr in tcl_dds.o
      _counttable$non_lazy_ptr in dds.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [deal] Error 1

I'm now at a loss as to what to do next. Any help would be appreciated.

Jerry


Sign in to add a comment
Hosted by Google Code