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

Compile 5.0.7 on Ubuntu 18.04

Tags: None
(comma "," separated)
User avatar
christiandecker
Registered Member
Posts
4
Karma
0
OS

Compile 5.0.7 on Ubuntu 18.04

Thu Sep 26, 2019 10:46 am
Hallo,

currently I'm trying to compile KMM in version 5.0.7 on Ubuntu 18.04.

I just followed the introduction in README.cmake and I can start KMM.

There is only one problem: I have no plugins in the settings area, so KMM starts with an error that there is no plugin to load data.

Can some one help me?

Greets,
Christian
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: Compile 5.0.7 on Ubuntu 18.04  Topic is solved

Thu Sep 26, 2019 11:20 am
Make sure your plugins are installed in the directory shown by kf5-config --qt-plugins (that is dash dash qt dash plugins) and the application is installed in the location where all other KDE apps live (on most distros /usr/bin).

Before you execute any of the following run make uninstall (possibly with sudo as root) to get rid of the current installation to avoid dangling files.

If any of the above paths differ,
  • rerun cmake with -DKDE_INSTALL_PLUGINDIR=xxx where xxx is the output of the above kf5-config --qt-plugins and -DCMAKE_INSTALL_PREFIX=/usr command
  • rebuild/reinstall KMyMoney
  • let us know, if it worked (or not)

That should do the trick.


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

Re: Compile 5.0.7 on Ubuntu 18.04

Thu Sep 26, 2019 3:30 pm
Oh perfect but now I've the next issue.

I compiled and installed gwenhywfar-4.99.18rc2 and aqbanking-5.99.32beta

And now I'm getting this error during compiling KMM:

Code: Select all
[ 95%] Linking CXX shared module ../../../lib/kbanking.so
CMakeFiles/kbanking.dir/gwenkdegui.cpp.o: In Funktion »gwenKdeGui::getPassword(unsigned int, char const*, char const*, char const*, char*, int, int, GWEN_GUI_PASSWORD_METHOD, GWEN_DB_NODE*, unsigned int)«:
/home/chris/Downloads/kmymoney-5.0.7/kmymoney/plugins/kbanking/gwenkdegui.cpp:60: Warnung: undefinierter Verweis auf »CppGui::getPassword(unsigned int, char const*, char const*, char const*, char*, int, int, GWEN_GUI_PASSWORD_METHOD, GWEN_DB_NODE*, unsigned int)«
CMakeFiles/kbanking.dir/gwenkdegui.cpp.o: In Funktion »gwenKdeGui::getPasswordText(unsigned int, char const*, char const*, char const*, char*, int, int, GWEN_GUI_PASSWORD_METHOD, GWEN_DB_NODE*, unsigned int)«:
/home/chris/Downloads/kmymoney-5.0.7/kmymoney/plugins/kbanking/gwenkdegui.cpp:60: Warnung: undefinierter Verweis auf »CppGui::getPassword(unsigned int, char const*, char const*, char const*, char*, int, int, GWEN_GUI_PASSWORD_METHOD, GWEN_DB_NODE*, unsigned int)«
collect2: error: ld returned 1 exit status
kmymoney/plugins/kbanking/CMakeFiles/kbanking.dir/build.make:274: recipe for target 'lib/kbanking.so' failed
make[2]: *** [lib/kbanking.so] Error 1
CMakeFiles/Makefile2:8111: recipe for target 'kmymoney/plugins/kbanking/CMakeFiles/kbanking.dir/all' failed
make[1]: *** [kmymoney/plugins/kbanking/CMakeFiles/kbanking.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: Compile 5.0.7 on Ubuntu 18.04

Fri Sep 27, 2019 5:40 am
Da fehlen dem Linker wohl ein paar (neue) Funktionen (e.g. CppGui::getPassword()) Hast Du evtl. noch irgendwo alte AqBanking/Gwenhywfar Versionen rumliegen, die da herangezogen werden sollen? Ware interessant zu sehen, was da bei make VERBOSE=1 als komplettes Kommando zu aufgerufen wird. Das gibt Dir vielleicht Hinweise, wo Du suchen solltest.


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

Re: Compile 5.0.7 on Ubuntu 18.04

Fri Sep 27, 2019 12:22 pm
I had the same problem with Ubuntu 18.04. I removed the gwenhywfar-dev package and make ran through. Then to make sure I don't get other errors I un-installed aqbanking and gwenhywfar. I rebuild and installed in this order: gwenhywfar-4.99.16beta, aqbanking-5.99.33beta, kmymoney-5.0.7.

I can start KMyMoney now but I can't setup aqbanking in it.

Any help would be appreciated.
User avatar
christiandecker
Registered Member
Posts
4
Karma
0
OS

Re: Compile 5.0.7 on Ubuntu 18.04

Fri Sep 27, 2019 1:09 pm
Also ich habe gesehen, dass ich echt noch ein paar Sachen nicht deinstalliert hatte und habe dann mit sudo apt autoremove die DInge entfernt und alles neu compiliert und installiert. Allerdings hängt es immer noch an dem gleichen Punkt. Mit make VERBOSE=1 kommt das folgenden. Ich kann damit leider nichts anfangen.

Code: Select all
[ 94%] Linking CXX shared module ../../../lib/kbanking.so
cd /home/chris/Downloads/kmymoney-5.0.7/build/kmymoney/plugins/kbanking && /usr/bin/cmake -E cmake_link_script CMakeFiles/kbanking.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -std=c++0x -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -fexceptions -Wall -Wextra -Wlogical-op -Wno-null-dereference -Wshadow -Wunused -Wno-misleading-indentation -Wsuggest-override -Wcast-qual -Wformat=2 -fno-common -O2 -g -DNDEBUG -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags  -Wl,--as-needed -Wl,--no-undefined -shared  -o ../../../lib/kbanking.so CMakeFiles/kbanking.dir/kbanking.cpp.o CMakeFiles/kbanking.dir/banking.cpp.o CMakeFiles/kbanking.dir/aqbankingkmmoperators.cpp.o CMakeFiles/kbanking.dir/gwenhywfarqtoperators.cpp.o CMakeFiles/kbanking.dir/gwenkdegui.cpp.o CMakeFiles/kbanking.dir/kbankingsettings.cpp.o CMakeFiles/kbanking.dir/kbanking_autogen/mocs_compilation.cpp.o -Wl,-rpath,/home/chris/Downloads/kmymoney-5.0.7/build/lib: ../../../lib/libkbanking_dialogs.a ../../../lib/libkbanking_widgets.a ../../../lib/libkbanking_tasksettings.a /usr/lib/libgwenhywfar.so.78 /usr/lib/x86_64-linux-gnu/libgwengui-cpp.so /usr/lib/x86_64-linux-gnu/libgwengui-qt5.so /usr/lib/libaqbanking.so.43 ../../../lib/libwidgets.a ../../../lib/libkmymoney_base.a ../../../lib/libdialogs.a /usr/lib/x86_64-linux-gnu/libKChart.so.2.6.0 ../../../lib/libkmm_utils_platformtools.a /usr/lib/x86_64-linux-gnu/libKF5KIOGui.so.5.44.0 ../../../lib/libkmm_utils_validators.a ../../../lib/libkmm_widgets.so.5.0.7 /usr/lib/x86_64-linux-gnu/libKF5Notifications.so.5.44.0 ../../../lib/libkmm_models.so.5.0.7 ../../../lib/libkmm_settings.so.5.0.7 ../../../lib/libkmm_mymoney.so.5.0.7 ../../../lib/libkmm_plugin.so.5.0.7 ../../../lib/libkmm_icons.so.5.0.7 /usr/lib/x86_64-linux-gnu/libKF5IdentityManagement.so.5.7.3.abi1 /usr/lib/x86_64-linux-gnu/libKF5PimTextEdit.so.5.7.3.abi2 /usr/lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5.7.3.abi1 /usr/lib/x86_64-linux-gnu/libKF5ItemModels.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5Contacts.so.5.7.3 /usr/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5JobWidgets.so.5.44.0 /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5.9.5 /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5TextWidgets.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5Service.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5Completion.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5SonnetUi.so.5.44.0 /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5.9.5 /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5.9.5 /usr/lib/x86_64-linux-gnu/libQt5Network.so.5.9.5 /usr/lib/x86_64-linux-gnu/libKF5IconThemes.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5ItemViews.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5ConfigWidgets.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5ConfigGui.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5ConfigCore.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5I18n.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5Codecs.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5Auth.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5.44.0 /usr/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5.44.0 ../../../lib/libonlinetask_interfaces.a /usr/lib/x86_64-linux-gnu/libalkimia5.so.7.0.2 /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5.9.5 -lgmp ../../../lib/libkmm_payeeidentifier.so.5.0.7 /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5.9.5 /usr/lib/x86_64-linux-gnu/libgwengui-cpp.so /usr/lib/libgwenhywfar.so.78 /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.5 /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.9.5 /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.5
CMakeFiles/kbanking.dir/gwenkdegui.cpp.o: In Funktion »gwenKdeGui::getPassword(unsigned int, char const*, char const*, char const*, char*, int, int, GWEN_GUI_PASSWORD_METHOD, GWEN_DB_NODE*, unsigned int)«:
/home/chris/Downloads/kmymoney-5.0.7/kmymoney/plugins/kbanking/gwenkdegui.cpp:60: Warnung: undefinierter Verweis auf »CppGui::getPassword(unsigned int, char const*, char const*, char const*, char*, int, int, GWEN_GUI_PASSWORD_METHOD, GWEN_DB_NODE*, unsigned int)«
CMakeFiles/kbanking.dir/gwenkdegui.cpp.o: In Funktion »gwenKdeGui::getPasswordText(unsigned int, char const*, char const*, char const*, char*, int, int, GWEN_GUI_PASSWORD_METHOD, GWEN_DB_NODE*, unsigned int)«:
/home/chris/Downloads/kmymoney-5.0.7/kmymoney/plugins/kbanking/gwenkdegui.cpp:60: Warnung: undefinierter Verweis auf »CppGui::getPassword(unsigned int, char const*, char const*, char const*, char*, int, int, GWEN_GUI_PASSWORD_METHOD, GWEN_DB_NODE*, unsigned int)«
collect2: error: ld returned 1 exit status
kmymoney/plugins/kbanking/CMakeFiles/kbanking.dir/build.make:274: recipe for target 'lib/kbanking.so' failed
make[2]: *** [lib/kbanking.so] Error 1
make[2]: Verzeichnis „/home/chris/Downloads/kmymoney-5.0.7/build“ wird verlassen
CMakeFiles/Makefile2:8111: recipe for target 'kmymoney/plugins/kbanking/CMakeFiles/kbanking.dir/all' failed
make[1]: *** [kmymoney/plugins/kbanking/CMakeFiles/kbanking.dir/all] Error 2
make[1]: Verzeichnis „/home/chris/Downloads/kmymoney-5.0.7/build“ wird verlassen
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
User avatar
christiandecker
Registered Member
Posts
4
Karma
0
OS

Re: Compile 5.0.7 on Ubuntu 18.04

Wed Oct 23, 2019 3:48 am
Ich hab mir jetzt mit einem Workaround geholfen. Für OpenSUSE gibt es bereits eine kompilierte 5.0.7 mit aqbanking. Ich hab mit daher eine VM mit OpenSUSE aufgesetzt und warte solange bis die 5.0.7 offiziell für Ubuntu und Debian existiert.

Tausend dank für die Hilfe.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: Compile 5.0.7 on Ubuntu 18.04

Wed Oct 23, 2019 5:42 am
Trotz des gefunden Workarounds (die ganz große Kelle geschwungen :) ) hier noch ein Hinweis aus dem VERBOSE=1 log: da werden die beiden Libs aus unterschiedlichen Locations verwendet und die passen vermutlich nicht zusammen. Da ist also noch etwas Aufräumen notwendig (auch für die Zukunft)

/usr/lib/x86_64-linux-gnu/libgwengui-cpp.so vs. /usr/lib/libgwenhywfar.so.78

Die libgwengui-cpp muss aus dem gleichen Verzeichnis wie die libgwenhywfar verwendet werden. Sonst kommt es vermutlich zu dem beobachteten 'Symbol not found' Problem beim Linken. Wo kommt diese Datei in /usr/lib/x86_64-linux-gnu eigentlich her? Aus einem Paket oder von alten Versuchen? Ich wäre natürlich an Ergebnissen interessiert.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar