Re: Can't open compiled [pyo~] object

IOhannes m zmölnig via Pd-list <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
Am 14. Juli 2025 19:16:41 MESZ schrieb Alexandros Drymonitis <[email protected]>:
>Your Makefile works (I guess you're not surprised :).

not really. sometimes I test the stuff I'm posting :-)


>> 
>> having said that, I've compiled the external with python3.13 (Debian/trixie/sid), but...
>I wanted to build it for Python3.13 too, but I couldn't find the libpython3.13.so file on my system. I'm on Debian 12 and compiled Python3.13 myself. Any idea where this is?

usually self-compiled thingies go into `/usr/local` if you run `make install`.

but this really depends on the actual build system and what you*really* did. it's nigh impossible to tell from here.





>> also note, that LD_PRELOAD is general not a good idea
>> (and you should *definitely not* set the environment variable globally,
>> unless you are really into kneecapping and the like)

>How can one avoid this then?

by linking against the required libpython as explained further down



>> in any case, overriding the linker flags fixes this easily:
>> ```
>> make PY_LIBS="-lpython3.13"
>> ```

>That's true (I guess you're not surprised again!). I changed that to 3.11 though.


well yes, whatever your python version is.


>> 
>> alternatively, using "python3.13-config --embed"  should also give you the correct flags:


as an alternative, I found that there is also a "python*-embed" pkg-config file, which can be used instead (eg `pkg-config --libs python3-embed` or `pkg-config --libs python-3.13-embed` both work on my system).

so `make PYTHON=python3-embed` would work. 

I don't know whether this pkg-config file is a Debianism or whether upstream python would ship them as well).


but I'm not sure I understand your question (or whether there is still one)


mfg.sfg.jfd
IOhannes
---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/6AQNSELKFIPLS45X7VPY5JQSKQM2F74Q/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
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.