Mantis Bug Tracker

View Issue Details Jump to Notes ] << ] >> ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000453inotify-cxxpublic2010-05-21 00:572010-03-23 23:35
Reportergvegidy 
Assigned Toluk 
PrioritynormalSeverityfeatureReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Summary0000453: build as library
DescriptionWe have several programs which use inotify-cxx. So building and using inotify-cxx as a library has several advandages:

- if a new version of inotify-cxx comes out, we have to update only once
- if the shared library is used and several programs using it run at once, the lib is only loaded once into the memory
- it is possible to package it and submit this package to distributions like Fedora, Debian, Ubuntu,...

A good library on Linux is usually encompanied by a pkgconfig file. With it it's more conveniant for the user to include the library into a project. So the user does not have to fiddle with the correct library- or include-paths.

Attached are two files:
CMakeLists.txt: for controlling build and install with cmake
inotify-cxx.pc.in: to serve as stub for the pkgconfig file

Just copy these files into the root dir of inotify-cxx. Then call

mkdir build # build in a separate builddir
cd build
cmake ..
make

To copy the lib into /usr/local/lib and the header to /usr/local/include etc.:
make install

If you want to copy to /usr... instead call it like this:

cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (3,793 bytes) 2010-03-12 20:42 [Show Content]
? file icon inotify-cxx.pc.in [^] (236 bytes) 2010-03-12 20:42

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2010-03-12 20:42 gvegidy New Issue
2010-03-12 20:42 gvegidy File Added: CMakeLists.txt
2010-03-12 20:42 gvegidy File Added: inotify-cxx.pc.in
2010-03-23 23:35 luk Status new => assigned
2010-03-23 23:35 luk Assigned To => luk


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker