Bug 458715 - unable to build the lib
Summary: unable to build the lib
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: framework (other bugs)
Version First Reported In: 5.97.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-04 21:05 UTC by yannick.kohn
Modified: 2022-09-05 12:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
msvc build error and cmd rcc error (145.01 KB, image/png)
2022-09-04 21:05 UTC, yannick.kohn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yannick.kohn 2022-09-04 21:05:20 UTC
Created attachment 151819 [details]
msvc build error and cmd rcc error

Hi,

I have tried to compile the lib on Windows MSVC 2019 x64 and Qt 5.15.6 
I have followed the guideline to compile the last snapshot available on github
I use cmake and then open the .sln generated. It seems that the cpp file from the qrc is not generated. If it try to do the rcc manually, it failed because the file index.katesyntax is not present.  I have missed something ?
Comment 1 Nicolas Fella 2022-09-04 22:08:17 UTC
index.katesyntax is generated at build time: https://invent.kde.org/frameworks/syntax-highlighting/-/blob/master/data/CMakeLists.txt#L60 and is marked as a dependency of the qrc build: https://invent.kde.org/frameworks/syntax-highlighting/-/blob/master/data/CMakeLists.txt#L68

It builds fine on our Windows CI: https://invent.kde.org/frameworks/syntax-highlighting/-/jobs/461572

That uses the Ninja CMake generator though, not the Visual Studio generator. I don't see anything obviously wrong in out CMake code, so this might be a bug in CMake
Comment 2 yannick.kohn 2022-09-05 12:00:59 UTC
Hi,

I have tried with Ninja and it works fine. Files are generated and it compiles without issue. I guess can be good to specify this on the windows build guidelines! Thanks !