Re: [Anjuta-list] installing libraries
- From: Konstantin Kozlov <kozlov spbcas ru>
- To: "Grizzly(Francis Smit)" <grizzly smit id au>
- Cc: anjuta-list lists sourceforge net, Johannes Schmid <jhs jsschmid de>
- Subject: Re: [Anjuta-list] installing libraries
- Date: Wed, 11 Mar 2009 11:24:18 +0300
Hi,
Grizzly(Francis Smit) wrote:
> Konstantin Kozlov wrote:
>> Hi,
>>
>> in short, you need to create the file in your project for library -
>> <library name>.pc and install it to $prefix/lib/pkgconfig. Look for
>> examples in /usr/lib/pkgconfig. It is possible to create a target in
>> Anjuta for that, or manualy edit Makefile.am.
>>
> OK does that mean I can get anjuta to generate the pc file ?? I don't
> find such a target ??
>
>
No, anjuta weren't generate it and doesn't have such target, but as from
my experience targets names are rather confusing always.
The following are the quotes from my setup for library libdoor.so. Add
those by hand and adjust, backup the directory before that.
in configure.ac
AC_OUTPUT([
Makefile
src/Makefile
src/libdoor-1.0.pc
...
])
in src/Makefile.am
EXTRA_DIST = \
...
$(pkgconfig_DATA)
...
pkgconfig_DATA = \
libdoor-1.0.pc
pkgconfigdir = \
$(libdir)/pkgconfig
in src/libdoor-1.0.pc.in
prefix= prefix@
exec_prefix= exec_prefix@
libdir= libdir@
datarootdir= datarootdir@
datadir= datadir@
includedir= includedir@/DOOR
Name: libdoor
Description: Library for LIMS.
Version: @VERSION@
Requires: glib-2.0 gio-2.0
Libs: -L${libdir} -ldoor
Cflags: -I${includedir}
in configure - Not remember if that needed to be done manually, may that
will be regenerated, but check in case of trouble:
ac_config_files="$ac_config_files Makefile src/Makefile
src/libdoor-1.0.pc po/Makefile.in komet/Makefile db/Makefile db-ru/Makefile"
After those changes, go to ... wow, in the previous version there was a
menu 'regenerate'... Not in this version...Hmm, probably you'll need to
run autogen manually or may be others will help you.
In project browser I have:
/-|
|-src/-|
|libdoor-1.0.pc/-|
|-libdoor-1.0.pc.in
pkgconfig/-|
|-libdoor-1.0.pc
Have a good luck!
Grizzly(Francis Smit) wrote:
Konstantin Kozlov wrote:
Hi,
in short, you need to create the file in your project for library -
<library name>.pc and install it to $prefix/lib/pkgconfig. Look for
examples in /usr/lib/pkgconfig. It is possible to create a target in
Anjuta for that, or manualy edit Makefile.am.
OK does that mean I can get anjuta to generate the pc file ?? I don't
find such a target ??
Also on the subject of targets I cannot get anjuta to generate a man
file I just get the error
<b>Can not add target</b>
Unable to update project
Unimplemented target type writer
what does that mean ??
I'm using Anjuta 2.24.1
Grizzly(Francis Smit) wrote:
Johannes Schmid wrote:
Hi!
You can only add libraries with "Add package" which are using
pkg-config. Normal libraries don't do that automaticly (have a look at
the pkg-config documentation how to archive this...). You can still add
the library to your project by adding "-I/path/to/header/files" to
CFLAGS and -lmylibrary to LDFLAGS in the target configuration
(right-click on target in project-window and choose properties).
See also the build tutorial on anjuta.org!
Thanks, um one more thing can you link me to the pkg-config
documentation, google is being unhelpful :( or is the man page enough ??
Regards,
Johannes
Am Mittwoch, den 11.03.2009, 09:27 +1100 schrieb Grizzly(Francis Smit):
Hi I made a library using anjuta then I installed it
sudo make install
but when I go to put it in my project anjuta->project->properties ...
Packages->Add Package I cannot find my package what am I doing wrong??
--
Konstantin Kozlov
Department of Computational Biology,
Center for Advanced Studies,
SPb State Polytechnical University,
195251, Polytechnicheskaya ul., 29,
bld 4, office 204,
St.Petersburg, Russia.
Tel./fax: +7 812 596 2831
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]