https://userbase.kde.org/index.php?title=Compile_KPhotoAlbum&feed=atom&action=historyCompile KPhotoAlbum - Revision history2024-03-29T01:40:54ZRevision history for this page on the wikiMediaWiki 1.40.2https://userbase.kde.org/index.php?title=Compile_KPhotoAlbum&diff=490783&oldid=prevClaus chr at 13:16, 16 February 20242024-02-16T13:16:43Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:16, 16 February 2024</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{<del style="font-weight: bold; text-decoration: none;">db-g7}}</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{<ins style="font-weight: bold; text-decoration: none;">Forward</ins>|<ins style="font-weight: bold; text-decoration: none;">1</ins>=<ins style="font-weight: bold; text-decoration: none;">community</ins>.<ins style="font-weight: bold; text-decoration: none;">kde.org/KPhotoAlbum/build_instructions</ins>}}</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{Proposed_deletion</del>|<del style="font-weight: bold; text-decoration: none;">reason</del>=<del style="font-weight: bold; text-decoration: none;">Empty page</del>.}}</div></td><td colspan="2" class="diff-side-added"></td></tr>
</table>Claus chrhttps://userbase.kde.org/index.php?title=Compile_KPhotoAlbum&diff=487604&oldid=prevNmariusp: {{Proposed_deletion|reason=Empty page.}}2023-10-11T17:06:22Z<p>{{Proposed_deletion|reason=Empty page.}}</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:06, 11 October 2023</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{db-g7}}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{db-g7}}</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{Proposed_deletion|reason=Empty page.}}</ins></div></td></tr>
</table>Nmariusphttps://userbase.kde.org/index.php?title=Compile_KPhotoAlbum&diff=334506&oldid=prevRhk: delete2014-04-26T19:27:26Z<p>delete</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 19:27, 26 April 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{db-g7}}</ins></div></td></tr>
</table>Rhkhttps://userbase.kde.org/index.php?title=Compile_KPhotoAlbum&diff=334505&oldid=prevRhk: Moved to build kphotoalbum2014-04-26T19:26:43Z<p>Moved to build kphotoalbum</p>
<a href="https://userbase.kde.org/index.php?title=Compile_KPhotoAlbum&diff=334505&oldid=334503">Show changes</a>Rhkhttps://userbase.kde.org/index.php?title=Compile_KPhotoAlbum&diff=334503&oldid=prevRhk: Headers2014-04-26T19:23:19Z<p>Headers</p>
<a href="https://userbase.kde.org/index.php?title=Compile_KPhotoAlbum&diff=334503&oldid=334502">Show changes</a>Rhkhttps://userbase.kde.org/index.php?title=Compile_KPhotoAlbum&diff=334502&oldid=prevRhk: First draft of howto compile kphotoalbum from source codes2014-04-26T19:00:19Z<p>First draft of howto compile kphotoalbum from source codes</p>
<p><b>New page</b></p><div>Compiling latest Git version of KPhotoAlbum on Ubuntu / Debian<br />
<br />
==Backup==<br />
BY USING GIT VERSION YOU RISK LOOSING YOUR DATA.<br />
IT SHOULDN'T HAPPEN BUT YOU NEVER KNOW. SO DO BACKUP YOUR FILES (come on, at least the index.xml) FIRST!<br />
YOU'VE BEEN WARNED!<br />
<br />
Create backup directory<br />
mkdir kpa-backup<br />
<br />
Backup your settings:<br />
cp -a ~/.kde/share/apps/kphotoalbum/kphotoalbumui.rc kpa-backup/<br />
cp -a ~/.kde/share/config/kphotoalbumrc kpa-backup/<br />
<br />
And if you want to try KPhotoalbum with your real database (not the demo):<br />
Backup your database:<br />
cp -a /path/to/your/image/folder/index.html kpa-backup/<br />
cp -a /path/to/your/image/folder/exif-info.db kpa-backup/<br />
<br />
Backup the layout of your Annotation dialog:<br />
cp -a /path/to/your/image/folder/layout.dat kpa-backup/<br />
<br />
Note: there is also a backup script provided in KPhotoAlbum sources. You can just simply run it after the sources have been fetched (source/script/kpa-backup.sh):<br />
kpa-backup.sh --backup<br />
kpa-backup.sh --restore<br />
<br />
==Build==<br />
===Build dependencies===<br />
If you've had KPhotoAlbum installed earlier from repositories, the Git KPhotoAlbum will use the same setting files as the earlier version.<br />
If you want to be able to use the previous version after installing this, please do install to custom directory, not the default one.<br />
<br />
Install required build tools:<br />
sudo apt-get install git build-essential<br />
<br />
Install required packages to build:<br />
sudo apt-get build-dep kphotoalbum<br />
<br />
OPTIONAL BUT RECOMMENDED: Install other dependencies:<br />
sudo apt-get install kipi-plugins mplayerthumbs libjpeg8-dev khelpcenter4 <br />
(I'm not sure if libjpeg is needed, its in the build dependencies, see http://ftp.de.debian.org/debian/pool/main/k/kphotoalbum/kphotoalbum_4.1.1-4.debian.tar.gz)<br />
<br />
===Fetching source code===<br />
Clone the Git repository:<br />
git clone git://anongit.kde.org/kphotoalbum.git<br />
<br />
===Building===<br />
Move to the created directory<br />
cd kphotoalbum<br />
<br />
Create a build-directory (so you don't mess up you source directory)<br />
mkdir build ; cd build<br />
<br />
Run cmake to configure the build system<br />
cmake .. [to install to the default directory]<br />
OR<br />
cmake -DCMAKE_INSTALL_PREFIX=/path/for/my/kphotoalbum/installation .. [to install to a custom directory]<br />
OR<br />
cmake -DCMAKE_BUILD_TYPE=relwithdebuginfo .. [to make the debug build that will output plenty of debug messages to help track crashes etc]<br />
OR combine the options:<br />
cmake -DCMAKE_INSTALL_PREFIX=~/kphotoalbum -DCMAKE_BUILD_TYPE=RelWithDebInfo ..<br />
<br />
See the messages. In this stage you'll be told if you have missing dependencies. Do fix them (try to find the missing packages from the package repositories) before continuing.<br />
<br />
Run make:<br />
make<br />
<br />
===Installing===<br />
Run installation(optional):<br />
make install<br />
or if the installation path is not writable by your user:<br />
sudo make install<br />
<br />
===Running===<br />
<br />
A handy feature of the cmake build-system is that it builds binaries in such a way that you can start them from within the build system. This certainly handy for quickly testing a new version of KPhotoalbum without touching anything else on your system.<br />
However, be aware that some features depend on hard-coded paths (e.g. menu-entries, Handbook, HTML Exports, Demo) and may not work as expected. These features will still use the files installed by the distributions version of KPhotoAlbum.<br />
You can just try out KPhotoalbum without installation first, and install later on (see 2.4), if you decide so.<br />
<br />
If you installed to a non-standard directory, you have two options:<br />
1a) Start KPhotoAlbum from the directory where it was installed:<br />
/path/for/my/kphotoalbum/installation/kphotoalbum<br />
OR<br />
1b) add the following line to /home/username/.bashrc so you can start KPhotoAlbum from anywhere:<br />
export KDEDIRS=/path/for/my/kphotoalbum/installation<br />
Restart your terminal (so that .bashrc gets executed)<br />
<br />
2)Start KPhotoAlbum:<br />
kphotoalbum<br />
<br />
It's always a good idea to first try out things with the demo-database. Just add "--demo" when starting KPhotoalbum:<br />
kphotoalbum --demo<br />
<br />
<br />
==Rebuild==<br />
===Refetching sources===<br />
In the kphotoalbum Git folder, pull the changes:<br />
git pull<br />
<br />
If you want to see what has changed try git log or qgit for graphical user interface<br />
<br />
===Rebuilding===<br />
You normally don't have to run cmake again -- it will be invoked by the makefiles, if neccessary. Otherwise follow BUILDING.<br />
<br />
===Reinstalling===<br />
Follow instruction at [[#installing]]<br />
<br />
===RUNNING===<br />
Follow instruction at [[#Running]]<br />
<br />
<br />
==Summary==<br />
===First build===<br />
sudo apt-get build-essential build-dep kphotoalbum<br />
sudo apt-get install git libjpeg8-dev<br />
sudo apt-get install kipi-plugins mplayerthumbs libjpeg8-dev khelpcenter4 <br />
git clone git://anongit.kde.org/kphotoalbum<br />
cd kphotoalbum<br />
mkdir build ; cd build<br />
cmake -DCMAKE_INSTALL_PREFIX=~/kphotoalbum -DCMAKE_BUILD_TYPE=Release ..<br />
make install<br />
<br />
===Updating===<br />
cd ~/kphotoalbum<br />
git pull<br />
make install<br />
<br />
===Running===<br />
~/kphotoalbum/script/kpa-backup.sh --backup<br />
~/kphotoalbum/bin/kphotoalbum</div>Rhk