Installing on Linux HOWTO
| TOC: | A) Automatic Install Scripts B) Manual Installation 1. Extracting the archive 2. Installing dependencies 3. Fixing library issues 4. Installing a launch script [optional] 5. Installing an icon and application menu entry [optional] C) Troubleshooting 1. Problems & solutions 2. Removing libraries shipped with the game
|
In theory, Crayon Physics Deluxe for Linux doesn't need to be "installed", you can just extract the
crayon_release55_3.tar.gz archive anywhere you like,
cd to the extracted
CrayonPhysicsDeluxe/ directory in a terminal, and run
./launcher to start the game.
However, depending on your existing system, you may have to install a few additional dependencies and fix some library issues to get it to run.
Also, you might prefer to "properly" install it into your system directories and also install a launch script, icon and application menu entry.
A) Automatic Install ScriptsArch Linux| | The Arch User Repository (AUR) contains a package named crayonphysicsdeluxe which allows you to easily install Crayon Physics Deluxe with a single command using one of the unofficial AUR-capable package managers, e.g.:
yaourt -S crayonphysicsdeluxe (It will ask you for the crayon_release55_3.tar.gz file.)
|
...| | If anyone knows of similar packages / helper scripts for other Linux distributions, please post a comment.
|
B) Manual Installation 1. Extracting the archiveEither use your favorite file manager to unpack the downloaded game archive into the installation directory of your choice, or open a terminal and type...
cd /path/to/install/directory
tar -xf /path/to/download/directory/crayon_release55_3.tar.gz
(Replace the directory paths appropriately, of course.)
You will end up with a
CrayonPhysicsDeluxe folder inside the install directory.
Where you install the game is completely up to you. If you would like all users accounts of the computer to be able to run the game, an appropriate install directory might be
/usr/local/games, so that you'll end up with a
/usr/local/games/CrayonPhysicsDeluxe folder.
If you want to restrict access to the game to the current user, you should choose a location inside your home directory, so you might end up with, for example,
~/apps/CrayonPhysicsDeluxe.
At this point, try starting the game (change to the
CrayonPhysicsDeluxe folder in a terminal and type
./launcher). If it works already, you can skip the following two steps.
2. Installing dependenciesCrayon Physics Deluxe depends on the
OpenGL and
Qt 4 libraries, which you might or might not have already installed.
Since the game is compiled as a 32-bit executable, you'll need 32-bit versions of the libraries, even if you're running a 64-bit Linux. Luckily, most Linux distributions provide special 32-bit-libraries-for-64bit-systems packages.
These are the packages that you need to install
(packages already installed by default in the respective distribution are not listed):
| | | on 32-bit systems | | on 64-bit systems |
| Ubuntu (lucid, maverick, natty): | libqtcore4 libqtgui4 | | ia32-libs (may already be already installed) |
| Debian (squeeze, wheezy, sid): | libqtcore4 libqtgui4 | | ia32-libs ia32-libs-gtk |
| Arch Linux: | mesa qt | | lib32-mesa lib32-qt |
If you know the names of the required packages for other Linux distributions, please post a comment. 3. Fixing library issuesIf at this point you
still get error messages or problems when trying to start the game, it might be due to the game not finding all libraries it requires, or some of the libraries shipped with the game itself (in the
lib32 folder) being incompatible with your system. See the "Troubleshooting" section at the end of this HOWTO for help on how to fix these (and other) issues.
Distribution-specific notes:| | Gentoo Linux: | See Florian Berger's HOWTO on getting the game to work on Gentoo Linux. |
4. Installing a launch script [optional]If you would like to be able to launch Crayon Physics Deluxe
from the terminal but without having to
cd to the game folder every time and start it from there, you can create a simple launch script with the following content:
#/bin/sh
cd /usr/local/games/CrayonPhysicsDeluxe
exec ./launcher "$@"
(If applicable, replace /usr/local/games/CrayonPhysicsDeluxe with the path to the CrayonPhysicsDeluxe folder that you chose in step 1.)Simply save the script as a file called
crayon (or whatever you like), make it executable (
chmod +x ./crayon), and put it either somewhere where you can easily find it, or - even better - in a directory that is included in your system's
PATH environment variable, so that you can start the game from
anywhere in a terminal, just by typing
crayon.
(Note: To find out which directories are defined in your system's PATH variable, run echo $PATH in a terminal.)If you would like all user accounts of the computer to be able to run the game, an appropriate place to put the launch script would be
/usr/local/bin/, which is a common place for custom-installed binaries / launch scripts, and is already included in the
PATH variable on a typical Linux system.
5. Installing an application menu entry [optional]If you would like to be able to launch Crayon Physics Deluxe without a terminal,
from your application menu and similar places, you have to install a "desktop entry" for the game.
If you want it to appear
for the current user account only, simply run the
./install_shortcuts.sh script in the
CrayonPhysicsDeluxe directory.
To install it
for all user accounts, manually create a plain text file with the following content...
[Desktop Entry]
Type=Application
Name=Crayon Physics Deluxe
Categories=Game;
Path=/usr/local/games/CrayonPhysicsDeluxe
Exec=/usr/local/games/CrayonPhysicsDeluxe/launcher
Icon=/usr/local/games/CrayonPhysicsDeluxe/icon.png
(If applicable, replace /usr/local/games/CrayonPhysicsDeluxe with the path to the CrayonPhysicsDeluxe folder that you chose in step 1.)...and save it as
/usr/local/share/applications/kloonigames-crayon.desktopThis "desktop entry" should now automatically be picked up by all modern desktop environments (Gnome, KDE, etc.), and cause Crayon Physics Deluxe to be shown in your application menu or launcher, in the "Choose Application" dialog, in desktop search results, etc.
Note: It might not show up in all places until your next login.
In
Ubuntu, you might additionally have to execute the following command to force the internal "desktop entry" cache to be rebuilt:
sudo dpkg-reconfigure python-gmenu
C) TroubleshootingNote: This section only covers problems related to installing (and getting to run) the game on Linux. For problems related to gameplay etc. see the
Support FAQ.
Problems & solutions Program fails to start- Error messages like "unable to find xyz.so.1"
First, make sure you have installed all required dependencies (see above).
In some cases, the game might be unable to find some library because the installed library version is slightly different from the one it expects. With any luck, you can still make it work by finding the library file in question on your hard drive, copying (or symbolically linking) it into the game's lib32 folder, and giving it the exact name (including version number!) the error message asks for.
Graphics problems- White screen with green boxes
This problem is caused by missing support for a certain OpenGL extension (see here). It's possible that your graphics card does actually support it (most OpenGL 2.0 or newer cards do, as well as some OpenGL 1.x cards) and it's merely your driver that's missing support for it, so make sure you have the newest driver version, and if you have an ATI or NVIDIA card and you're running the open source driver, try the proprietary driver, and the other way around. If however the graphics card itself doesn't support this OpenGL extension, there is as of yet no solution for the problem. (You may be able to run the DirectX-based Windows version of the game using wine, though.) | |
- Empty welcome screen (or other graphics-related issues)
Remove the SDL libraries shipped with the game (see below). |  |
Sound problems- No sound
Remove the SDL libraries shipped with the game (see below).
Removing libraries shipped with the gameMost of the libraries the game depends on are already included with it, in the
lib32 subfolder of the
CrayonPhysicsDeluxe directory.
In case some of these shipped libraries cause problems for you, you can simply remove them from the
lib32 folder, in order to force the game to use the equivalent system-wide libraries (installed with your package manager) instead.
(Note that you don't actually have to delete the library files in question, it's enough to merely rename them (e.g. add a _BACKUP to the end of the filename) so that the game won't find them anymore.)If you do this, you will of course have to make sure that the packages providing the equivalent system-wide libraries are actually installed...
- SDL libraries: libSDL-1.2.so.0, libSDL_image-1.2.so.0, libSDL_mixer-1.2.so.0 (in the lib32/ folder)
| → packages: | on 32-bit systems | | on 64-bit systems |
| Ubuntu: | libsdl1.2debian libsdl-image1.2 libsdl-mixer1.2 | | ia32-libs |
| Arch Linux: | sdl sdl_image sdl_mixer | | lib32-sdl lib32-sdl_image lib32-sdl_mixer |