Skip to content

Install

Julien edited this page Mar 17, 2020 · 5 revisions

Build

Run the provided build script to compile the shared (.so) or static (.a) version of the library. I suggest you go with shared. This requires gcc to be installed on your system.

chmod +x build-shared
./build-shared

You should now find the compiled library in the lib subdirectory.

Install

Now comes the hard part. Hard, because I can't tell you precisely how to do it, as the paths for libraries vary depending on distro and architecture. You will have to research where your distro is usually looking for shared libraries. Once you know that, you copy the .so (shared library) and .h (header) file into the appropriate directories, then run ldconfig with the directory of the shared library so your system knows about the new library. For my Debian (amd64), it looks like this:

cp ./lib/libtwirc.h /usr/include/
cp ./lib/libtwirc.so /usr/lib/x86_64-linux-gnu/
ldconfig -v -n /usr/lib

Once you've done this, you are all set! Let's check out some example code for libtwirc next.

Clone this wiki locally