[PD] Can't open compiled [pyo~] object

Alexandros adrcki at gmail.com
Tue Feb 21 20:21:02 CET 2023


On 21/2/23 20:41, IOhannes m zmölnig wrote:
> Am 21. Februar 2023 08:41:48 MEZ schrieb Alexandros <adrcki at gmail.com>:
>> ldflags= $(shell python-config --ldflags)
>> libs= $(shell python-config --libs)
>>
> [...]
>> In the pyo~.c file there's a `#include "Python.h"`. Does this mean that I should direct the Makefile to find this file? Because no Python.h file comes with the source code.
>
> Hopefully so.
> python.h is a file provided by python, and it is paramount that you build against the header file that matches your python installation.
> So you must install the python development files (python3-dev, or somesuch).
>
> I'm not up-to-date when it comes to python C-development, but I  'python-config' smells like a deprecated tool.
Initially that was python3-config, but in my system, `python` is 
Python3, so I thought I change it to `python-config`. Is this still a 
deprecated tool?





More information about the Pd-list mailing list