On 2/25/25 07:36, Jörg Sommer wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Changqing Li via lists.openembedded.org schrieb am Do 20. Feb, 11:57 (+0800):
The reverted commit causes regression when ldconfig not in
DISTRO_FEATURES, before, without ldconfig in DISTRO_FEATURES,
ctypes.util.find_library(name) can find the lib if it is installed,
Hello Changqing Li,

Did I understand correctly that gtk+3 was found before, indent of ldconfig
was in der DISTRO_FEATURES? But after the change, if fails.

Where is libgdk installed? In /usr/lib or somewhere else?

Hi,

libgtk is under /usr/lib. See:

root@qemux86-64:~# ldconfig -p | grep gtk-3 

libgtk-3.so.0 (libc6,x86-64) => /usr/lib/libgtk-3.so.0 

root@qemux86-64:~# python3 

Python 3.13.2 (main, Feb 4 2025, 14:51:09) [GCC 14.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. 

>>> from ctypes.util import find_library 

>>> find_library('gtk-3')

 'libgtk-3.so.0'


For the case that ldconfig is NOT in DISTRO_FEATURES, gtk+3 can be found. After commit "python3-ctypes: depend on ldconfig only if distro-feature set" is merged,

ldconfig is not installed, so ctypes.util.find_library cannot found gtk+3.

//Changqing



Bye, Jörg

--
Navimatix GmbH           T: 03641 - 327 99 0
Tatzendpromenade 2       F: 03641 - 526 306
07745 Jena               www.navimatix.de

Geschäftsführer: Steffen Späthe, Jan Rommeley
Registergericht: Amtsgericht Jena, HRB 501480