Closed francescoraves483 closed 3 months ago
My first guess is that Qt itself isn't in your PATH, since the SyntaxHighlighting build requires running at least one executable linked against the Qt libraries... The install-qt-action in CI does this automatically, which makes it sort of a hidden dependency. Try adding P:/Qt5/5.15.2/msvc2019/bin
to your PATH and see if that helps
Thanks a lot for the suggestion (unfortunately, cmake was not providing any useful hint on which was the actual problem, limiting itself to report an error code equal to -1073741515 = DLL not found)! That was indeed my issue. After adding P:/Qt5/5.15.2/msvc2019/bin
to the PATH, now the cmake build process for KF5SyntaxHighlighting completes succesfully.
After installing KF5SyntaxHighlighting with the install
target, I can now compile CCTools successfully with Visual Studio on Windows, just like I was doing with CLion on Ubuntu.
Hello, I am opening this issue as I made several attempts, but I am still unable to build CCTools on Windows, even if the Win32-CI workflow works as expected. My last attempt was with Visual Studio, on Windows 11, closely following the commands reported in the GitHub workflow file: https://github.com/zrax/cctools/actions/runs/9537696031/workflow
The steps I followed are:
I installed Qt 5.15.2 in my disk P: with the online Qt Installer
I installed Visual Studio Community 2022 with the win32_msvc2019 compiler.
I installed then the Qt Visual Studio Tools, selecting as Qt path (under Debug -> Options -> Qt -> Version) "P:\Qt5\5.12.5\msvc2019"
I downloaded, compiled and installed extra-cmake-modules 5.98.0 with the following commands, using the Developer Command Prompt for VS 2022:
The build was successful.
I downloaded strawberry-perl-5.38.2.2 (portable version) as it seems to be a dependency for KF5SyntaxHighlighting, and added to the PATH the strawberry-perl-5.38.2.2-64bit-portable\perl\bin directory
I tried compiling KF5SyntaxHighlighting, that seems to be a required dependency for CCTools:
The build fails with:
I tried with KF5SyntaxHighlighting 5.116.0, but I get exactly the same issue.
Therefore, CCTools cannot be compiled as it cannot find the KF5SyntaxHighlighting dependency.
I have cmake version 3.28.3-msvc11, and the output of the cmake command for KF5SyntaxHighlighting is the following:
Do you know if I missed some steps or if there is another alternative way to get KF5SyntaxHighlighting other than compiling from source?
Thank you very much in advance!