ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] KDar: Как добавить библиотеку для линковки?
@ 2005-04-07 13:48 Alexey Borovskoy
  2005-04-11  7:40 ` Alexey Borovskoy
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Borovskoy @ 2005-04-07 13:48 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 1370 bytes --]

Доброй ночи.

Пытаюсь понять каким образом подключить дополнительную библиотеку 
при линковке. Дано место в котором сборка падает:

/bin/sh ../libtool --silent --mode=link --tag=CXX 
i586-alt-linux-g++  -Wnon-virtual-dtor -Wno-long-long -Wundef 
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith 
-Wwrite-strings -O2 -pipe -Wall -O2 -march=i586 -mcpu=i686 
-Wformat-security -Wmissing-format-attribute -fno-exceptions 
-fno-check-new -fno-common -fexceptions   -o kdar -R /usr/lib 
-R /usr/lib/qt3//lib -R /usr/X11R6/lib -L/usr/X11R6/lib 
-L/usr/lib/qt3//lib -L/usr/lib 

Тут куча объектных файлов

-lkio -lkdeprint -ldar

Получаем.

kdarcontroller.o(.text+0xd92): In function 
`KDarController::openKDEWallet()':
: undefined reference to `KWallet::Wallet::LocalWallet()'
kdarcontroller.o(.text+0xda7): In function 
`KDarController::openKDEWallet()':
: undefined reference to `KWallet::Wallet::openWallet(QString 
const&, unsigned long, KWallet::Wallet::OpenType)'
collect2: ld returned 1 exit status

Как я понимаю, то что хочет ld живет 
в /usr/lib/libkwalletclient.so.1.0.0.

Как я понимаю, надо добавить -lkwalletclient.
Вопрос: в какое место configure.in или Makefile.in эту либу 
прописать? И как это правильно сделать?

-- 
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63  2753 E37A 9E3F 11F3 BDE1

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Comm] KDar: Как добавить библиотеку для линковки?
  2005-04-07 13:48 [Comm] KDar: Как добавить библиотеку для линковки? Alexey Borovskoy
@ 2005-04-11  7:40 ` Alexey Borovskoy
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Borovskoy @ 2005-04-11  7:40 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

* Пятница 08 Апрель 2005 02:48 Alexey Borovskoy

> Доброй ночи.
>
> Пытаюсь понять каким образом подключить дополнительную
> библиотеку при линковке. Дано место в котором сборка падает:

От патчей на Makefile.am ее пучит. Я не большой спец в 
автохозяйстве, поэтому после точечного удара кувалдой оно 
собралось.

-- 
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63  2753 E37A 9E3F 11F3 BDE1

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-11  7:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-07 13:48 [Comm] KDar: Как добавить библиотеку для линковки? Alexey Borovskoy
2005-04-11  7:40 ` Alexey Borovskoy

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git