Jusas / SQLite3UE4

SQLite3 Database Plugin for Unreal Engine 4
MIT License
68 stars 53 forks source link

SQLite Launching #10

Open pranav2w opened 9 years ago

pranav2w commented 9 years ago

I had download SQLite3UE4-master.zip file.

After extracting it. I tried to launch SQLite.uproject.

And found:

1st_msg

Press 'Yes'

It goes to start building project.

2nd

After that comes Error

3rd_msg

If I launch project again below message pop-up and asking to rebuild.

4th

But "SQLite3UE4-master\Plugins\SQLite3UE4Plugin\Binaries\Win64" contains two files

5th

My Unreal Engine Version : 4.8.2 My Visual Studio : vs

I am stuck here since 3 days. Kindly Help me out of it.

KhArtNJava commented 9 years ago

Hi! Master branch of this repo contains errors. I've made a lot of changes in my fork and made pull request https://github.com/Jusas/SQLite3UE4/pull/8 - it's reverted by @Jusas . Because of that I breaked development of this plugin on my fork and re-coded my project for using another data files instead of this plugin. I don't recommend you to use this plugin. There are too many errors and issues with this plugin.

Jusas commented 9 years ago

@pranav2w: That information doesn't really tell anything. In any case I must agree with Arthur, I no longer have the time or the interest to develop this plugin any further so I'm afraid you're on your own.

pranav2w commented 9 years ago

@Jusas and @KhArtNJava Here is the log file generated after my attempt of using this plugin.

[2015.08.04-07.35.02:954][ 0]Log file open, 08/04/15 13:05:02 [2015.08.04-07.35.02:955][ 0]LogInit:Display: Running engine for game: SQLite [2015.08.04-07.35.02:955][ 0]LogInit:Display: RandInit(1645489728) SRandInit(1645489728). [2015.08.04-07.35.02:955][ 0]LogTaskGraph: Started task graph with 4 named threads and 7 total threads. [2015.08.04-07.35.02:955][ 0]LogStats: Stats thread started [2015.08.04-07.35.02:955][ 0]LogInit:Warning: Incompatible or missing module: UE4Editor-SQLite.dll [2015.08.04-07.35.02:955][ 0]LogInit:Warning: Incompatible or missing module: UE4Editor-SQLite3UE4Plugin.dll [2015.08.04-07.35.34:837][ 0]Running C:/Program Files/Epic Games/4.8/Engine/Binaries/DotNET/UnrealBuildTool.exe SQLite Development Win64 -project="C:/Users/Pranav/Desktop/SQLite3UE4-master/SQLite.uproject" -rocket -editorrecompile -progress -noubtmakefiles [2015.08.04-07.35.41:344][ 0]Parsing headers for SQLiteEditor [2015.08.04-07.35.49:245][ 0]Reflection code generated for SQLiteEditor [2015.08.04-07.35.52:245][ 0]Performing 16 actions (4 in parallel) [2015.08.04-07.35.52:245][ 0][3/16] Resource ModuleVersionResource.rc.inl [2015.08.04-07.35.52:245][ 0][4/16] Resource PCLaunch.rc [2015.08.04-07.35.52:345][ 0]PCH.SQLite3UE4PluginPrivatePCH.h.cpp [2015.08.04-07.35.52:345][ 0]PCH.SQLite.h.cpp [2015.08.04-07.35.52:445][ 0][5/16] Resource ModuleVersionResource.rc.inl [2015.08.04-07.35.52:445][ 0][6/16] Resource SQLite.rc [2015.08.04-07.35.55:245][ 0]SQLiteBlueprintFunctionLibrary.cpp [2015.08.04-07.35.55:245][ 0]SQLite3UE4Plugin.generated.cpp [2015.08.04-07.35.55:245][ 0]SQLite3UE4Plugin.cpp [2015.08.04-07.35.55:445][ 0]SQLiteDatabase.cpp [2015.08.04-07.36.11:246][ 0]C:\Users\Pranav\Desktop\SQLite3UE4-master\Plugins\SQLite3UE4Plugin\Source\SQLite3UE4Plugin\Private\SQLiteBlueprintFunctionLibrary.cpp(20) : warning C4996: 'StaticConstructObject': StaticConstructObject is deprecated, please use NewObject instead. For internal CoreUObject module usage, please use StaticConstructObject_Internal. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [2015.08.04-07.36.11:246][ 0] c:\program files\epic games\4.8\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(212) : see declaration of 'StaticConstructObject' [2015.08.04-07.36.16:446][ 0][11/16] Link UE4Editor-SQLite3UE4Plugin.dll [2015.08.04-07.36.16:746][ 0]SQLite3.x64.lib(sqlite3.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance [2015.08.04-07.36.17:046][ 0] Creating library C:\Users\Pranav\Desktop\SQLite3UE4-master\Plugins\SQLite3UE4Plugin\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-SQLite3UE4Plugin.lib and object C:\Users\Pranav\Desktop\SQLite3UE4-master\Plugins\SQLite3UE4Plugin\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-SQLite3UE4Plugin.exp [2015.08.04-07.36.17:046][ 0]Generating code [2015.08.04-07.36.19:246][ 0]MyActor.cpp [2015.08.04-07.36.19:246][ 0]SQLite.generated.cpp [2015.08.04-07.36.19:246][ 0]SQLiteGameMode.cpp [2015.08.04-07.36.19:546][ 0]C:\Users\Pranav\Desktop\SQLite3UE4-master\Plugins\SQLite3UE4Plugin\Source\SQLite3UE4Plugin\Classes\SQLiteDatabase.h(185) : error C2061: syntax error : identifier 'sqlite3' [2015.08.04-07.36.19:546][ 0]SQLite.cpp [2015.08.04-07.36.21:546][ 0]Finished generating code [2015.08.04-07.36.22:046][ 0]-------- End Detailed Actions Stats ----------------------------------------------------------- [2015.08.04-07.36.22:046][ 0]ERROR: UBT ERROR: Failed to produce item: C:\Users\Pranav\Desktop\SQLite3UE4-master\Binaries\Win64\UE4Editor-SQLite.dll [2015.08.04-07.36.22:146][ 0]Total build time: 46.97 seconds [2015.08.04-07.36.22:489][ 0]LogInit:Warning: Still incompatible or missing module: UE4Editor-SQLite.dll [2015.08.04-07.36.43:266][ 0]LogExit: Preparing to exit. [2015.08.04-07.36.43:267][ 0]LogModuleManager: Shutting down and abandoning module DesktopPlatform (14) [2015.08.04-07.36.43:267][ 0]LogModuleManager: Shutting down and abandoning module TextureCompressor (13) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module ShaderCore (12) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module Landscape (11) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module SlateRHIRenderer (10) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module OpenGLDrv (9) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module D3D11RHI (8) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module Renderer (7) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module Engine (6) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module CoreUObject (5) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module NetworkFile (4) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module StreamingFile (3) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module SandboxFile (2) [2015.08.04-07.36.43:268][ 0]LogModuleManager: Shutting down and abandoning module PakFile (1) [2015.08.04-07.36.43:269][ 0]LogExit: Exiting. [2015.08.04-07.36.43:273][ 0]Log file closed, 08/04/15 13:06:43


After solving the syntax error problem by following changes

  1. Add "#include sqlite3.h" in SQLiteDatabase.h file.
  2. change "StaticConstructObject_Internal" from "StaticConstructObject" in SQLiteBlueprintFunctionLibrary.cpp

By making the above changes I am able to open the project and play project successfully.

But when I launch the project, It says launch failure. Log file of that is in my next comment

KhArtNJava commented 9 years ago

Use https://github.com/KhArtNJava/SQLite3UE4

pranav2w commented 9 years ago

@Jusas and @KhArtNJava Thanks for your help. By using it I am getting launch failure error. Here is my log file.

https://www.dropbox.com/s/ixjp6of8mstzt7p/newlogfile.txt?dl=0

KhArtNJava commented 9 years ago

Look at my previous 2 comments. Can you reproduce this error with sources from my fork https://github.com/KhArtNJava/SQLite3UE4 ?

pranav2w commented 9 years ago

@KhArtNJava : Yes I used your source (https://github.com/KhArtNJava/SQLite3UE4). I am able to reproduce the same error.

KhArtNJava commented 9 years ago

Very interesting... Close UE, MS VS 2013. After that remove folders Intermediate, Saved, Build. Remove MS VS 2013 (optional step). Re-install MS VS 2013 (optional step). Open UE, re-generate MS VS project files. Re-build (re-compile) or re-package your game.

pranav2w commented 9 years ago

@KhArtNJava : I followed your steps. Still I am getting the same error while launching the game.

Here is my build Log file:

1>------ Build started: Project: SQLite, Configuration: Development_Editor x64 ------ 2>------ Skipped Build: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------ 2>Project not selected to build for this solution configuration 1> Compiling game modules for hot reload 1> Parsing headers for SQLiteEditor 1> Reflection code generated for SQLiteEditor 1> Performing 16 actions (4 in parallel) 1> [4/16] Resource PCLaunch.rc 1> [3/16] Resource ModuleVersionResource.rc.inl 1> PCH.SQLite3UE4PluginPrivatePCH.h.cpp 1> PCH.SQLite.h.cpp 1> [5/16] Resource ModuleVersionResource.rc.inl 1> [6/16] Resource SQLite.rc 1> SQLite3UE4Plugin.generated.cpp 1> SQLite3UE4Plugin.cpp 1> SQLiteBlueprintFunctionLibrary.cpp 1> SQLiteDatabase.cpp 1>E:\Computer\Documents\Unreal Projects\SQLite3UE4-master\SQLite3UE4-master\Plugins\SQLite3UE4Plugin\Source\SQLite3UE4Plugin\Private\SQLiteBlueprintFunctionLibrary.cpp(20): warning C4996: 'StaticConstructObject': StaticConstructObject is deprecated, please use NewObject instead. For internal CoreUObject module usage, please use StaticConstructObject_Internal. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. 1> c:\program files\epic games\4.8\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(212) : see declaration of 'StaticConstructObject' 1> [11/16] Link UE4Editor-SQLite3UE4Plugin-2804.dll 1> SQLite3.x64.lib(sqlite3.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance 1> Creating library E:\Computer\Documents\Unreal Projects\SQLite3UE4-master\SQLite3UE4-master\Plugins\SQLite3UE4Plugin\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-SQLite3UE4Plugin-2804.lib and object E:\Computer\Documents\Unreal Projects\SQLite3UE4-master\SQLite3UE4-master\Plugins\SQLite3UE4Plugin\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-SQLite3UE4Plugin-2804.exp 1> Generating code 1> MyActor.cpp 1> SQLite.generated.cpp 1> SQLiteGameMode.cpp 1> Finished generating code 1> SQLite.cpp 1> [16/16] Link UE4Editor-SQLite-5335.dll 1> Creating library E:\Computer\Documents\Unreal Projects\SQLite3UE4-master\SQLite3UE4-master\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-SQLite-5335.lib and object E:\Computer\Documents\Unreal Projects\SQLite3UE4-master\SQLite3UE4-master\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-SQLite-5335.exp 1> -------- End Detailed Actions Stats ----------------------------------------------------------- 1> Total build time: 42.32 seconds

========== Build: 1 succeeded, 0 failed, 0 up-to-date, 1 skipped ==========

Here is my launch log file https://www.dropbox.com/s/ixjp6of8mstzt7p/newlogfile.txt?dl=0 (same as previous attempt)

Are you able to launch the game on your machine?

KhArtNJava commented 9 years ago

I dunno, what's happening on your side... Can you share your project? I need to analyze it on my side.

pranav2w commented 9 years ago

Yeah sure gimme a minute

KhArtNJava commented 9 years ago

Do not rush - I will able to test only in the evening...

KhArtNJava commented 9 years ago

After about 7-8 hours...

pranav2w commented 9 years ago

Ok no problem. Here is the link of my project: https://www.dropbox.com/s/9isec54lxsrxgvp/SQLite3UE4-masterPranav.zip?dl=0

pranav2w commented 9 years ago

@KhArtNJava :

Did you tried it?... Plz help me I get stuck in my final year project work.

pranav2w commented 9 years ago

@KhArtNJava

Did you tried it?

KhArtNJava commented 9 years ago

I don't want to spend my time for this project... I've successfully removed it from my Game Project and I'm not interested to work on this project. If you want, I can help you for money. If you interested, contact me by email - my rates is not high, it started from 20 USD per hour...

KhArtNJava commented 8 years ago

Hello.

New fixes in my fork https://github.com/KhArtNJava/SQLite3UE4 : 1) Fixed crash in packaged project (Found and fixed bug - Yep, I did it!!!). 2) A lot of new BPs.