Antlr needs to be installed in /usr/share/java/antlr4-runtime.jar; this should be configurable somehow
one potential place for the Antlr jar to go is in <repo>/lib, but unfortunately lib is an actual source code directory; it would be nice to move the existing lib to another name and free it up to be used as a git-ignorable directory
make install wants to write into /opt/sanka, which requires root permission; again, should be configurable
can't figure out how to compile the generated C
added -I /opt/sanka/include for library dependencies
added -I../.. since I was in the directory with the C and H files
added -L /opt/sanka/lib -lsankaruntime
This seemed to find all the dependencies. But it still didn't find main()
gcc -I /opt/sanka/include -I../.. WordMap.c -L /opt/sanka/lib -lsankaruntime
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
(maybe you meant: _WordMap__main)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Then again, I may never have compiled a C program on this computer...
/usr/share/java/antlr4-runtime.jar
; this should be configurable somehow<repo>/lib
, but unfortunatelylib
is an actual source code directory; it would be nice to move the existinglib
to another name and free it up to be used as a git-ignorable directorymake install
wants to write into/opt/sanka
, which requires root permission; again, should be configurable-I /opt/sanka/include
for library dependencies-I../..
since I was in the directory with the C and H files-L /opt/sanka/lib -lsankaruntime
This seemed to find all the dependencies. But it still didn't find main()Then again, I may never have compiled a C program on this computer...