This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Compiling KMyMoney 3.98.1 on MacOSX Snow Leopard

Tags: None
(comma "," separated)
Oripi
Registered Member
Posts
17
Karma
0
OS
I have started to talk about my problem on the news thread but I think that a new subject is more appropriate.

Here is the problem :

As I have not found a MacOSX package for the KDE4 version of KMyMoney I have tried to compile it myself (using MacPort KDE4 version).

cmake give me this error :
Code: Select all
[...]
Good - your configure finished.
Now type 'make' to build KMyMoney. For more help, consult README.cmake

-- Looking for dgettext
-- Looking for dgettext - not found
-- Looking for dgettext in /opt/local/lib/libintl.dylib
-- Looking for dgettext in /opt/local/lib/libintl.dylib - not found
CMake Error at /opt/local/share/apps/cmake/modules/FindGettext.cmake:61 (message):
  Could NOT find Gettext


Is it a KMyMoney related issue ? GetText is installed on my system and the file /opt/local/lib/libintl.dylib exists on my system. Does KMyMoney need an other version of GetText ?

Can you help me ? I really want to help debugging this KMyMoney version !


ipwizard kindly reply this :
ipwizard wrote:CMake will fail at this point if one of the following checks did not succeed:

FIND_PROGRAM(GETTEXT_MSGMERGE_EXECUTABLE msgmerge)

FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt)

Here on my (OpenSUSE) box I see:

Code: Select all
thb@thb-nb:~> which msgfmt
/usr/bin/msgfmt
thb@thb-nb:~> which msgmerge
/usr/bin/msgmerge
thb@thb-nb:~> rpm -qf /usr/bin/msgfmt
gettext-runtime-0.17-65.2.x86_64
thb@thb-nb:~> rpm -qf /usr/bin/msgmerge
gettext-tools-0.17-65.2.x86_64


msgfmt and msgmerge are installed on my OSX system, so the problem isn't where ipwizard think it is.
Does anybody have an other solution to solve my problem ?

Thanks.


Oripi, proud to be a member of KDE forums since 2008-Nov.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please try creating a clean build directory, and reconfiguring using CMake again. A stale configuration could be preventing CMake from finding them if they were recently installed.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Oripi
Registered Member
Posts
17
Karma
0
OS
bcooksley wrote:Please try creating a clean build directory, and reconfiguring using CMake again. A stale configuration could be preventing CMake from finding them if they were recently installed.

Thanks for the answer. Unfortunately I already tried that.

After some research I figured that maybe the problem is that MacPorts uses a directory that isn't commonly used for that on other unix systems /opt/local/ but I don't understand why. The file /opt/local/lib/libintl.dylib exists but FindGetext can't find gettext in it...


edit : maybe I should compile KDE and all other stuffs myself instead of using MacPorts but I don't know where to start...


Oripi, proud to be a member of KDE forums since 2008-Nov.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please ensure that $PATH contains /opt/local/bin


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Oripi
Registered Member
Posts
17
Karma
0
OS
After lots of tests and compiling time (qt4 is sooooo long to compile), I stick to the same problem.

Things that I tried/checked :
- I delete and clean all packages compiled via macports (thinking that old kde3 installation may still conflict with kde4 app compiling even after they have been deactivated into macports)
- I compile (via macports) kdebase4 with all it's dependencies
- I download/extracted the latest kmymoney 3.98.1 tarball
- checked that $PATH contain the good directories
- set the good flags in order to compile in 32bits (qt4 in macport is only available in 32bits) (export CFLAGS="-arch i386" && export CXXFLAGS="-arch i386")
- create and cd to an empty "build" directory
- launched "cmake .."

Then, unfortunately, same error :
Code: Select all
[...]

-------- KMyMoney 3.98.1 --------

Configure results (user options):
--------------------------------------------
OFX plugin:                              yes

KBanking plugin:                         no

iCalendar export plugin:                 yes
--------------------------------------------


Configure results (developer options):
--------------------------------------------
Qt-Designer library support:             no

Developer documentation generation:      no

CPPUNIT support:                         no
        build tests:                     no

Doxygen support:                         no

Build type: RelWithDebInfo
--------------------------------------------

Good - your configure finished.
Now type 'make' to build KMyMoney. For more help, consult README.cmake

-- Looking for dgettext
-- Looking for dgettext - not found
-- Looking for dgettext in /opt/macports-test/lib/libintl.dylib
-- Looking for dgettext in /opt/macports-test/lib/libintl.dylib - not found
CMake Error at /opt/macports-test/share/apps/cmake/modules/FindGettext.cmake:61 (message):
  Could NOT find Gettext
Call Stack (most recent call first):
  CMakeLists.txt:481 (find_package)


Can someone more skilled than me (that's easy :) can help me, please ?


Oripi, proud to be a member of KDE forums since 2008-Nov.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please ask on the kde-mac@kde.org mailing list? The CMake checks used by KMyMoney to find gettext and msgmerge may need to be adjusted.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]