Closed albertarla closed 2 years ago
The output is quite clear that the file libpython3.10.a
is missing. You will find this file in package libpython3.10-dev
.
@albertarla Do you have this package installed? Is libpython3.10.a
present anywhere on your system (try locate libpython3.10.a
)?
Hi, thanks for the answer. Yes the file is present in my computer. Sorry for not clearing that out at first place in the issue. Here the output of locate:
albert@albert:~$ locate libpython3.10.a
/home/albert/.pyenv/versions/3.10.0/lib/libpython3.10.a
/home/albert/.pyenv/versions/3.10.0/lib/python3.10/config-3.10-x86_64-linux-gnu/libpython3.10.a
/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/libpython3.10.a
/usr/lib/x86_64-linux-gnu/libpython3.10.a
Also the output of python --version and which python:
albert@albert:~$ python --version
Python 3.10.0
albert@albert:~$ which python
/home/albert/.pyenv/shims/python
albert@albert:~$
Can you try this without a virtual environment? Since CMake recognises that Python is installed but then does not set the library path correctly to find libpython3.10.a
, it may get confused by different paths.
After doing sudo apt install libpython3.10-dev
and compiling without the virtual env it worked. Thanks a lot for the support.
I'm trying to compile the library as said in the README file with cmake. I have python 3.10.4 on my system running with ubuntu 22.04 and a pyenv enviornment with python 3.10.0. If I execute
which python
andpython --version
the output is that I'm using the pyenv one with python 3.10.0. Then when callingcmake -B build -DCMAKE_BUILD_TYPE=Release
I get the following outpu:As you can see it found my python system version 3.10.4.
Then when trying to compile it i get the follwing error:
How can I solve it or does anyone have installed the library succesfully on ubuntu 22.04? Thanks in advance.