pragmagic / godot-nim-stub Goto Github PK
View Code? Open in Web Editor NEWStub for Godot project with Nim support
Stub for Godot project with Nim support
OS: Mac
Nim Version: Devel (1.5.1)
Compiler: (#head)
---------- End Of Output ----------
Generating editor_file_system_directory.nim...
Generating csg_primitive.nim...
Verifying dependencies for [email protected]
Info: Dependency on godot@>= 0.7.21 & < 0.8.0 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on compiler@>= 0.17.3 already satisfied
Verifying dependencies for compiler@#head
Compiling ../src/stub (from package stub) using c backend
/Users/salient/.nimble/pkgs/godot-0.7.28/core/poolarrays.nim(119, 16) template/generic instantiation of definePoolArray
from here
/Users/salient/.nimble/pkgs/godot-0.7.28/core/poolarrays.nim(41, 26) Error: type expected, but got symbol 'Array' of kind 'enumField'
Tip: 5 messages have been suppressed, use --verbose to show them.
Error: Execution failed with exit code 256
... Command: /Users/salient/.nimble/bin/nim c --noNimblePath -d:NimblePkgVersion=0.1.0 --path:/Users/salient/.nimble/pkgs/godot-0.7.28 --path:'/Users/salient/.nimble/pkgs/compiler-#head' --hints:off -o:../_dlls/nim_mac.dylib ../src/stub
Hello, I'm new into nim language but just wanted to test your package.
I have nim lang ver 0.18.0 and trying to run this stub ./nim_linux_64.so.
The only thing on output is:
Segmentation fault (core dumped).
Background: Godot v3.0.1 stable, Linux Mint 17.3.
Perhaps you need more information :)
nake build
arguments
0: /Applications/Godot.app/Contents/MacOS/Godot
1: --gdnative-generate-json-api
2: _godotapi/api.json
Current path: /Applications/Godot.app/Contents/Resources
OpenGL ES 3.0 Renderer: Intel(R) Iris(TM) Graphics 6100
ERROR: save_file: Condition ' !file ' is true. returned: ERR_FILE_CANT_WRITE
At: modules/gdnative/nativescript/api_generator.cpp:47.
ERROR: init: Failed to generate C API
At: modules/gdnative/nativescript/nativescript.cpp:900.
Using Godot 3.0, and nim
0.18.0
ERROR: open_dynamic_library: Can't open dynamic library: /home/emin/Documents/gameprozs/nim-try-3/_dlls/nim_linux_64.so. Error: /snap/godot/27/bin/../lib/nim_linux_64.so: cannot open shared object file: No such file or directory
At: drivers/unix/os_unix.cpp:379.
ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
At: modules/gdnative/gdnative.cpp:317.
ERROR: init_library: No nativescript_init in "res://_dlls/nim_linux_64.so" found
At: modules/gdnative/nativescript/nativescript.cpp:1054.
ERROR: terminate: No valid library handle, can't terminate GDNative object
At: modules/gdnative/gdnative.cpp:223.
ERROR: open_dynamic_library: Can't open dynamic library: /home/emin/Documents/gameprozs/nim-try-3/_dlls/nim_linux_64.so. Error: /snap/godot/27/bin/../lib/nim_linux_64.so: cannot open shared object file: No such file or directory
At: drivers/unix/os_unix.cpp:379.
OS: Win 7 x64
While I tried to run "nake build" in project directory:
nakelib.nim(177) cd
os.nim(278) setCurrentDir
oserr.nim(113) raiseOSError
Error: unhandled exception: �е удает�� найти указанный файл.
Tested on OS X High Sierra with the latest stable Godot release.
The following is frequently logged to Godot's console in the stub project:
A foreign thread is created, but app is compiled without --threads:on. Bad things will happen if Nim code is invoked from this thread.
Either the nakefile should pass this flag to nimble c
by default, or the readme should make it clear that this warning can be ignored (and why) if it isn't possible to suppress it.
Hello,
Trying to build this stub raises the error Error: type expected, but got symbol 'Array' of kind 'enumField' on
poolarrays.nim`
As explained here: pragmagic/godot-nim#81 upgrading the required version of godot-nim
in stub.nimble
resolve the problem.
Using windows 10 64bit, nim version: 0.18.1, godot-nim version: 0.7.8
Cloning this stub and running nake build
results in a error:
Compiling nakefile...
Setting Nim stdlib prefix to C:\Nim
Setting Nim stdlib path to C:\Nim\lib
Info Hint: used config file 'C:\Nim\config\nim.cfg' [Conf]
Warning: Package 'stub' has an incorrect structure. The top level of the package source directory should contain at most one module, named 'stub.nim', but a file named 'fpscounter.nim' was found. This will be an error in the future.
Hint: If this is the primary source file in the package, rename it to 'stub.nim'. If it's a source file required by the main module, or if it is one of several modules exposed by 'stub', then move it into a 'stub\' subdirectory. If it's a test file or otherwise not required to build the the package 'stub.nim', prevent its installation by adding `skipFiles = @["fpscounter.nim"]` to the .nimble file. See https://github.com/nim-lang/nimble#libraries for more info.
Verifying dependencies for [email protected]
Reading official package list
Checking for godot@>= 0.7.8 & < 0.8.0
Info: Dependency on godot@>= 0.7.8 & < 0.8.0 already satisfied
Setting Nim stdlib prefix to C:\Nim
Setting Nim stdlib path to C:\Nim\lib
Verifying dependencies for [email protected]
Reading official package list
Checking for compiler@>= 0.17.3
Info: Dependency on compiler@>= 0.17.3 already satisfied
Setting Nim stdlib prefix to C:\Nim
Setting Nim stdlib path to C:\Nim\lib
Verifying dependencies for [email protected]
Compiling ..\src\stub.nim (from package stub) using c backend
Hint: used config file 'C:\Nim\config\nim.cfg' [Conf]
Hint: used config file 'C:\Users\rskar\Documents\workspace\gamedev\nimway\src\nim.cfg' [Conf]
Hint: used config file 'C:\Users\rskar\Documents\workspace\gamedev\nimway\src\config.nims' [Conf]
Hint: system [Processing]
Hint: stub [Processing]
Hint: segfaults [Processing]
Hint: winlean [Processing]
Hint: dynlib [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: algorithm [Processing]
Hint: fpscounter [Processing]
Hint: godot [Processing]
Hint: godotbase [Processing]
Hint: godotinternal [Processing]
Hint: godotinternaltypes [Processing]
Hint: godotarrays [Processing]
Hint: gdnativeapi [Processing]
Hint: godotcoretypes [Processing]
Hint: macros [Processing]
Hint: hashes [Processing]
Hint: godotnodepaths [Processing]
Hint: godotpoolarrays [Processing]
C:\Users\rskar\.nimble\pkgs\godot-0.7.8\internal\godotpoolarrays.nim(112, 16) template/generic instantiation from here
C:\Users\rskar\.nimble\pkgs\godot-0.7.8\internal\godotpoolarrays.nim(94, 11) Error: wrong number of variables
Error: Execution failed with exit code 1
... Command: "C:\Nim\bin\nim.exe" c --noNimblePath --path:"C:\Users\rskar\.nimble\pkgs\godot-0.7.8" --path:"C:\Users\rskar\.nimble\pkgs\compiler-0.18.1" "-o:..\_dlls\nim_64.dll" "..\src\stub.nim"
Hi.
First of all, great job.
I followed your instructions and I am able to build the files and run the example inside the editor.
My problem is that if I export is like there is no scripts.
I am running Godot Beta 1 in Linux Manjaro.
windows 10 64 bit
Verifying dependencies for [email protected]
Info: Dependency on godot@>= 0.7.21 & < 0.8.0 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on compiler@>= 0.17.3 already satisfied
Verifying dependencies for [email protected]
Compiling ..\src\stub (from package stub) using c backend
C:\Users\admin.DESKTOP-S0295NL\Desktop\godot-nim-stub-master\src\stub.nim(9, 8) Warning: imported and not used: 'fpscounter' [UnusedImport]
C:\Users\admin.DESKTOP-S0295NL\Desktop\godot-nim-stub-master\src\stub.nim(10, 8) Warning: imported and not used: 'mainpanel' [UnusedImport]
Hint: vcvarsall.bat was not found
oserr.nim(94) raiseOSError
Error: unhandled exception: The system can not find the file specified.
Additional info: "Requested command not found: 'cl.exe'. OS error:" [OSError]
Hint: vcvarsall.bat was not found
oserr.nim(94) raiseOSError
Error: unhandled exception: The system can not find the file specified.
Additional info: "Requested command not found: 'cl.exe'. OS error:" [OSError]
Error: execution of an external compiler program 'vccexe.exe /c --platform:amd64 /nologo -DWIN32_LEAN_AND_MEAN /Zi /FS /Od /IC:\Users\admin.DESKTOP-S0295NL\Desktop\nim-1.4.6_x64\nim-1.4.6\lib /IC:\Users\admin.DESKTOP-S0295NL\Desktop\godot-nim-stub-master\src /nologo /FoC:\Users\admin.DESKTOP-S0295NL\Desktop\godot-nim-stub-master\src.nimcache\windows\amd64\stdlib_assertions.nim.c.obj C:\Users\admin.DESKTOP-S0295NL\Desktop\godot-nim-stub-master\src.nimcache\windows\amd64\stdlib_assertions.nim.c' failed with exit code: 1
Hint: vcvarsall.bat was not found
oserr.nim(94) raiseOSError
Error: unhandled exception: The system can not find the file specified.
Additional info: "Requested command not found: 'cl.exe'. OS error:" [OSError]
Tip: 5 messages have been suppressed, use --verbose to show them.
Error: Execution failed with exit code 1
... Command: C:\Users\admin.DESKTOP-S0295NL\Desktop\nim-1.4.6_x64\nim-1.4.6\bin\nim.exe c --noNimblePath -d:NimblePkgVersion=0.1.0 --path:C:\Users\admin.DESKTOP-S0295NL.nimble\pkgs\godot-0.7.28 --path:C:\Users\admin.DESKTOP-S0295NL.nimble\pkgs\compiler-1.4.6 --hints:off -o:.._dlls\nim_64.dll ..\src\stub
Hint: vcvarsall.bat was not found
oserr.nim(94) raiseOSError
Error: unhandled exception:The system can not find the file specified.
Additional info: "Requested command not found: 'cl.exe'. OS error:" [OSError]
Tested on OS X High Sierra.
Running nake build
logs the following command arguments:
arguments
0: /Applications/Godot.app/Contents/MacOS/Godot
1: --gdnative-generate-json-api
2: _godotapi/api.json
Current path: /Applications/Godot.app/Contents/Resources
Godot then encounters a file permissions error as it attempts to write to its own Resources directory. This issue occurs despite being navigated to the project directory when building the nakefile from the command line.
Nim version devel, of 16.05.18
System - archlinux, xfce 4.12
If any other info needed, please tell
traceback:
GODOT_BIN=/usr/bin/godot nake build
Warning: Package 'stub' has an incorrect structure. The top level of the package source directory should contain at most one module, named 'stub.nim', but a file named 'mainpanel.nim' was found. This will be an error in the future.
Hint: If this is the primary source file in the package, rename it to 'stub.nim'. If it's a source file required by the main module, or if it is one of several modules exposed by 'stub', then move it into a 'stub/' subdirectory. If it's a test file or otherwise not required to build the the package 'stub.nim', prevent its installation by adding `skipFiles = @["mainpanel.nim"]` to the .nimble file. See https://github.com/nim-lang/nimble#libraries for more info.
Verifying dependencies for [email protected]
Warning: No nimblemeta.json file found in /home/survivor/.nimble/pkgs/qnim-0.1.0
Info: Dependency on godot@>= 0.7.3 & < 0.8.0 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on compiler@>= 0.17.3 already satisfied
Verifying dependencies for compiler@#head
Compiling ../src/stub.nim (from package stub) using c backend
Hint: used config file '/home/survivor/.choosenim/toolchains/nim-#devel/config/nim.cfg' [Conf]
Hint: used config file '/home/survivor/g-engine/godot/src/nim.cfg' [Conf]
Hint: used config file '/home/survivor/g-engine/godot/src/config.nims' [Conf]
Hint: system [Processing]
Hint: stub [Processing]
Hint: segfaults [Processing]
Hint: posix [Processing]
Hint: fpscounter [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: algorithm [Processing]
Hint: godot [Processing]
Hint: godotbase [Processing]
Hint: godotinternal [Processing]
Hint: godotinternaltypes [Processing]
Hint: godotarrays [Processing]
Hint: gdnativeapi [Processing]
Hint: godotcoretypes [Processing]
Hint: macros [Processing]
Hint: hashes [Processing]
Hint: godotnodepaths [Processing]
Hint: godotpoolarrays [Processing]
/home/survivor/.nimble/pkgs/godot-0.7.10/internal/godotpoolarrays.nim(112, 16) template/generic instantiation from here
/home/survivor/.nimble/pkgs/godot-0.7.10/internal/godotpoolarrays.nim(94, 11) Error: wrong number of variables
Tip: 11 messages have been suppressed, use --verbose to show them.
Error: Execution failed with exit code 1
... Command: "/home/survivor/.nimble/bin/nim" c --noNimblePath --path:"/home/survivor/.nimble/pkgs/godot-0.7.10" --path:"/home/survivor/.nimble/pkgs/compiler-#head" "-o:../_dlls/nim_linux_64.so" "../src/stub.nim"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.