Did you ever manage to make progress on this project? I'm interested in having Chibi Scheme running on Android, too.
--
You received this message because you are subscribed to a topic in the Google Groups "chibi-scheme" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chibi-scheme/hlqJ5hRSTnM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chibi-scheme...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibi-scheme/4870d892-26f4-4ba1-88fb-fd4d90dc1b69n%40googlegroups.com.
I'm really hoping you're on Linux, as the script to set up the
dependencies assumes a Linux-ish environment to download/patch stuff
and build the -dynamic chibi scheme.
I ran ./setup_deps.sh
, then make -j8
, and got the results below. Do I need to do something with Nix first? I've never used it, but I'm happy to try.
echo "rebuilding imgui..."
echo "building chibi static"
rebuilding imgui...
PKG_CONFIG_PATH=$(dirname $(ls /nix/store/*xorgproto*/share/pkgconfig/xproto.pc)):$PKG_CONFIG_PATH \
make -C deps/imgui/examples/example_glfw_opengl3;
g++ -c src/linux_main.cpp \
-I./deps/imgui \
-I./deps/imgui/backends/ \
-o build/linux_main.o
building chibi static
echo '#define sexp_so_extension "'.so'"' > deps/chibi-scheme-static/include/chibi/install.h
g++ -c src/loki_main.cpp \
-I./deps/imgui \
-I./deps/imgui/backends/ \
-I./deps/chibi-scheme-static/include \
-o build/loki_main.o
echo '#define sexp_default_module_path "'/usr/local/share/chibi:/usr/local/lib/chibi:/usr/local/share/snow:/usr/local/lib/snow'"' >> deps/chibi-scheme-static/include/chibi/install.h
echo "generating chibi c code from stub for chibi libs"
gcc -c src/lib/imgui/imgui_src.c \
-I./deps/imgui \
-I./deps/cimgui \
-I./deps/imgui/backends/ \
-o build/imgui_src.o
echo '#define sexp_platform "'linux'"' >> deps/chibi-scheme-static/include/chibi/install.h
generating chibi c code from stub for chibi libs
echo '#define sexp_version "'0.10.0'"' >> deps/chibi-scheme-static/include/chibi/install.h
echo '#define sexp_release_name "'`cat deps/chibi-scheme-static/RELEASE`'"' >> deps/chibi-scheme-static/include/chibi/install.h
ls: cannot access '/nix/store/*xorgproto*/share/pkgconfig/xproto.pc': No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
make[1]: Entering directory '/home/arthur/repo-clones/loki-core/deps/imgui/examples/example_glfw_opengl3'
g++ -std=c++11 -I../.. -I../../backends -g -Wall -Wformat `pkg-config --cflags glfw3` -c -o main.o main.cpp
g++ -std=c++11 -I../.. -I../../backends -g -Wall -Wformat `pkg-config --cflags glfw3` -c -o imgui.o ../../imgui.cpp
g++ -std=c++11 -I../.. -I../../backends -g -Wall -Wformat `pkg-config --cflags glfw3` -c -o imgui_demo.o ../../imgui_demo.cpp
In file included from src/lib/imgui/imgui_src.c:2:
src/lib/imgui/imgui_src.h:8:10: fatal error: cimgui.h: No such file or directory
8 | #include "cimgui.h"
| ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:45: build/imgui_src.o] Error 1
make: *** Waiting for unfinished jobs....
g++ -std=c++11 -I../.. -I../../backends -g -Wall -Wformat `pkg-config --cflags glfw3` -c -o imgui_draw.o ../../imgui_draw.cpp
g++ -std=c++11 -I../.. -I../../backends -g -Wall -Wformat `pkg-config --cflags glfw3` -c -o imgui_tables.o ../../imgui_tables.cpp
g++ -std=c++11 -I../.. -I../../backends -g -Wall -Wformat `pkg-config --cflags glfw3` -c -o imgui_widgets.o ../../imgui_widgets.cpp
g++ -std=c++11 -I../.. -I../../backends -g -Wall -Wformat `pkg-config --cflags glfw3` -c -o imgui_impl_glfw.o ../../backends/imgui_impl_glfw.cpp
g++ -std=c++11 -I../.. -I../../backends -g -Wall -Wformat `pkg-config --cflags glfw3` -c -o imgui_impl_opengl3.o ../../backends/imgui_impl_opengl3.cpp
g++ -o example_glfw_opengl3 main.o imgui.o imgui_demo.o imgui_draw.o imgui_tables.o imgui_widgets.o imgui_impl_glfw.o imgui_impl_opengl3.o -std=c++11 -I../.. -I../../backends -g -Wall -Wformat `pkg-config --cflags glfw3` -lGL `pkg-config --libs glfw3` -ldl
touch deps/chibi-scheme-static/lib/.stubbed
Build complete for Linux
make[1]: Leaving directory '/home/arthur/repo-clones/loki-core/deps/imgui/examples/example_glfw_opengl3'
ar -crs build/imgui.a \
deps/imgui/examples/example_glfw_opengl3/imgui_demo.o \
deps/imgui/examples/example_glfw_opengl3/imgui_draw.o \
deps/imgui/examples/example_glfw_opengl3/imgui_impl_glfw.o \
deps/imgui/examples/example_glfw_opengl3/imgui_impl_opengl3.o \
deps/imgui/examples/example_glfw_opengl3/imgui.o \
deps/imgui/examples/example_glfw_opengl3/imgui_tables.o \
deps/imgui/examples/example_glfw_opengl3/imgui_widgets.o
cd deps/chibi-scheme-static/; ar -crs libchibi-scheme.a gc.c.o sexp.c.o bignum.c.o gc_heap.c.o opcodes.c.o vm.c.o simplify.c.o
--
You received this message because you are subscribed to a topic in the Google Groups "chibi-scheme" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chibi-scheme/hlqJ5hRSTnM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chibi-scheme...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibi-scheme/CALnw4LKOYkkwLD1B-_VsU6at%2BvtHYQ5_G9G54ARo%2BGuUkePb0A%40mail.gmail.com.
This should be easier to get running, but you'll have to figure out
the JNI/UI stuff to make it do stuff on the screen.
If you find this helpful, and figure out the UI side, may I please ask
that you contact the chibi maintainers on github and contribute back a
suitably sanitised example for android?