On 10/2/24 13:03, Jack via KMyMoney-devel wrote:
On 2024.10.02 13:58, Brendan Coupe via KMyMoney-devel wrote:
On 2024-10-02 11:23 AM, Jack Ostroff via KMyMoney-devel wrote:
On 10/2/24 1:02 PM, Brendan Coupe via KMyMoney-devel wrote:

I have been compiling KMM with scripts I wrote 15 or so years ago. I stopped updating 5he 5.1 branch about a year ago when it was clear very little was happening there. I want to switch to the master branch as it appears to be getting close to final release (in completion, not necessarily release date).

I created scripts to compile and install libalkimia so that I have the latest version since Fedora does not supply the necessary version of it.

When I try to compile KMM I get the following output:

======================================================================================

Build type: RelWithDebInfo
-- The following REQUIRED packages have not been found:

-- The following OPTIONAL packages have not been found:
 * libofx (required version >= 7.0.0)

This is just a side effect of how cmake looks for libofx.  It doesn't find it using one naming scheme

-- The following features have been enabled:
 * Encryption, Allows to store your financial data using strong GPG encryption.
 * Doxygen, Generate API documentation with Doxygen (for devs only).
 * Address book, Allows fetching payee information from KDE PIM system.
 * Holidays, Allows fetching holidays from KDE PIM system.
 * Forecast view, Adds possibility to calculate forecasts.
 * Reports view, Adds possibility to display chart and table reports.
 * Budget view, Adds possibility to plan a budget.
 * Online job outbox view, Adds outbox for sending online jobs.
 * SQL Storage, Allows storing your financial data in SQL database.
 * LibOFX, Enables OFX import, export, and Direct Connect using LibOFX library.

But does find it with a different naming, so, as you noted, all is good here.

 * SQLCipher, Allows encrypting your SQLite3 database.
 * KBanking, Interface for the following online banking protocols: HBCI, EBICS, OFX Direct Connect, Paypal
 * Woob, Online banking interface using Woob.
 * iCalendar, iCalendar integration.

-- The following features have been disabled:
 * SQL Tracer, It traces the SQL queries to the console.
 * IBAN/BIC data, Adds predefined IBAN/BIC numbers to KMyMoney (note: doesn't work yet).
 * Cost center support, Adds support for cost centers (for devs only).
 * Warnings as errors, Enforces all warnings to be reported as errors.
 * Model test, Generate modeltest code (for devs only).
 * QtDesigner, Qt-Designer library support (for devs only).

-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found. Stop.
Lets go back to this issue - see comments at the bottom.
======================================================================================

Earlier this year I asked about the libofx error and was told to ignore it since it appears to be ignored and libofx is enabled.

The last 2 lines are the problem.

Please provide us with the exact cmake command you are using.  Cmake is capable of preparing for compiling with either "make" or "ninja."  (I've personally largely switched to the latter, as I find it faster than make, but I thinks it's still a personal choice.)  I forget the default, but if it's creating files for ninja, there will be no Makefile, although I don't know why it would be looking for it in that case.  One other thing you can try is "ccmake ." in the build directory, and look through the options to see if anything looks amiss.

cmake -DCMAKE_INSTALL_PREFIX=/usr/ -DKDE_INSTALL_PLUGINDIR=/usr/lib64/qt5/plugins /usr/local/src/kmm/kmymoney-2024.10.02-11.45.55-GIT-MASTER

I have an option in my build script config file to ask about running ccmake. It was off by default so I forgot about it. I do not remember adding it but I'm sure it was based on advice from the developers. Not sure I ever used it.

When I turn it on I get a bunch of info and this at the bottom:
I'm not sure what you mean by turning anything on.  ccmake is essentially a gui for cmake.  Once you have run cmake, running "ccmake ." in the build dir lets you examine all the various things you could have set on the command line.  Unfortunately, it does not show the selected build system (specified with -G on the command line, but it turns out the Linux default is make.
It's not that important. I have many parameters in  text file that are sourced when I run my varios build scripts. One is named "AskAboutCCMak". It it's true, a dialog box pops up and asks me if I want to run it before running make. If it's false it just runs make. Since it was false, I haven't run ccmake in a while

===================================================================
Qt5Gui_DIR: The directory containing a CMake configuration file for Qt5Gui.
Keys: [enter] Edit an entry [d] Delete an entry CMake Version 3.27.7
      [l] Show log output   [c] Configure
      [h] Help              [q] Quit without generating
      [t] Toggle advanced mode (currently off)

    Qt5Gui_DIR: The directory containing a CMake configuration file for t5Gui.
Keys: [enter] Edit an entry [d] Delete an entry CMake Version 3.27.7
      [l] Show log output   [c] Configure
      [h] Help              [q] Quit without generating
      [t] Toggle advanced mode (currently off)

===================================================================

I'm not sure what to do next. I hit "c" but that doesn't seem to help.
What do you mean doesn't seem to help? Just that it produced the same result?  "c" should have the same effect as running cmake again, but taking into account any changes you have made to any of the settings.  In your case, it most like stops with the same error as above.
It doesn't help because I didn't change anything so not a big surprise.

I forgot to mention I'm on Fedroa 39. I want ot get this done before testing Fedora 40, which did not allow me to run KMM when I first upgraded my test syetm 5 months ago.
If fedora switched from Qt5 to Qt6 between 39 and 40, then to compile KMM you will need to explicitly install the necessary Qt5/KDE5 pieces.  I'm pretty sure all of them can still coexist with their 6 equivalents.
That may be a problem when I upgrade to 40 but it should not be an issue now.

"make: *** No targets specified and no makefile found.  Stop." I just removed "-G ninja" from my cmake command, and it ran fine.  When is the last time you successfully did a build?  Is it possible you are missing one or more packages?  After running cmake, I have 73 Makefiles in or below the build dir.  I'm pretty much grasping at straws now.  I tried adding --log-level=trace to the cmake command, but it had no effect for me - do you get the same?

The last time I successfully built the 5.1 branch was almost a year ago. I think I was able to compile the mast branch in May but I decided to stick with 5.1 since I was not ready to install it on all 3 of my systems.

I found 79 Makefiles in the build directory of my last 5.1 build. There are none in the Master build directory that I just tried to compile.

Here is the output from ccmake:

APPSTREAMCLI /usr/bin/appstreamcli
 BUILD_COVERAGE                   OFF
 BUILD_SHARED_LIBS                ON
 BUILD_STATIC_PLUGINS             OFF
 BUILD_TESTING                    ON
 BUILD_WITH_QT6                   OFF
 CCACHE_PROGRAM                   /usr/bin/ccache
 CMAKE_BUILD_TYPE                 RelWithDebInfo
 CMAKE_INSTALL_PREFIX             /usr
 ECM_DIR                          /usr/share/ECM/cmake
 ENABLE_ACTIVITIES                ON
 ENABLE_ADDRESSBOOK               ON
 ENABLE_BSYMBOLICFUNCTIONS        OFF
 ENABLE_BUDGETVIEW                ON
 ENABLE_COSTCENTER                OFF
 ENABLE_FORECASTVIEW              ON
 ENABLE_GPG                       ON
 ENABLE_HOLIDAYS                  ON
 ENABLE_IBANBICDATA               OFF
 ENABLE_KBANKING                  ON
 ENABLE_LIBICAL                   ON
 ENABLE_LIBOFX                    ON
 ENABLE_ONLINEJOBOUTBOXVIEW      ON
 ENABLE_ONLINEJOBPLUGINMOCKUP     OFF
 ENABLE_REPORTSVIEW               ON
 ENABLE_SQLCIPHER                 ON
 ENABLE_SQLSTORAGE                ON
 ENABLE_SQLTRACER                 OFF
 ENABLE_WOOB                      ON
 FISH_EXECUTABLE                  FISH_EXECUTABLE-NOTFOUND
 GETTEXT_MSGFMT_EXECUTABLE        /usr/bin/msgfmt
 GETTEXT_MSGMERGE_EXECUTABLE      /usr/bin/msgmerge
 GTK_UPDATE_ICON_CACHE_EXECUTAB   /usr/bin/gtk-update-icon-cache
 Gpgmepp_DIR                      /usr/lib64/cmake/Gpgmepp
 KChart_DIR                       /usr/lib64/cmake/KChart
 KDE_CLANG_FORMAT_EXECUTABLE      /usr/bin/clang-format
 KDE_INSTALL_PREFIX_SCRIPT        OFF
 KDE_INSTALL_USE_QT_SYS_PATHS     ON
 KDE_SKIP_UNINSTALL_TARGET        OFF
 KDOCTOOLS_SERIALIZE_TOOL
 KF5Activities_DIR                /usr/lib64/cmake/KF5Activities
 KF5Archive_DIR                   /usr/lib64/cmake/KF5Archive
 KF5Auth_DIR                      /usr/lib64/cmake/KF5Auth
 KF5Bookmarks_DIR                 /usr/lib64/cmake/KF5Bookmarks
 KF5Codecs_DIR                    /usr/lib64/cmake/KF5Codecs
 KF5Completion_DIR                /usr/lib64/cmake/KF5Completion
 KF5ConfigWidgets_DIR /usr/lib64/cmake/KF5ConfigWidgets
 KF5Config_DIR                    /usr/lib64/cmake/KF5Config
 KF5Contacts_DIR                  /usr/lib64/cmake/KF5Contacts
 KF5CoreAddons_DIR                /usr/lib64/cmake/KF5CoreAddons
 KF5DocTools_DIR                  /usr/lib64/cmake/KF5DocTools
 KF5Holidays_DIR                  /usr/lib64/cmake/KF5Holidays
 KF5I18n_DIR                      /usr/lib64/cmake/KF5I18n
 KF5ItemModels_DIR                /usr/lib64/cmake/KF5ItemModels
 KF5ItemViews_DIR                 /usr/lib64/cmake/KF5ItemViews
 KF5JobWidgets_DIR                /usr/lib64/cmake/KF5JobWidgets
 KF5KCMUtils_DIR                  /usr/lib64/cmake/KF5KCMUtils
 KF5KIO_DIR                       /usr/lib64/cmake/KF5KIO
 KF5Notifications_DIR /usr/lib64/cmake/KF5Notifications
 KF5Service_DIR                   /usr/lib64/cmake/KF5Service
 KF5Solid_DIR                     /usr/lib64/cmake/KF5Solid
 KF5Sonnet_DIR                    /usr/lib64/cmake/KF5Sonnet
 KF5TextEditTextToSpeech_DIR /usr/lib64/cmake/KF5TextEditTextToSpeech
 KF5TextWidgets_DIR /usr/lib64/cmake/KF5TextWidgets
 KF5WidgetsAddons_DIR /usr/lib64/cmake/KF5WidgetsAddons
 KF5WindowSystem_DIR /usr/lib64/cmake/KF5WindowSystem
 KF5XmlGui_DIR                    /usr/lib64/cmake/KF5XmlGui
 KI18N_PYTHON_EXECUTABLE          /usr/bin/python3
 KPim5Akonadi_DIR                 /usr/lib64/cmake/KPim5Akonadi
 KPim5IdentityManagement_DIR /usr/lib64/cmake/KPim5IdentityManagement
 KPim5TextEdit_DIR                /usr/lib64/cmake/KPim5TextEdit
 LibAlkimia5_DIR /usr/lib64/cmake/LibAlkimia5-8.1
 LibIcal_DIR                      /usr/lib64/cmake/LibIcal
 QGpgme_DIR                       /usr/lib64/cmake/QGpgme
 QT_INSTALL_DIR                   /usr/lib64/qt5
QUERY_EXECUTABLE                 /usr/lib64/qt5/bin/qmake
 Qt5Concurrent_DIR                /usr/lib64/cmake/Qt5Concurrent
 Qt5Core_DIR                      /usr/lib64/cmake/Qt5Core
 Qt5DBus_DIR                      /usr/lib64/cmake/Qt5DBus
 Qt5Gui_DIR                       /usr/lib64/cmake/Qt5Gui
 Qt5Keychain_DIR                  /usr/lib64/cmake/Qt5Keychain
 Qt5Network_DIR                   /usr/lib64/cmake/Qt5Network
 Qt5Positioning_DIR /usr/lib64/cmake/Qt5Positioning
 Qt5PrintSupport_DIR /usr/lib64/cmake/Qt5PrintSupport
 Qt5QmlModels_DIR                 /usr/lib64/cmake/Qt5QmlModels
 Qt5Qml_DIR                       /usr/lib64/cmake/Qt5Qml
 Qt5QuickWidgets_DIR /usr/lib64/cmake/Qt5QuickWidgets
 Qt5Quick_DIR                     /usr/lib64/cmake/Qt5Quick
 Qt5Sql_DIR                       /usr/lib64/cmake/Qt5Sql
 Qt5Svg_DIR                       /usr/lib64/cmake/Qt5Svg
 Qt5Test_DIR                      /usr/lib64/cmake/Qt5Test
 Qt5WebChannel_DIR                /usr/lib64/cmake/Qt5WebChannel
 Qt5WebEngineCore_DIR /usr/lib64/cmake/Qt5WebEngineCore
 Qt5WebEngineWidgets_DIR /usr/lib64/cmake/Qt5WebEngineWidgets
 Qt5Widgets_DIR                   /usr/lib64/cmake/Qt5Widgets
 Qt5Xml_DIR                       /usr/lib64/cmake/Qt5Xml
 Qt5_DIR                          /usr/lib64/cmake/Qt5
 USE_MODELTEST                   OFF
 USE_QT_DESIGNER                  OFF
 WARNINGS_AS_ERRORS               OFF
 X11_xcb_xkb_INCLUDE_PATH         /usr/include
 aqbanking_DIR                    /usr/lib64/cmake/aqbanking-6.5
 gwengui-cpp_DIR /usr/lib64/cmake/gwengui-cpp-5.10
 gwengui-qt5_DIR /usr/lib64/cmake/gwengui-qt5-5.10
 gwenhywfar_DIR /usr/lib64/cmake/gwenhywfar-5.10
 libofx_DIR                       /usr/lib64/cmake/libofx

--

*Brendan Coupe*
*3...@coupe7.com*


Reply via email to