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.)
The week in Palapeli: Old wine in new skins « Stories of a KDE programmer said,
August 26, 2008 @ 9:30 pm
[...] How to obtain a current Palapeli [...]
Fattazzo said,
October 14, 2009 @ 4:22 pm
(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
Palapeli: Creating puzzles « Stories of a KDE programmer said,
October 14, 2009 @ 6:50 pm
[...] How to obtain a current Palapeli [...]
Adam said,
October 16, 2009 @ 8:07 am
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.
Stefan Majewsky said,
October 16, 2009 @ 2:18 pm
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.
Djuro Drljaca said,
October 30, 2009 @ 9:29 pm
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?
petifrancais said,
October 30, 2009 @ 9:32 pm
svn checkout svn://anonsvn.kde.org/home/kde/trunk/playground/games/palapeli/ source don’t work
Stefan Majewsky said,
October 30, 2009 @ 9:45 pm
@petifrancais and @Djuro: Is this still true? I had the same problem five hours ago, but now it works again here.
petifrancais said,
October 30, 2009 @ 10:06 pm
Yes, after I typed the command, nothing happens. : /
Stefan Majewsky said,
October 30, 2009 @ 10:58 pm
The problem has been reported to KDE sysadmins, and the reply says it’ll be fixed in ~2 hours.
petifrancais said,
October 30, 2009 @ 11:48 pm
It work ! Thanks !
petifrancais said,
October 30, 2009 @ 11:56 pm
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.
Djuro Drljaca said,
October 31, 2009 @ 8:46 am
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?
petifrancais said,
October 31, 2009 @ 9:27 am
Yeah for me it work after added “export KDEDIRS=/usr/share/kde4:$KDEDIRS” on .bashrc !
petifrancais said,
October 31, 2009 @ 9:29 am
Oups sorry, you did not have this problem
Qt 4.6 notice « Stories of a KDE programmer said,
November 2, 2009 @ 8:54 am
[...] How to obtain a current Palapeli [...]
pennyg said,
November 6, 2009 @ 1:34 am
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.
Stefan Majewsky said,
November 6, 2009 @ 9:14 am
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.