2shady4u / godot-sqlite

GDExtension wrapper for SQLite (Godot 4.x+)
MIT License
850 stars 76 forks source link

Local compiling fails on Windows #143

Closed jospic closed 5 months ago

jospic commented 1 year ago

Environment:

Issue description: I'm trying to compile the extension for Godot 4 locally on Windows 10, to make some customizations. I followed the build instructions but it seems that some dependencies are missing. How can I fix? Thanks in advance.

fatal error: gdnative_api_struct.gen.h: No such file or directory Steps to reproduce: scons platform=windows

Minimal reproduction project:

Additional context

2shady4u commented 1 year ago

Hello @jospic

jospic commented 1 year ago

Hi, usually for Windows i use cross compiling on linux bash (Ubuntu 20.04 for Windows), using mingw64. Thnks in advance. -j

2shady4u commented 1 year ago

Hi, usually for Windows i use cross compiling on linux bash (Ubuntu 20.04 for Windows), using mingw64. Thnks in advance. -j

Hello :) I have never tried cross-compiling the Windows binaries on Linux for Godot 4.0 There's probably some upgrades that have to be done to the SConstruct file.

cridenour commented 1 year ago

Hi, usually for Windows i use cross compiling on linux bash (Ubuntu 20.04 for Windows), using mingw64. Thnks in advance. -j

Hello :) I have never tried cross-compiling the Windows binaries on Linux for Godot 4.0 There's probably some upgrades that have to be done to the SConstruct file.

It works! I've been doing it all along. It by defaults creates a static library and a smaller one at that.

2shady4u commented 5 months ago

Compilation with MinGW now seems to be correctly supported and the binary obtained using MinGW is now the default binary included in the releases for Windows.

2shady4u commented 5 months ago

Compilation using MinGW has now been added and the binary compiled with MinGW is now the default binary for Windows platforms in the latest release.