Master Branch Compile Error
Jack
ostroffjh at users.sourceforge.net
Wed Oct 2 20:03:17 BST 2024
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.
>
> ===================================================================
> 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.
>
> 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.
"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?
More information about the KMyMoney-devel
mailing list