Configuration errors on build and execution
akshgpt7 opened this issue · 1 comments
akshgpt7 commented
Description
On Linux, the example gives errors on building and executing it.
On running the build command (gcc -std=c11 main.c -lmetacall
), the following error occurs:
error while loading shared libraries: libmetacall.so: cannot open shared object file: No such file or directory
Adding the following link to the command fixes it:
g++ main.cpp -L/usr/local/lib -lmetacall
Then, on executing the binary using ./a.out
, it fails to load the plot.py
script.
To fix that, the path of the script needed to be changed to its absolute path inside main.c
, where it's being loaded to MetaCall.
Also, to execute it, the following command had to be used: LD_LIBRARY_PATH=/usr/local/lib ./a.out
.
iamrahulmahato commented
Hi, I am , a contributor to OpenForce 2022. I would like to work on this issue