Archive for the Platforms Category

Installing Pyglet in Mac OS X

Posted in Development, Platforms, Programming with tags , , , , , on 2012/02/21 by Adam Griffiths

Pyglet is a common requirement for many Python applications, a major one being Cocos2D.

But it doesn’t work out of the box. Running a Pyglet application will result in the following error:

OSError: dlopen(/System/Library/Frameworks/QuickTime.framework/QuickTime, 6): no suitable image found.  Did find:

/System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o, but wrong architecture

/System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o, but wrong architecture

The following are the steps to take to get Pyglet and PyObjc installed on OS-X (tested with 10.7 Lion).

Pyglet 1.1 uses the Carbon framework, but this is not compatible with 64-bit Python installs. The Pyglet 1.2 branch has been modified to use Quartz, but no releases of this branch have seen the light of day (sigh). We must instead install Pyglet from the Mercurial repository.

The Quartz bindings require the use of PyObjc but the latest versions do not work with Pip. The patches to PyObjc’s setup.py that I’ve seen on the internet do not work for me. The following is the only method I’ve had work.

Remove any existing Pyglet install

pip uninstall pyglet

Install Pyglet from the repository

pip install hg+https://pyglet.googlecode.com/hg/

Edit: The following is no longer needed

We need to install PyObjc for the new Pyglet Quartz API. But PyObjc is horribly broken and the latest version does not install with Pip or easy_install.

We must instead install an older version.

pip install pyobjc==2.2

You should now have a working Pyglet installation.

Advertisements

Making .bashrc modular (and awesome)

Posted in How To, Platforms with tags , , on 2012/01/26 by Adam Griffiths

.bashrc files quickly get complex.

Putting them into revision control is handy for persistance, but not always the best for sharing when not everyone has the same environment.

So lets fix that! Continue reading

DLink 323 Ops Manual

Posted in How To, Platforms with tags , , , , , on 2012/01/17 by Adam Griffiths

I’ve created a page with a concise list of instructions for setting up and managing the DLink 323.

I’m considering moving some of the less “blog” style posts into pages to keep them in a single place.

Installing OS-X Snow Leopard in VirtualBox 4.1.8

Posted in Platforms with tags , on 2010/11/27 by Adam Griffiths

Installing OS-X Snow Leopard is reasonably trivial once you have the right guide. There is a lot of mis-information out there regarding the installation process and it’s taken me a long time to find one that works. I used this one and it works perfectly.

The latest versions of VirtualBox have good EFi support and no longer need Hackintosh or bootloader hacks to get OS X installed.

Continue reading

Linux on Netbooks

Posted in Platforms with tags , , , , on 2010/11/19 by Adam Griffiths

Getting Linux setup on my Netbook has been so incredibly frustrating. I installed Ubuntu at least 4 times. Each time believing I had gotten the install correct, only to find that when I went roaming it would freeze.

Continue reading

Installing Ubuntu on a Samsung N145 (and possibly others)

Posted in Platforms with tags , , , , , , on 2010/11/16 by Adam Griffiths

There are a few issues out-of-the-box with Ubuntu (and possibly other distros) on Samsung laptops and netbooks. Specifically:

  • Pressing the brightness function keys causes the keyboard to lock
  • The brightness keys don’t change the brightness.
  • Resuming from suspend hangs the computer with a black / blank screen.
  • Wireless does not work properly after resuming from suspend.

There are also non-Samsung related problems with Ubuntu and Unity:

  • Vi inserts A, B, C, D characters in insert mode when using the arrow keys.
  • Eclipse and Lyx menus don’t display in Unity (and other applications).

This guide is specifically for Ubuntu 10.10 and the Samsung N145 netbook, but the information will be applicable to other distros and Samsung laptops and netbooks.

If this page doesn’t resolve your issues, check the comments as other users have experienced other issues and found further work-arounds for them.

A comment on installing Debian on the N145.

A post on installing Debian on Atom based computers.

Last updated: 2011/01/09

Continue reading

This is why we can’t have nice things…

Posted in Platforms, Rant with tags , , , , , , on 2010/11/15 by Adam Griffiths

So my Ubuntu Netbook Remix 10.10 install lasted me less than a single day, and now I have the choice of trying again and hoping, or trying out the other netbook distros.

But wait… let me re-wind there.

Continue reading

%d bloggers like this: