21 June 2012

Compiling in Emacs (MacOSX 10.6)

when compiling gtkmm (installed with MacPorts) in emacs, command not found message appeared.
solution:
in ~/.emacs
;;; A quick & ugly PATH solution to Emacs on Mac OSX
(if (string-equal "darwin" (symbol-name system-type))
  (setenv "PATH" (concat "/opt/local/bin:/opt/local/sbin:" (getenv "PATH"))))
restart emacs

source

11 June 2012

pybotwar 0.7

must use pygame 1.9.1
I uses 64 bit install
SDL framework from Xcode build, make sure it's for MacOSX 10.6, uses Standard DMG, and x86_64, copy SDL.framework at build/Release/ to /Library/Frameworks
SDL_* frameworks from http://www.libsdl.org/
smpeg, universal means 32 bit and 64 bit both installed
sudo port install smpeg +universal
source

ld: framework not found SDL
problem is:
/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/Frameworks -> /Library/Frameworks
so:
cd /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/
ln -s Frameworks/*.framework .

source

06 June 2012

pybotwar

to work in ubuntu karmic 9.10

versions:
pybotwar-0.7
pybox2d-2.0.2b2
python 2.6.4

download http://code.google.com/p/pybox2d/downloads/list
unzip pybox2d-2.0.2b2.zip
cd Box2D-2.0.2b2
sudo python setup.py install

download http://code.google.com/p/pybotwar/downloads/list
change in world.py to work with Box2D-2.0.2b2
self.turretjoint = w.CreateJoint(jointDef)#.getAsType()

run game
cd pybotwar
python main.py