LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > gegechris99
User Name
Password

Notices


Rate this Entry

HOW-TO KMyMoney2 on Slackware 13.0 (x86 32-bit)

Posted 09-07-2009 at 08:19 AM by gegechris99
Updated 08-13-2010 at 03:30 PM by gegechris99 (correction incorrect path in configure option for qt-includes)

Hello,

I've compiled KMyMoney2 on Slackware 13.0 (32-bit) using feedbacks from these 2 threads in which it was reported that KMyMoney2 was successfully compiled on 64-bit but not on 32-bit:

/usr/local/lib or /usr/local/lib64

Kmymoney2 Slackware64 Sbo Slackbuild Error

So here's a little HOW-TO for those interested in this topic:

1) Install the kde3-compat packages

Install at least the following packages from the extra/kde3-compat directory:

Code:
arts-1.5.10-i486-opt1.txz
kdelibs3-3.5.10-i486-opt1.txz
qt3-3.3.8b-i486-opt1.txz
Important step: After installing these kde3 compatibility packages, logout from KDE and login again so that variable QTDIR is properly set.

2) Adapt the existing SBo SlackBuild script

Grab the KMyMoney2 SlackBuild from www.slackbuilds.org 12.2 repository.

In file kmymoney2.SlackBuild, change the version and the architecture (I could only succeed with i686 but not with i486):

Code:
VERSION=${VERSION:-1.0.0}
ARCH=${ARCH:-i686}
and change the configure part to (changes are in bold letters):

Code:
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/opt/kde3 \
  --with-qt-dir=/opt/kde3/lib/qt3 \
  --with-qt-includes=/opt/kde3/lib/qt3/include \
  --with-qt-libraries=/opt/kde3/lib/qt3/lib \
  --localstatedir=/var \
  --sysconfdir=/etc \
  --mandir=/usr/man \
  --${useofx}able-ofxplugin \
  --${useofx}able-ofxbanking \
  --disable-leak-check \
  --disable-pdf-docs \
  --disable-debug \
  --build=$ARCH-slackware-linux \
3) Create an entry for the KDE4 menu

Add the following at the begining of doinst.sh:

Code:
( cd usr/share/applications/kde4 ; rm -rf kmymoney2.desktop )
( cd usr/share/applications/kde4 ; ln -sf /opt/kde3/share/applications/kde/kmymoney2.desktop kmymoney2.desktop )

( cd usr/share/icons/hicolor/32x32/apps ; rm -rf kmymoney2.png )
( cd usr/share/icons/hicolor/32x32/apps ; ln -sf /opt/kde3/share/icons/hicolor/32x32/apps/kmymoney2.png kmymoney2.png )
4) Build the package

Then proceed as usual to build the package.

Done.

I've been using Kmymoney2 on Slackware 13.0 for about 5 days without any issue. The only inconvenience is that I'm using the french language and due to the absence of the KDE3 kde-i18n-fr package, some labels are not translated.

Any feedback from your own experience is welcome.
Posted in Uncategorized
Views 3750 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration