alexandrerodrigopinheiro / GDSerCommPlugin

A Godot plugin to read Arduino serial input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GDSerCommPlugin

A Godot plugin to read Arduino serial input

Dependencies

Installation

Build binaries

Windows 10 64-bit

  • In Powershell run these commands
git clone --depth=1 git@github.com:Superwaitsum/GDSercomm.git
cd .\GDSercomm\
git clone --depth=1 git@github.com:GodotNativeTools/godot_headers.git
git clone --depth=1 git@github.com:ingeniamc/sercomm.git
cd .\sercomm\
cmake -S. -Bbuild
cmake --build build
cd ..
cp .\sercomm\build\config.h .\sercomm\include\public\sercomm\
mkdir lib
cp .\sercomm\build\Debug\sercomm.lib .\lib\
cp .\sercomm\build\Debug\sercomm.dll .\lib\
scons p=windows
cp .\lib\sercomm.lib .\bin\
  • Now you should have all your .dll in the GDSercomm/bin folder

Ubuntu 18.04

  • In terminal run these commands
git clone --depth=1 git@github.com:Superwaitsum/GDSercomm.git
cd GDSercomm/
git clone --depth=1 git@github.com:GodotNativeTools/godot_headers.git
git clone --depth=1 git@github.com:ingeniamc/sercomm.git
cd sercomm/
cmake -H. -Bbuild
cmake --build build
cd ..
cp sercomm/build/config.h sercomm/include/public/sercomm/
mkdir lib
cp sercomm/build/libsercomm.so lib/
scons p=linux
cp lib/libsercomm.so bin/
cp bin/libsercomm.so /usr/lib
ldconfig
  • Now you should have all your .so in the GDSercomm/bin folder

OSX

  • OBS! This is not tested because I don't own a OSX computer
  • In terminal run these commands
git clone --depth=1 git@github.com:Superwaitsum/GDSercomm.git
cd GDSercomm/
git clone --depth=1 git@github.com:GodotNativeTools/godot_headers.git
git clone --depth=1 git@github.com:ingeniamc/sercomm.git
cd sercomm/
cmake -H. -Bbuild
cmake --build build
cd ..
cp sercomm/build/config.h sercomm/include/public/sercomm/
mkdir lib
cp sercomm/build/libsercomm.dylib lib/
scons p=osx
cp lib/libsercomm.dylib bin/
# it is not easy to get permissions to modify /usr/lib, might not be needed?
cp bin/libsercomm.dylib /usr/lib
sudo update_dyld_shared_cache
  • Now you should have all your .dylib in the GDSercomm/bin folder

Plugin

  • Git clone repo into your addons folder in the root of your project.
  • Inside the editor got to Project->Projects Settings->Plugins and activate "Serial Communication"

Screenshot

Screenshot

About

A Godot plugin to read Arduino serial input

License:MIT License


Languages

Language:C 73.4%Language:GDScript 26.6%