I’m trying to include sqlite3 by copying the [amalgamation files][1] into the project, however am getting these errors when building:
C:\MyProject\Plugins\SQLite\Source\SQLite\ThirdParty\sqlite3.c : fatal error C1853: 'C:\MyProject\Intermediate\Build\Win64\MyProjectEditor\DebugGame\Plugins\Dynamic\SQLite\SQLite.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
1>C:\MyProject\Plugins\SQLite\Source\SQLite\ThirdParty\shell.c : fatal error C1853: 'C:\MyProject\Intermediate\Build\Win64\MyProjectEditor\DebugGame\Plugins\Dynamic\SQLite\SQLite.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
[This thread][2] recommends to disable pre compiled headers for those files, however I don’t get the option in Visual Studio.
I’ve submitted a pull request to add a SQLite module to the engine that you’ll be able to use in your projects.
Its intended to expose a similar interface to the existing database classes rather than give direct access to the API, but you may find it useful for creating a custom module that you can then reference in your own projects. You can find the pull request (which is still pending) here.
As mentioned a pull request for this support has been submitted and should be accepted. This will be included in a future update to the engine as an optional module.
I am able to build the project successfully. I am able to see the database content in editor play. But whenever i try to launch/package the project it fails.
You may need to create a new post for your issue. The original issue here was problems setting up / using SQLite which it sounds like you’re able to do successfully. Be sure to include information in your post about what exactly is failing when you package the project.