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

SOLVED - CMake errors

Tags: None
(comma "," separated)
roger3000
Registered Member
Posts
22
Karma
0

SOLVED - CMake errors

Wed May 04, 2011 2:14 pm
Hi,

I am currently re-installing kmymoney-4.5.3 on a fresh install of LinuxMint 9 KDE.
I used to use this version of kmymoney on this exact same OS. I re-installed Mint after a crash.

Now, I have an error I never had before:
Code: Select all
~/Documents/Personnel/Finances/kmymoney-4.5.3/build $ sudo  cmake .. -DCMAKE_INSTALL_PREFIX=/usr/
-- Found Qt-Version 4.6.3 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.1
-- Found KDE 4.4 include dir: /usr/include
-- Found KDE 4.4 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found gpgme-config at /usr/bin/gpgme-config
CMake Error at /usr/share/kde4/apps/cmake/modules/MacroEnsureVersion.cmake:76 (MATH):
  math cannot parse the expression: "sh: /usr/bin/gpgme-config: not
  found*10000 + sh: /usr/bin/gpgme-config: not found*100 + 0": syntax error,
  unexpected exp_DIVIDE, expecting exp_OPENPARENT or exp_NUMBER (5)
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/MacroEnsureVersion.cmake:95 (NORMALIZE_VERSION)
  /usr/share/kde4/apps/cmake/modules/FindGpgme.cmake:197 (macro_ensure_version)
  /usr/share/kde4/apps/cmake/modules/FindQGpgme.cmake:11 (find_package)
  CMakeLists.txt:62 (find_package)


-- The installed version of gpgme is too old: sh: /usr/bin/gpgme-config: not found (required: >= 1.0.0)
-- No usable gpgme flavours found.
-- Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
-- Looking for RPMTools... - rpmbuild NOT FOUND

-------- KMyMoney 4.5.3 --------

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

KBanking plugin:                         no

iCalendar export plugin:                 no
--------------------------------------------


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

Generate developer documentation:        no

Build unit tests:                        no

Generate API documentation w/ Doxygen:   no

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

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

-- Configuring incomplete, errors occurred!


Any idea of what these might be?
I could not find anything on google...

thanks :)

Last edited by roger3000 on Thu May 05, 2011 5:39 am, edited 1 time in total.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: CMake errors

Wed May 04, 2011 3:00 pm
Looks like you need to install a package similar to libgpgme-devel which contains /usr/bin/gpgme-config (at least here on my openSUSE 11.4)


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
roger3000
Registered Member
Posts
22
Karma
0

Re: CMake errors

Wed May 04, 2011 3:12 pm
ok, thank you so much for your help, it appears from what you said that I had to install libgpgme11-dev on my LinuxMint KDE :)

Still, I now run into this error message:
Code: Select all
[ 88%] Built target kmm_ofximport_automoc
make[2]: *** Pas de règle pour fabriquer la cible « /usr/lib/libofx.so », nécessaire pour « lib/kmm_ofximport.so ». Arrêt.
make[1]: *** [kmymoney/plugins/ofximport/CMakeFiles/kmm_ofximport.dir/all] Erreur 2


Any further idea?...
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: CMake errors

Wed May 04, 2011 3:13 pm
OK, my french is a bit rusty these days, but it looks like you don't have libofx installed. In case you don't need it, try to remove CMakeCache.txt in the build directory and run cmake again. That should take care of the correct detection.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
roger3000
Registered Member
Posts
22
Karma
0

Re: CMake errors

Wed May 04, 2011 3:27 pm
Well, thank you so much for your very quick answer.

I deleted the CMakeCache.txt file, and ran cmake again.

It stopped with a number of errors. I then removed the whole kmymoney folder and started back from scratch.

Here is the output:
Code: Select all
$ sudo  cmake .. -DCMAKE_INSTALL_PREFIX=/usr/
-- Found Qt-Version 4.6.3 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.1
-- Found KDE 4.4 include dir: /usr/include
-- Found KDE 4.4 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Could NOT find Boost
-- Found gpgme-config at /usr/bin/gpgme-config
-- Found gpgme v1.2.0, checking for flavours...
--  Found flavour 'vanilla', checking whether it's usable...yes
--  Found flavour 'pthread', checking whether it's usable...yes
--  Found flavour 'pth', checking whether it's usable...yes
-- Usable gpgme flavours found:  vanilla pthread pth
-- Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
-- Looking for RPMTools... - rpmbuild NOT FOUND

-------- KMyMoney 4.5.3 --------

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

KBanking plugin:                         no

iCalendar export plugin:                 no
--------------------------------------------


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

Generate developer documentation:        no

Build unit tests:                        no

Generate API documentation w/ Doxygen:   no

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

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

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/manu/Documents/Personnel/Finances/kmymoney-4.5.3/libkgpgfile

-- Configuring incomplete, errors occurred!


As you can see, there is a Boost stuff missing together with Doxygen. Again, google wasn't very useful to me, or I lack some background on cmake to understand everything...

thanks!!
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: CMake errors

Wed May 04, 2011 4:31 pm
You have to install the boost-devel package too.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
roger3000
Registered Member
Posts
22
Karma
0

Re: CMake errors

Thu May 05, 2011 5:39 am
thank you so much to both of you, it worked pretty well!!


Bookmarks



Who is online

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