Skip to content

Commit a596025

Browse files
committed
Successfully Initializes KuzuDB
1 parent e7e242f commit a596025

File tree

18 files changed

+147
-37
lines changed

18 files changed

+147
-37
lines changed
39.9 KB
Loading

Documentation/Assets/logo.afdesign

26.6 KB
Binary file not shown.

Documentation/README_ARCHITECTURE.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,22 @@ Requires a C++ compiler such as MSVC or MSY2
1010

1111
1. `scons use_mingw=yes` or just `scons`
1212

13-
## Debugging:
13+
## Debugging Godot Console
14+
15+
1. Execute the Project from the Command Line
16+
1. `C:\<path to Godot>\Godot 4.4.1>Godot_v4.4.1-stable_win64_console.exe --debug --path C:\<path to project>\KuzuGD\demo`
17+
18+
## Debugging Linux (WSL)
19+
20+
1. Build for Linux
21+
1. `scons target=linux debug_symbols=yes`
22+
1. Run Godot Demo Project with Debugger
23+
1. `gdb --args ./Godot_v4.4.1-stable_linux.x86_64 --path /<path to >/KuzuGD/demo/`
24+
1. Memory Issues run Valgrind
25+
1. `valgrind --tool=memcheck --track-origins=yes ./Godot_v4.4.1-stable_linux.x86_64 --path /mnt/<path to>/KuzuGD/demo`
26+
1. `valgrind --tool=memcheck --track-origins=yes --show-leak-kinds=all ./Godot_v4.4.1-stable_linux.x86_64 --path /mnt/<path to>/KuzuGD/demo | grep libkuzu`
27+
28+
## Debugging Windows
1429

1530
1. https://youtu.be/8WSIMTJWCBk?t=3624
1631
1. `scons target=template_debug debug_symbols=yes`

SConstruct

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
import os
33
import sys
4+
import platform
45

56
from methods import print_error
67

@@ -74,26 +75,42 @@ if env["target"] in ["editor", "template_debug"]:
7475
except AttributeError:
7576
print("Not including class reference as we're targeting a pre-4.3 baseline.")
7677

78+
79+
kuzu_lib_name = ''
80+
kuzu_generic_name = ''
81+
7782
if(env["platform"] == 'windows'):
7883
env.Append(LIBPATH=["bin/windows/kuzu"])
7984
env.Append(LIBS=["kuzu_shared"])
85+
kuzu_lib_name = "kuzu_shared.dll"
86+
kuzu_generic_name = 'kuzu_shared.dll'
8087

8188
elif (env["platform"] == 'linux'):
8289
env.Append(LIBPATH=["bin/linux/kuzu"])
8390
arch = platform.machine()
8491

92+
kuzu_generic_name = 'libkuzu.so'
93+
8594
if arch == "x86_64":
8695
env.Append(LIBS=["libkuzu_x86_64"])
96+
kuzu_lib_name = "libkuzu_x86_64.so"
8797
elif arch == "aarch64":
8898
env.Append(LIBS=["libkuzu_aarch64"])
99+
kuzu_lib_name = "libkuzu_aarch64.so"
89100

90101
elif (env["platform"] == 'macos'):
91102
env.Append(LIBPATH=["bin/macos/kuzu"])
92103
env.Append(LIBS=["libkuzu"])
104+
kuzu_lib_name = "libkuzu"
105+
106+
kuzu_generic_name = 'libkuzu.dylib'
93107

94108
elif (env["platform"] == 'android'):
95109
env.Append(LIBPATH=["bin/android/kuzu"])
96110
env.Append(LIBS=["libkuzu"])
111+
kuzu_lib_name = "libkuzu"
112+
113+
kuzu_generic_name = 'libkuzu.so'
97114

98115

99116

@@ -110,5 +127,21 @@ library = env.SharedLibrary(
110127

111128
copy = env.Install("{}/bin/{}/".format(projectdir, env["platform"]), library)
112129

113-
default_args = [library, copy]
114-
Default(*default_args)
130+
kuzu_library_path = "bin/{}/kuzu/{}/".format(env['platform'], kuzu_lib_name)
131+
#kuzu_copy = env.Install("{}/bin/{}/kuzu/".format(projectdir, env["platform"]), kuzu_library_path)
132+
133+
kuzu_copy = env.InstallAs("{}/bin/{}/{}".format(projectdir, env["platform"], kuzu_generic_name), kuzu_library_path)
134+
135+
if(env["platform"] == 'windows'):
136+
137+
kuzu_lib_copy = env.InstallAs("{}/bin/{}/kuzu_shared.lib".format(projectdir, env["platform"]), "bin/windows/kuzu/kuzu_shared.lib")
138+
139+
default_args = [library, copy, kuzu_copy, kuzu_lib_copy]
140+
Default(*default_args)
141+
else :
142+
default_args = [library, copy, kuzu_copy]
143+
Default(*default_args)
144+
145+
146+
147+

demo/bin/kuzugd.gdextension

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ windows.x86_64.double.debug = "./windows/KuzuGD.windows.template_debug.x86_64.do
2525
windows.x86_64.single.release = "./windows/KuzuGD.windows.template_release.x86_64.dll"
2626
windows.x86_64.double.release = "./windows/KuzuGD.windows.template_release.x86_64.double.dll"
2727

28-
linux.x86_64.single.debug = "./linux/KuzuGD.linux.template_debug.x86_64.so"
29-
linux.x86_64.double.debug = "./linux/KuzuGD.linux.template_debug.x86_64.double.so"
30-
linux.x86_64.single.release = "./linux/KuzuGD.linux.template_release.x86_64.so"
31-
linux.x86_64.double.release = "./linux/KuzuGD.linux.template_release.x86_64.double.so"
32-
33-
linux.arm64.single.debug = "./linux/KuzuGD.linux.template_debug.arm64.so"
34-
linux.arm64.double.debug = "./linux/KuzuGD.linux.template_debug.arm64.double.so"
35-
linux.arm64.single.release = "./linux/KuzuGD.linux.template_release.arm64.so"
36-
linux.arm64.double.release = "./linux/KuzuGD.linux.template_release.arm64.double.so"
37-
38-
linux.rv64.single.debug = "./linux/KuzuGD.linux.template_debug.rv64.so"
39-
linux.rv64.double.debug = "./linux/KuzuGD.linux.template_debug.rv64.double.so"
40-
linux.rv64.single.release = "./linux/KuzuGD.linux.template_release.rv64.so"
41-
linux.rv64.double.release = "./linux/KuzuGD.linux.template_release.rv64.double.so"
28+
linux.x86_64.single.debug = "linux/libKuzuGD.linux.template_debug.x86_64.so"
29+
linux.x86_64.double.debug = "linux/libKuzuGD.linux.template_debug.x86_64.double.so"
30+
linux.x86_64.single.release = "linux/libKuzuGD.linux.template_release.x86_64.so"
31+
linux.x86_64.double.release = "linux/libKuzuGD.linux.template_release.x86_64.double.so"
32+
33+
linux.arm64.single.debug = "./linux/libKuzuGD.linux.template_debug.arm64.so"
34+
linux.arm64.double.debug = "./linux/libKuzuGD.linux.template_debug.arm64.double.so"
35+
linux.arm64.single.release = "./linux/libKuzuGD.linux.template_release.arm64.so"
36+
linux.arm64.double.release = "./linux/libKuzuGD.linux.template_release.arm64.double.so"
37+
38+
linux.rv64.single.debug = "./linux/libKuzuGD.linux.template_debug.rv64.so"
39+
linux.rv64.double.debug = "./linux/libKuzuGD.linux.template_debug.rv64.double.so"
40+
linux.rv64.single.release = "./linux/libKuzuGD.linux.template_release.rv64.so"
41+
linux.rv64.double.release = "./linux/libKuzuGD.linux.template_release.rv64.double.so"
4242

4343
android.x86_64.single.debug = "./android/KuzuGD.android.template_debug.x86_64.so"
4444
android.x86_64.double.debug = "./android/KuzuGD.android.template_debug.x86_64.double.so"
File renamed without changes.

demo/data/database/kuzu_db/.shadow

Whitespace-only changes.

demo/data/database/kuzu_db/.wal

Whitespace-only changes.
156 Bytes
Binary file not shown.

demo/data/database/kuzu_db/data.kz

Whitespace-only changes.

0 commit comments

Comments
 (0)