godot-cpp icon indicating copy to clipboard operation
godot-cpp copied to clipboard

Guide to compile C++ GDExtension for different platforms

Open coder137 opened this issue 2 years ago • 1 comments

Godot version

NA

godot-cpp version

NA

System information

NA

Issue description

Guide for compiling C++ GDExtension for different platforms and the compilers required to be installed.

Compiler links should be provided for reference Sample GDExtension (https://github.com/godotengine/godot-cpp/blob/master/test/project/example.gdextension)

  • Windows
    • [x] Windows x86_64 (? MSVC or MinGW)
    • [ ] Windows x86_32 (? MSVC or MinGW)
  • Linux
    • [x] Linux x86_64 (regular GCC 64 bit compiler)
    • [ ] Linux ARM64 (? compiler to use)
    • [ ] Linux RV64 (? compiler to use)
  • MacOS
    • [x] Universal
  • Android (x86_64 and arm64)
    • [ ] Compile via Windows (? Compiler)
    • [ ] Compile via Linux (? Compiler)
    • [ ] Compile via MacOS (? Compiler)
  • Web (wasm32)
    • [ ] Compile via Windows (? Compiler)
    • [ ] Compile via Linux (? Compiler)
    • [ ] Compile via MacOS (? Compiler)
  • Cross Compiling (if relevant)
  • Buildsystem
    • [ ] Scons
    • [ ] CMake and CMakePresets.json for above scenarios

This might be obvious to many users but would like to consolidate all the resources for compiling GDExtension C++ in one place.

Steps to reproduce

NA

Minimal reproduction project

NA

coder137 avatar Oct 22 '23 23:10 coder137

I have a bunch of examples for cmake in doc/cmake.rst

enetheru avatar Mar 17 '25 00:03 enetheru