an extensive Qt5 & Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
I only have this problem with JKQtPlotter. All other Qt programs can be compiled without any problems. The same problem occurs again later.
Couldn't open file 'D:/JKQtPlotter/build/lib/jkqtplotter/JKQTPlotter6.dir/Debug/qrc_jkqtpbaseplotter.obj' with CreateFile()
Environment:
Visual Studio 2022 v17.11.5
MSVC 19.41.34123 (x64)
CMake 3.30.5
QT 6.8.0
-- =============================================================================
-- == JKQTPlotterLib Build Information ==
-- =============================================================================
-- Version: 5.0.0
-- CMake Generator: Visual Studio 17 2022
-- is multi-config: YES
-- Build type:
-- Build types: Debug;Release;MinSizeRel;RelWithDebInfo
-- Build shared lib: ON
-- Using CMake: 3.30.5
-- Using CMake Generator: Visual Studio 17 2022
-- Using compiler: MSVC 19.41.34123.0, platform: Windows
-- C++ Standard: C++ 17, required: TRUE
-- LIB-Architecture: CXX: / BASE:
-- bit depth: 64 bit
-- System Name: Windows
-- Processor Name: AMD64
-- Using Qt: 6.8.0
-- [at D:/VisualStudio/SDKs/Qt/6.8.0/msvc2022_64/lib/cmake/Qt6]
-- XITS fonts: LINKED IN
-- FIRA fonts: LINKED IN
-- Print support: ON
-- Timing Info output: ON
-- Precompiled Header: ON
-- build JKQTMath: ON
-- build JKQTMathText: ON
-- build JKQTFastPlotter: OFF
-- build JKQTPlotter: ON
-- Installing to: D:/JKQtPlotter/build/../install
-- =============================================================================
I have a strange build issue with current MSVC and QT 6.8.0. My commands are:
The result looks like this (shortened):
I only have this problem with JKQtPlotter. All other Qt programs can be compiled without any problems. The same problem occurs again later.
Environment:
I have already found a solution using qt_add_resources (https://doc.qt.io/qt-6/qt-add-resources.html):
https://github.com/jkriege2/JKQtPlotter/blob/966a537f4a51ea4109314de54f6267de2ed70c4d/lib/jkqtmathtext/CMakeLists.txt#L35 In line 35 I have replaced the code with the following:
https://github.com/jkriege2/JKQtPlotter/blob/966a537f4a51ea4109314de54f6267de2ed70c4d/lib/jkqtplotter/CMakeLists.txt#L71 In line 71 I have replaced the code with the following: