How to obtain a current Palapeli

This blog will regularly contain notices about new features in Palapeli. To enable you to try these out immediately, follow the following steps. (I assume that you’re familiar with using your command-line interface. If not, please refer to your distribution’s manual, a web forum, a wiki or – even better – experts from your local Linux Users Group who will guide you through your first steps).

Step 1: Prepare your system

Please ensure you have the following packages installed: cmake, libqt4, libkde4. The package libqt4 (which may also be called just qt4 or qt) must be version 4.5.80 or above. The package libkde4 may also be called kdelibs4; if both are available, install both. Also, install the development headers (package names are the same, but with a suffix -dev or -devel) for all packages except for cmake.

Step 2: Checkout the current source code

Open a terminal and do the following:

svn checkout svn://anonsvn.kde.org/home/kde/trunk/playground/games/palapeli/ palapeli

This creates a new subdirectory “palapeli” containing the Palapeli source code. Note that this won’t work if there is another directory with the same name around.

Step 3: Building a current Palapeli

In the “palapeli” directory you just created, create a subdirectory “build”. Open a terminal in the “build” directory and issue the following commands:

P=$(kde4-config --prefix)
cmake -DCMAKE_INSTALL_PREFIX=$P ..
make
sudo make install
kbuildsycoca4 --noincremental
cd ../puzzles
bash make-puzzles.sh
cd ../build
sudo make install

If the first produces errors, ensure that all packages from step 1 are installed. If the second produces errors, it’s usually the developer’s fault. Drop a note here with your error message to enable me to fix the error. The same applies for all following commands (with the exception of the “Troubleshooting” notices at the end).

Step 4: Updating

The “source” directory contains a reference to the KDE server, therefore you can update it simply by opening a terminal in the “source” directory and running:

svn update

Then, navigate into the “build” directory and rerun the commands used for building (except for the “cmake” command):

make
sudo make install
kbuildsycoca4 --noincremental
cd ../puzzles
bash make-puzzles.sh
cd ../build
sudo make install

Note for advanced users: If you’re not using bash (which is the default shell nearly everywhere), you will of course have to adjust the last step. I’m quite confident that anyone who uses another shell is experienced enough to adapt this step to his own setup.)

18 Responses so far »

  1. 2

    Fattazzo said,

    (Sorry for my english :) )

    I am Kubuntu user and I compiled palapeli in deb package.
    If you are interested, when you have new versions, I can prepare for you the new deb file and send it to you.
    I think it is very helpful for all Debian users who are unable to build current palapeli alone. :)
    I became a big fan of this software!

    Congratulations for your work! I hope you accept my proposal. :)

    You can read my email from this post, right?

    Thank You in advance
    Best regards

    Gianluca

  2. 4

    Adam said,

    Sorry if I missed this, but where do we report bugs? I found one. Create a new puzzle and open it in the puzzle table, then go back to the library and delete the puzzle. Clicking on restart puzzle in the table then crashes Palapeli.
    The slicing options and puzzle type can then no longer be specified when trying to create another puzzle, so the “Create puzzle” button is greyed out.

    • 5

      Stefan Majewsky said,

      Palapeli is not registered on bugs.kde.org yet. It will appear there soon, when it moves from playground/games to kdegames. Anyway, thanks for your bug report. I’ll look into a solution later this day.

  3. 6

    Djuro Drljaca said,

    Why can’t I checkout the current version from KDE svn?I get this error:
    svn: Reference to non-existent node ‘jtna.52qb.r1042628/1752′ in filesystem ‘/svn/mirrors/home/kde/db’

    From what I found out form Google there might be a problem with the KDE svn server?

  4. 7

    petifrancais said,

    svn checkout svn://anonsvn.kde.org/home/kde/trunk/playground/games/palapeli/ source don’t work :(

    • 8

      Stefan Majewsky said,

      @petifrancais and @Djuro: Is this still true? I had the same problem five hours ago, but now it works again here.

  5. 9

    petifrancais said,

    Yes, after I typed the command, nothing happens. : /

  6. 11

    petifrancais said,

    It work ! Thanks ! :)

    • 12

      petifrancais said,

      HUm… there are some problem with “slicer” :
      petifrancais@petifrancais-laptop:~/svn/palapeli/build$ kbuildsycoca4 –noincremental
      kbuildsycoca4 running…
      “KConfigIni: In file /usr/share/kde4/services/searchproviders/lpblueprint.desktop, line 6: ” “Invalid escape sequence “\{“.”
      “KConfigIni: In file /usr/share/kde4/services/searchproviders/lpblueprint.desktop, line 6: ” “Invalid escape sequence “\{“.”
      “KConfigIni: In file /usr/share/kde4/services/searchproviders/lppeople.desktop, line 6: ” “Invalid escape sequence “\{“.”
      “KConfigIni: In file /usr/share/kde4/services/searchproviders/lppeople.desktop, line 6: ” “Invalid escape sequence “\{“.”
      petifrancais@petifrancais-laptop:~/svn/palapeli/build$ cd ../source/puzzles
      petifrancais@petifrancais-laptop:~/svn/palapeli/source/puzzles$ bash make-puzzles.sh
      Creating castle-maintenon.puzzle
      Error: Requested slicer not available.
      Creating cincinnati-bridge.puzzle
      Error: Requested slicer not available.
      Creating citrus-fruits.puzzle
      Error: Requested slicer not available.
      Creating european-honey-bee.puzzle
      Error: Requested slicer not available.
      Creating panther-chameleon-female.puzzle
      Error: Requested slicer not available.

      • 13

        Djuro Drljaca said,

        I had a similar problem, but just for the puzzles.

        I followed the instructions of “Step 5″ and the it started to work.

        But when I started the application there were no puzzles and I had to import them using “import from file” interface from the source/puzzles folder.

        Why weren’t the puzzles imported automatically when I ran “sudo make install” command?

  7. 16

    [...] How to obtain a current Palapeli [...]

  8. 17

    pennyg said,

    upon cmake -DCMAKE_INSTALL_PREFIX=$P .. I get the following error:

    CMake Error: your CXX compiler: “CMAKE_CXX_COMPILER-NOTFOUND” was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

    Can you help me fix this?

    (running kubuntu 9.10)

    Thank you.

    • 18

      Stefan Majewsky said,

      From what I know about Kubuntu (I’m an openSUSE user, and only seldomly getting my hands on a Kubuntu system), you need to install the build-essentials package. If that does not help, please ask in a *buntu forum for specific help.


Comment RSS · TrackBack URI

Say your words