building flexprop
David Betz
Posts: 14,516
in Propeller 2
I've been away from P1 and P2 programming for a while so I decided to update my flexprop repository and try building it for the Mac but I'm not sure how to do that. If I just type 'make' I get a usage message saying I should do 'make install'. What if I just want to build without doing an installation?
Comments
I decided to just try 'make install' since it installs to a local directory but then I ran into this problem:
`cc -o flexprop.bin src/flexprop_native.c -I/usr/local/opt/tcl-tk/include -L/usr/local/opt/tcl-tk/lib -ltk8.6 -ltcl8.6 -lz -lpthread -lm
In file included from src/flexprop_native.c:23:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/tk.h:86:11: fatal error: 'X11/Xlib.h' file not found
include <X11/Xlib.h>
1 error generated.
`
Is there a way to just build the command line tools? Surely they don't require X11.
Yes, clone the spin2cpp repo and run
make
there. The tools (spin2cpp,flexspin,flexcc) will appear in thebuild
directoryThanks! That worked. I used to do it that way. I'm not sure why I switched to the flex prop repository. Anyway, the Mac build generated the following warnings.