| 1 |
The following lines should do the work : |
| 2 |
$ cd libspctag-x.x |
| 3 |
$ mdir build;cd build |
| 4 |
$ cmake .. |
| 5 |
$ make |
| 6 |
# make install |
| 7 |
|
| 8 |
This will build the project in the build subdirectory. |
| 9 |
By default the install prefix is /usr/local. Use "cmake -DCMAKE_INSTALL_PREFIX=anywhere" to install in another directory. |
| 10 |
You can choose build type using "cmake -DCMAKE_BUILD_TYPE=Debug|Release|RelWithDebInfo|MinSizeRel". |
| 11 |
|
| 12 |
Compilation has only been tested with cmake 2.8.5 on Linux. I think it works with a 2.6, this is why cmake 2.6 is required in the CMakeList.txt. Tell me if it works with older versions. |
| 13 |
|
| 14 |
|
| 15 |
If you can not or don't want use cmake, you can use following commands to compile and install libspctag |
| 16 |
$ cd src |
| 17 |
$ gcc -fPIC -Wall -c spctag.c |
| 18 |
$ gcc -shared -Wl,-soname,libspctag.so.x -o libspctag.so.x.x spctag.o -lc |
| 19 |
# cp libspctag.so.x.x /usr/local/lib |
| 20 |
# cd /usr/local/lib |
| 21 |
# ln -s libspctag.so.x.x libspctag.so.x |
| 22 |
# ln -s libspctag.so.x libspctag.so |
| 23 |
|