I got excited to see code in the latest release of Unreal 4.12.5 to support SQLite intetration which I plan to use for dedicated servers for storing inventory and player data.

I followed lots of post down interesting rabbit holes. For your personal reading enjoyment, here they are.

This was my first stop, when googling the errors I was getting and it did get me close but I ended up looking further… https://answers.unrealengine.com/questions/184626/sqlitesupport-module-currently-broken.html

This find also helped a bit, but quickly realized that is probably is not what I need to be doing… search continues.https://www.reddit.com/r/unrealengine/comments/2xk2jq/problem_with_using_sqlitesupport_module/

Good approach, and I thought I was on the right track, but did it does miss the exact step by step… so it didn’t end of working http://www.antonsetiawan.com/archives/2016/05/using-sqlite-as-datastore-in-unreal/

In the end, I did find a solution. I made my own… Will it work in production? Too soon to tell, but… the code does compile and I will post the solution to the correct steps to at least get your code to compile. I might need to help Unreal with the changes, or maybe I am such a newbie I didn’t their instructions. Here, you decide 😉

*SQLite database support requires the ‘amalgamated’ source code for sqlite, obtainable at http://www.sqlite.org/download.html. It also requires you to compile the engine from Github source code rather than using the precompiled binary builds from the Unreal Launcher.

Download and extract the Unreal source as per the instructions on Github, then extract the contents (.cpp, .h) from the sqlite amalgamated zip into Engine/Source/ThirdParty/sqlite/sqlite and build it using VisualStudio.

If you are already building the engine from source it is necessary to rebuild it once you’ve added the SQLite files.*