Re: Pkg-config file not supplied by CLucene

"\"Douglas R. Reno\"" ([email protected] via blfs-dev Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
On 9/29/25 3:05 PM, "Antonis" ([email protected] via blfs-dev 
Mailing List) wrote:
> CLucene does not supply a pkg-config file by default. This becomes an issue
> when CLucene is required by packages such as LibreOffice. The following error
> occurs during autogen:
>
> "checking for libclucene-core... no
> configure: error: Package requirements (libclucene-core) were not met:
>
> Package 'libclucene-core' not found
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> Alternatively, you may set the environment variables CLUCENE_CFLAGS
> and CLUCENE_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> Error running configure at ./autogen.sh line 338."
>
> The following patch fixes the aforementioned issue:
> https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-cpp/clucene/files/clucene-2.3.3.4-pkgconfig.patch
>
Hi Antonis,

I can't reproduce this over here. Checking my libreoffice log:

checking which clucene to use... external
checking for libclucene-core... yes
checking for CLucene/analysis/cjk/CJKAnalyzer.h... yes


... and then my log for clucene:


-- Installing: /usr/lib/pkgconfig/libclucene-core.pc


The contents of my libclucene-core.pc file are:

---

prefix=/usr
exec_prefix=${prefix}/bin
libdir=${prefix}/lib
includedir=${prefix}/include:${prefix}/include/CLucene/ext

Name: libclucene
Description: CLucene - a C++ search engine, ported from the popular 
Apache Lucene
Version: 2.3.3.4
Libs: -L${prefix}/lib/ -lclucene-core
Cflags: -I${prefix}/include -I${prefix}/include/CLucene/ext

---


Can you double check that you built CLucene with the instructions in the 
book?

Thank you!

- Doug

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.