compile failure with git master

Alexandre Peixoto Ferreira alexandref75 at gmail.com
Sun Dec 31 19:41:27 UTC 2017


Thomas and Jack,

I have been having this error for a while and I can fix it by including
the files on dialog/CMakeLists.txt. It seems that some of widgets
dependencies are described there but not all. This patch seems to fix it.

Thanks,


On 12/31/2017 12:00 PM, Jack wrote:
> Thomas,
>
> On 2017.12.31 11:42, Thomas Baumgart wrote:
>> On Sonntag, 31. Dezember 2017 11:33:42 CET Jack Ostroff wrote:
>>
>> > With a fresh pull from git master, I get a compile failure
>> >
>> > [ 20%] Building CXX object
>> >
>> kmymoney/dialogs/CMakeFiles/dialogs.dir/kreportconfigurationfilterdlg.cpp.o
>> >
>> /path-to-source/kmymoney/dialogs/kreportconfigurationfilterdlg.cpp:61:33:
>> > fatal error: ui_reporttabgeneral.h: No such file or directory
>> >   #include <ui_reporttabgeneral.h>
>> >
>> > Looking at an old build folder I still have, that file appears in
>> > /path-to build/kmymoney/widgets/.  If I cd to that directory, type
>> > "make" there, and then resume make in the top build directory, it
>> > completes with no errors.
>> >
>> > I suspect that some recent change to the CMake files changed the order
>> > of things.
>
> Well, I also discovered two new build (actually cmake) issues.  First,
> it appears that building OFX is no longer the default.  I had to
> explicitly add -DENABLE_OFXIMPORTER=TRUE to my cmake line, because
> without it, it did NOT enable ofx.  (We also need to update README.ofx
> - I'll try to do that later today.)  Anyway, I also had some moc
> related warnings on "make install" but we'll see if they also go away
> if I fix this problem.  In addition, "Generate API documentation with
> Doxygen" is now "yes" and I don't think it used to be, and I know I do
> not address it directly in my cmake command.
>
>> Strange.
>> https://build.kde.org/job/Extragear%20kmymoney%20kf5-qt5%20SUSEQt5.9/
>> shows no problems with a build from scratch. And the part you mention
>> is not
>> optional.
>>
>> Try the following:
>>
>>   cd <<your build directory>>
>>   mv CMakeCache.txt CMakeCache.txt.old
>>   cmake <<any options you need>>  <<your src directory>>
>>   make
> OK, I started with an empty build dir, did cmake (with the explicit
> enabling of ofx,) and got the same error.  I then renamed
> CMakeCache.txt and reran cmake.  Same error.
> My cmake command is
>
> cmake -DCMAKE_BUILD_TYPE=Debug
> -DCMAKE_INSTALL_PREFIX=/home/jack/KDE/KMM/installframeworks
> -DLibAlkimia5_DIR=/home/jack/KDE/KMM/installframeworks/lib64/cmake/LibAlkimia-6.0
> -DENABLE_OFXIMPORTER=TRUE ../kmymoney-git
>
> and my build directory is parallel to the source directory.  However,
> I also tried with the build directory under the source directory, and
> had the same result.
>>
>> in case cmake worked
> cmake doesn't produce any errors, but make still fails.
>>
>>   rm CMakeCache.txt.old
>>
>> Regards
>> Thomas Baumgart
> just in case it matters, I have cmake 3.9.6, and Gnu make 4.2.1.  I'm
> currently using gcc 6.4.0.
>
> Jack

-- 
Alexandre P. Ferreira

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20171231/7d159c63/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-dependencies-dialog.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20171231/7d159c63/attachment-0001.bin>


More information about the KMyMoney-devel mailing list