Missing includes

Lorenzo Bertini lorenzobertini97 at gmail.com
Mon Nov 18 11:36:32 UTC 2024


Currently, there is no way except hacks to tell meson that some cpp files
are not to be compiled but included. I have opened an issue in their repo.
In the meanwhile let's put the patches on hold.

Lorenzo

Il giorno lun 18 nov 2024 alle ore 10:47 Lorenzo Bertini <
lorenzobertini97 at gmail.com> ha scritto:

> It has occurred to me that something is wrong with this build because to
> have multiple definitions of functions, so I must be including things
> twice, once where I shouldn't. This is probably it. I'll report back once I
> figure this out.
>
> Thanks for the help,
> Lorenzo
>
> Il giorno lun 18 nov 2024 alle ore 10:41 Lorenzo Bertini <
> lorenzobertini97 at gmail.com> ha scritto:
>
>> I'm on GCC 14, Fedora 41. C++ standard is set to C++17. I call it with a
>> meson.build like this:
>>
>> sources = [ 'DockView.cpp', ... ]
>>
>> ui_files = [ 'ui/AboutUi.ui', ... ]
>>
>> moc_headers = [ 'Action.h', ... ]
>>
>> ui_headers = qt_mod.compile_ui(sources: ui_sources)
>> moc_sources = qt_mod.compile_moc(headers: moc_headers)
>>
>> lyxqt = static_library(
>>   'lyxqt',
>>   sources, moc_sources, ui_headers,
>>   dependencies: [qt_dep],
>>   include_directories: [root_dir, src_dir, frontends_dir, nod_dir],
>>   cpp_args: qt_cppflags + ['-DQT_NO_CAST_TO_ASCII'],
>> )
>>
>> Il giorno lun 18 nov 2024 alle ore 10:35 Pavel Sanda <sanda at lyx.org> ha
>> scritto:
>>
>>> nOn Mon, Nov 18, 2024 at 10:04:57AM +0100, Lorenzo Bertini wrote:
>>> > I have included everything in the patch. When I look at those errors,
>>> the
>>> > fix seems like a best practice to me, this is why I'm proposing the
>>> > changes. Also, I can't figure how can CMake and Autotools still finish
>>> the
>>> > build.
>>>
>>> I am surprised that you need those changes, e.g. TempFile.
>>> What compiler you use and how you call it? What OS you are on?
>>>
>>> Pavel
>>> --
>>> lyx-devel mailing list
>>> lyx-devel at lists.lyx.org
>>> https://lists.lyx.org/mailman/listinfo/lyx-devel
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20241118/85121d6a/attachment.htm>


More information about the lyx-devel mailing list