a small c-lib to create p1 images
Files:
compile with:
gcc -o imgtest imglib.c -lm
you can visualise the result with:
./imgtest | feh -
you can then create img1.png
and img2.png, respectively with
main1() and
main2()
./imgtest | convert - img1.png ./imgtest | convert - img2.png
Lib:
the second step is to split the functions,
their interface, and the main()
compiling everything, then become's:
gcc -fPIC -c imglib.c gcc -shared -o libimgp1.so imglib.o gcc -o prog main.c -L. -limgp1
and we run the result w/:
LD_LIBRARY_PATH=. ./prog | feh -
if we want to install, we can copy the .so
file in-side:
/usr/local/lib
and the header .h file in:
/usr/local/include
Tutorials:
Caml-Interface:
Versions: