libsmf icon indicating copy to clipboard operation
libsmf copied to clipboard

How to include and build this, and is the only way to use this through installing it?

Open mavavilj opened this issue 3 years ago • 1 comments

I am interested in using this library, and I first tried to import the smf.h to my program, but then it complains about functions such as smf_load() not existing:

smftest.c:(.text+0x15): undefined reference to smf_load' `

I'm compiling with:

gcc smftest.c $(pkg-config --cflags --libs glib-2.0)

Then I read that the home page suggests to do a make install. Is this the only way to use the library? What about doing the build to some other location than:

usr/bin/mkdir: cannot create directory ‘/usr/local/lib64’: Permission denied

mavavilj avatar Apr 04 '22 08:04 mavavilj

add $(shell pkg-config --libs --cflags smf) to your makefile CFLAGS or whatever.

Garnek0 avatar Aug 05 '24 09:08 Garnek0