Closed WEREMSOFT closed 4 years ago
See if this works for you: https://github.com/SanderMertens/flecs#getting-started-with-the-dashboard
I'll add more docs to the README.
Currently the admin has a dependency on a bake library, so make sure you're using bake. I'm working on making it completely standalone. Stay tuned!
I was unable to make Bake compile the project on mac. I have this error:
flecs/include/flecs.h:32:9: error: unknown type name 'uint64_t'
typedef uint64_t ecs_entity_t;
What is the platform / compiler you are using? There is a known issue with WSL at the moment I have to look into.
Sorry for the late response. This is gcc -v output
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Running on MacOS Catalina 10.15.1
Output for bake clone SanderMertens/flecs-systems-admin
[ clone] 'https://github.com/SanderMertens/flecs-systems-admin' into './flecs-systems-admin'
[ skip] package flecs found in '/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs' (in dev tree, not pulling)
[ note] to pull anyway, add --always-clone to the bake clone command
[ clone] 'https://github.com/SanderMertens/flecs-util' into './flecs-util'
[ clone] 'https://github.com/SanderMertens/flecs-components-http' into './flecs-components-http'
[ clone] 'https://github.com/flecs-hub/flecs-hub' into '/Users/pabloweremczuk/bake/src/flecs-hub'
[ build] package flecs => '/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs'
[ 6%] worker.c
[ 12%] table.c
[ 18%] entity.c
[ 25%] stage.c
[ 31%] vector.c
[ 37%] system.c
[ 43%] world.c
[ 50%] stats.c
[ 56%] chunked.c
[ 62%] err.c
/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/src/err.c:131:9: error: expected ';' after expression
uint position = 0;
^
;
/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/src/err.c:131:5: error: use of undeclared identifier 'uint'; did you mean 'rint'?
uint position = 0;
^~~~
rint
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:468:15: note: 'rint' declared here
extern double rint(double);
^
/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/src/err.c:131:10: error: use of undeclared identifier 'position'
uint position = 0;
^
/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/src/err.c:136:13: error: use of undeclared identifier 'position'
position = strlen(signature) - 1;
^
/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/src/err.c:139:13: error: use of undeclared identifier 'position'
position = pointer_to_string - signature;
^
/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/src/err.c:147:15: error: use of undeclared identifier 'position'
for(; i < position; i++){
^
/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/src/err.c:131:5: warning: expression result unused [-Wunused-value]
uint position = 0;
^~~~
1 warning and 6 errors generated.
error process 40743 exited with returncode 1
from command returned 1
clang -fPIC -fno-stack-protector -g -O0 -std=c99 -D_XOPEN_SOURCE=600 -Wall -D__BAKE__ -D__BAKE__ -DBAKE_PROJECT_ID="flecs" -DFLECS_IMPL -include /Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/.bake_cache/x64-Darwin-debug/include/flecs.h -I/Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/include -I /Users/pabloweremczuk/bake/include -c /Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/src/err.c -o /Users/pabloweremczuk/Documents/Proyectos/cpp/flecs/.bake_cache/x64-Darwin-debug/obj/err.o
from command for task 'err.c' failed
from dependency 'objects' failed
from failed to build rule 'ARTEFACT'
[ error] build interrupted for flecs in /Users/pabloweremczuk/Documents/Proyectos/cpp/flecs
error project 'flecs' built with errors, skipping
[ build] package flecs.hub => '/Users/pabloweremczuk/bake/src/flecs-hub'
error project dependency graph contains cycles (2 built vs 8 total)
143:delete-me pabloweremczuk$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Maybe I can take a look if you point me in the right direction.
Can this be the problem?
Deleted generated folders and the build now is working.
Good to hear! Let me know if you have any recommendations for the dashboard- there is definitely room for improvement!
Please improve documentation. I'm very interesting on use it on my project.
Thanks