Bug 245023 - KMyMoney 3.98.1 for openSUSE 11.3 compilation
Summary: KMyMoney 3.98.1 for openSUSE 11.3 compilation
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-18 10:50 UTC by bluesky
Modified: 2010-07-19 15:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bluesky 2010-07-18 10:50:50 UTC
Version:           unspecified (using KDE 4.4.4) 
OS:                Linux

Hi, I compiled the above version for openSUSE 11.3, KDE 4.4.4 (release 2) and OS Linux 2.6.34-12. Program compiled and is running but the greeting banner shows "KMyMoney 4" and in the initial screen there are only three icons on the left hand side, Home, Scheduled transactions and Payees. Other icons have question marks displayed. Is this a bug or a compilation problem ?

Reproducible: Always



Expected Results:  
All icons displayed.
Comment 1 Alvaro Soliverez 2010-07-18 13:13:22 UTC
There are a number of possibilities:
1. You compiled with the wrong installation prefix
2. You don't have the oxygen icons installed, which are used by the application.
3. You didn't install the application after compiling
4. All of the above

Why didn't you use the version found in the Packman repositories? Isn't there one for 11.3?

Regards,
Alvaro
Comment 2 bluesky 2010-07-18 21:29:08 UTC
  Alvaro,
thank you for your prompt reply. Yes unfortunately there does not appear 
to be a compilation for openSUSE 11.3. I did compile new versions before 
without any problems, for openSUSE 11.2.
I do have a issue with your suggestion that the problem is in the 
compilation. I have three icons and rest is missing. I would expect to 
have non if there was a compilation error or missing icons. I do have 
oxygen-icon-theme and oxygen-icon-theme-scalable 4.4.4-1.4 installed.
Also I do not understand your point 1. Can you please expand ?
Kind regards
Vladimir.


On 18/07/10 12:13, Alvaro Soliverez wrote:
> https://bugs.kde.org/show_bug.cgi?id=245023
>
>
> Alvaro Soliverez<asoliverez@gmail.com>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|UNCONFIRMED                 |NEEDSINFO
>           Resolution|                            |WORKSFORME
>
>
>
>
> --- Comment #1 from Alvaro Soliverez<asoliverez gmail com>   2010-07-18 13:13:22 ---
> There are a number of possibilities:
> 1. You compiled with the wrong installation prefix
> 2. You don't have the oxygen icons installed, which are used by the
> application.
> 3. You didn't install the application after compiling
> 4. All of the above
>
> Why didn't you use the version found in the Packman repositories? Isn't there
> one for 11.3?
>
> Regards,
> Alvaro
>
Comment 3 Alvaro Soliverez 2010-07-19 00:28:19 UTC
Sure. My icons look fine, as well as many others. Even on OpenSuse 11.3. That's how I know it's not a code problem, and I suspect a build or install problem.

Now, as to why you may see some icons, and not others. Here's why:
Home, scheduled transactions, and payees are part of the standard set of icons. You will most likely have those icons in any theme that follows freedesktop.org standard. The rest of the icons are custom kmymoney icons or most specialized icons that may not be available in every theme.

So, please provide the command you used for compiling and installing, from scratch, so we can sort out where the problem is. Thanks!
Comment 4 bluesky 2010-07-19 10:29:12 UTC
  Thank you Alvaro.

Following was my procedure:
- downloaded kmymoney-3.98.1.tar.bz2 and decompressed into /opt.
- changed directory to /opt and logged in as su
- run cmake /opt/kmymoney-3.98.1
- run make (no options)
- run make install (no options)
- exit from su
- run kmymoney and received following messages:
vlada@asus:/usr/local/bin> kmymoney
kmymoney(5009)/kdecore (trader) KServiceTypeTrader::defaultOffers: 
KServiceTypeTrader: serviceType  "KMyMoneyPlugin"  not found
reading file
start parsing file
startDocument
reading accounts
reading transactions
reading securities
reading currencies
reading prices
reading reports
endDocument
vlada@asus:/usr/local/bin>
OR
- run  /opt/kmymoney-3.98.1/kmymoneykmymoney and received identical 
messages as above

I do note that KMyMoneyPlugIn is not found but plugin subdirectory and 
plugin files are present. Is here where the custom icons are? However, 
with the exception of missing icons software appears to run OK.

Regards
Vladimir.


On 18/07/10 23:28, Alvaro Soliverez wrote:
> https://bugs.kde.org/show_bug.cgi?id=245023
>
>
>
>
>
> --- Comment #3 from Alvaro Soliverez<asoliverez gmail com>   2010-07-19 00:28:19 ---
> Sure. My icons look fine, as well as many others. Even on OpenSuse 11.3. That's
> how I know it's not a code problem, and I suspect a build or install problem.
>
> Now, as to why you may see some icons, and not others. Here's why:
> Home, scheduled transactions, and payees are part of the standard set of icons.
> You will most likely have those icons in any theme that follows freedesktop.org
> standard. The rest of the icons are custom kmymoney icons or most specialized
> icons that may not be available in every theme.
>
> So, please provide the command you used for compiling and installing, from
> scratch, so we can sort out where the problem is. Thanks!
>
Comment 5 Alvaro Soliverez 2010-07-19 11:41:14 UTC
You usually wouldn't compile as root user, and it is advised to compile out-of-tree. The README.cmake file has more instructions on how to compile.
Also, you are missing the install prefix setting, which is most likely your problem in this case.

uncompress the tar, somewhere on your home folder, or where you have rights as a  regular user.
cd to that folder
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
make
su - root
make install
Comment 6 bluesky 2010-07-19 13:02:43 UTC
  Alvaro,thank you.

Just completed compilation as per your suggestion and the icons are all 
there. So as you said it was a compilation error.

May I ask you to explain to me why my procedure did not work? Most of my 
applications are installed as I outlined (most of them without cmake) 
and they all worked up to now.

Regards
Vladimir.

On 19/07/10 10:41, Alvaro Soliverez wrote:
> https://bugs.kde.org/show_bug.cgi?id=245023
>
>
>
>
>
> --- Comment #5 from Alvaro Soliverez<asoliverez gmail com>   2010-07-19 11:41:14 ---
> You usually wouldn't compile as root user, and it is advised to compile
> out-of-tree. The README.cmake file has more instructions on how to compile.
> Also, you are missing the install prefix setting, which is most likely your
> problem in this case.
>
> uncompress the tar, somewhere on your home folder, or where you have rights as
> a  regular user.
> cd to that folder
> mkdir build
> cd build
> cmake .. -DCMAKE_INSTALL_PREFIX=/usr
> make
> make
> su - root
> make install
>
Comment 7 Alvaro Soliverez 2010-07-19 13:18:20 UTC
Without the correct install prefix, icons and other stuff is located in a folder where it cannot be located by the application when it's running.
Sometimes, it wouldn't even run, or like in your case, the application icons wouldn't show.
Comment 8 Jack 2010-07-19 14:48:38 UTC
Please note that you probably still have an incorrect installation of KMM under /usr/local from your earlier tries.  The best way to clean this up is run your original process again, but do a "sudo make uninstall"  First, you could do "make -n uninstall" to be sure it is going to remove the older copy.

It is not absolutely essential to remove the other copy, but it will eventually cause confusion, as you probably won't remember where those files came from.
Comment 9 bluesky 2010-07-19 15:10:26 UTC
  Jack thank you for the reminder. Fortunately unistalling is part of my 
routine and so I hope all will be now OK. I think that I must read up on 
the use of cmake command.
Regards
Vladimir.


On 19/07/10 13:48, Jack wrote:
> https://bugs.kde.org/show_bug.cgi?id=245023
>
>
> Jack<ostroffjh@users.sourceforge.net>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |ostroffjh@users.sourceforge
>                     |                            |.net
>
>
>
>
> --- Comment #8 from Jack<ostroffjh users sourceforge net>   2010-07-19 14:48:38 ---
> Please note that you probably still have an incorrect installation of KMM under
> /usr/local from your earlier tries.  The best way to clean this up is run your
> original process again, but do a "sudo make uninstall"  First, you could do
> "make -n uninstall" to be sure it is going to remove the older copy.
>
> It is not absolutely essential to remove the other copy, but it will eventually
> cause confusion, as you probably won't remember where those files came from.
>