qwindowkit icon indicating copy to clipboard operation
qwindowkit copied to clipboard

Does not work with qmsetup (generating unnecessary outputs from a folder)

Open Sepera-okeq opened this issue 2 months ago • 3 comments

Using this repository as a library causes strange behavior that leads to a breakdown.

Reproducing the problem:

For my project, I made an addition as a qmsetup module in the qmsetup folder, then I made it as a QWK module in the resources/library folder

I used add_subdirectory(resources/library/qwindowkit) and stuff like LINKS QWKWidgets from the example MainWindow.

When building a project, it outputs the following log:

\resources\library\qwindowkit\src\widgets\widgetitemdelegate.cpp(11): fatal error C1083: The file cannot be opened: QWKCore/private/abstractwindowcontext_p.h: No such file or directory,
resources\library\qwindowkit\include\QWKCore\private\../../../../../../../NewLaucnher/resources/library/qwindowkit/src/core/windowagentbase_p.h(18): fatal error C1083: Не удается открыть файл включение: QWKCore/private/abstractwindowcontext_p.h: No such file or directory,
resources\library\qwindowkit\include\QWKCore\private\../../../../../../../NewLaucnher/resources/library/qwindowkit/src/core/windowagentbase_p.h(18): fatal error C1083: Не удается открыть файл включение: QWKCore/private/abstractwindowcontext_p.h: No such file or directory,

I decided to just add it as in your example (I moved it to the repository as a submodule in the library) - as a result, there are some problems with qmsetup (or in the project itself), but it does not want to collect private QWKCore headers.

Use Windows 11, Qt 6, MSVS

My temporary solution (It's a crutch of some kind...)

Open file in build folder (abstractwindowcontext_p.h)

// broken (autogen)
#include "../../../../../../../<root project>/resources/library/qwindowkit/src/core/contexts/abstractwindowcontext_p.h"
// normal
#include "../../../../../<root project>/resources/library/qwindowkit/src/core/contexts/abstractwindowcontext_p.h"

Sepera-okeq avatar Apr 19 '24 22:04 Sepera-okeq