-
Notifications
You must be signed in to change notification settings - Fork 229
Open
Labels
Description
I'm trying to get the C examples to build currently and am running into a number of issues.
It seems like some specific flags likely need to be passed to cargo cbuild and cargo cinstall to prep the environment for building the c_canvas_* examples, and the closest I got* still had errors when attempting to import the generated header file
*To get as close as I did, I ran cargo cbuild --destdir=./build --prefix=, cargo cinstall --destdir=./build --prefix=, then edited c_canvas_minimal.c to import pathfinder_c/pathfinder_c.h instead of pathfinder/pathfinder.h, and even then I ran into the error you see below:
$ make
mkdir -p build && gcc -c -Wall -g -I../../c/build/include -O2 `sdl2-config --cflags` -o build/c_canvas_minimal.o c_canvas_minimal.c
In file included from c_canvas_minimal.c:13:
../../c/build/include/pathfinder_c/pathfinder_c.h:246:9: error: unknown type name ‘SVGScene’
246 | typedef SVGScene SVGScene;
| ^~~~~~~~
make: *** [Makefile:41: build/c_canvas_minimal.o] Error 1