LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-06-2009, 03:03 PM   #1
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
HOW-TO KMyMoney2 on Slackware 13.0 (x86 32-bit)


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/qt/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.

Last edited by gegechris99; 09-06-2009 at 03:05 PM.
 
Old 09-07-2009, 10:34 AM   #2
tuubaaku
Member
 
Registered: Oct 2004
Distribution: Slackware, Mint
Posts: 122

Rep: Reputation: 16
That looks similar to what I had to do.Could you submit your scripts to sb.o so others can use them more easily? Are your scripts for version 1.0 or 0.9?
 
Old 09-07-2009, 03:25 PM   #3
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Hello tuubaaku,

I used the script with version 1.0.0.

I didn't think about uploading the Slackbuild script to slackbuilds.org because it's not yet a KDE4 application.

Also as I mentioned localization will be incomplete for non-english users (including myself), this is a minor inconvenience for me but it could bother other users who would expect a quality package.

However I will drop the question to their mailing list to get feedback from the SBo administration team.

Last edited by gegechris99; 09-07-2009 at 03:26 PM. Reason: typo errors
 
Old 09-26-2009, 03:04 PM   #4
blue900
LQ Newbie
 
Registered: Sep 2003
Location: Idaho
Distribution: slackware all the way
Posts: 13

Rep: Reputation: 0
Thanks for Sharing your info.
I just compiled Kmymoney 1.0.1 on my Slackware 13.

The short cut in the KDE Kickoff application Launcher is not working, put it launches fine from the command Line.

I will post the fix later
 
Old 09-26-2009, 03:35 PM   #5
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by blue900 View Post
The short cut in the KDE Kickoff application Launcher is not working, put it launches fine from the command Line.
Is path "/opt/kde3/bin/" in the PATH variable of your user?
 
Old 09-29-2009, 03:20 AM   #6
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
@tuubaaku

kmymoney2 slackbuild was added to version 13.0 on www.slackbuilds.org.

The SlackBuild was submitted by Luiz Eduardo and does not seem to contain links to the KMyMoney2 desktop entry for the KDE4 menu.

@blue900

One possibility for the KMyMoney2 entry not showing up on the KDE4 menu is that you may have customized the menu. In that case, if I remember correctly (but I don't know where I read it), the customized KDE menu is saved somewhere in ~/.kde and this menu is not automatically updated when you add software.
 
Old 06-11-2010, 04:39 PM   #7
conundrum07
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware
Posts: 13

Rep: Reputation: 0
Bumping this up in case anyone else is having the same problem I did.

I used the above instructions to build KMyMoney2 on 13.1 64bit. Everything compiled successfully however when launched the app had no icons because of the move to libpng 1.4. When looking at the console it gives the following error (many times):

Code:
libpng warning: Application was compiled with png.h from libpng-1.2.35
libpng warning: Application is running with png.c from libpng-1.4.2
Slackware 13.1 has the necessary libpng 1.2 library so I added LDFLAGS=-lpng12 to the modified build script:

Code:
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS=-lpng12 \
./configure \
  --prefix=/opt/kde3 \
  --with-qt-dir=/opt/kde3/lib64/qt3 \
  --with-qt-includes=/opt/kde3/lib64/qt/include \
  --with-qt-libraries=/opt/kde3/lib64/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 \
Recompiled and now I have icons again
 
Old 06-11-2010, 06:37 PM   #8
marnold
Member
 
Registered: Dec 2005
Distribution: Slackware64 15.0 Multilib
Posts: 313

Rep: Reputation: 52
FWIW, I've been using the release candidate of the KDE4 version of KMyMoney (3.98.1) for a little while now and it seems to work very well. I haven't noticed any problems at all. It's much easier than jumping through the hoops for the KDE3 version.
 
Old 06-12-2010, 04:38 AM   #9
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
@marnold

I created this How-To at a time when porting to version KDE4 was just getting started.

As KMyMoney for KDE4 is getting close to final release, I would agree that it should be the preferred option if someone wants to install KMyMoney on Slackware 13.1.

For my part, I'm still using the KDE3 version on Slackware 13.1 (it works fine) pending the final release of KDE4 version.
 
Old 06-12-2010, 07:00 AM   #10
conundrum07
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware
Posts: 13

Rep: Reputation: 0
Quote:
Originally Posted by gegechris99 View Post
@marnold

For my part, I'm still using the KDE3 version on Slackware 13.1 (it works fine) pending the final release of KDE4 version.
Likewise. I had already gone through all the steps before realizing there was a KDE4 prerelease and figured I would just patch this version and wait for the official release of the new one
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you kexec at boot from a 32-bit (x86) to 64-bit (x86_64) kernel? Shingoshi Linux - Kernel 15 06-26-2009 10:08 PM
build x86-64 application on 32-bit machine using x86-64 toolchain linuxgentoo Linux - General 16 06-03-2009 03:15 AM
32 bit firefox on x86-64 jeffpr Linux - Newbie 1 12-02-2005 09:17 PM
Mandriva 32-bit X86, 64-bit x86-64 & i586. La Dima Mandriva 9 10-07-2005 06:12 AM
64-bit linux, x86 apps? BeyondTheBlue Linux - Software 7 11-05-2004 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:34 PM.

Main Menu
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