I have build only the libtiled library from the source files, and used it to import it into a C++ app.
I am currently just playing around with it, but when I try to create a tileset;
auto tileset = Tiled::Tileset::create(“DummyTileset”, 32, 32, 0, 0);
It keeps giving me the error:
QPixmap: Must construct a QGuiApplication before a QPixmap
At the start of my main() function, I did create an QGuiApplication though.
I have looked through the source code, but since I have a novice understanding of C++, I can’t find the issue.
I hope someone can help me to the right trail, thank you.
I am using debug mode, in Visual Studio 2022. I did make sure to build the library .qbs with those that version in mind. The code is also made in VS, maybe that can make a difference?
To add to that, I installed Qt with MSVC2022 aswell (Windows 11). I only build the .qbs file from the libtiled folder (from the github ./src). The rest of the github(‘s source files) I did not build.
I think the problem lied by the way I built the Tiled library. An other member of my project group built it with CMake instead of the .qbs and that one does work.