Jump to content
Fórum Script Brasil
  • 0

Erros ao Compilar matplotlibcpp com Python 3.11


lexluthor2010

Question

Estou tentando compilar o matplotlibcpp com Python 3.11 e estou encontrando alguns erros e avisos. Seguem os detalhes: 

Código de Compilação:

g++ -Wall -o matplotlibcpp matplotlibcpp.cpp -I/home/lexluthor/Documentos -I/home/lexluthor/.local/lib/python3.11/site-packages/numpy/core/include -I$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -I/usr/include/eigen3 -lpython3.11
 

Erros e Avisos:

In file included from matplotlibcpp.cpp:1:
matplotlibcpp.h: In constructor ‘matplotlibcpp::detail::_interpreter::_interpreter()’:
matplotlibcpp.h:174:26: warning: ‘void Py_SetProgramName(const wchar_t*)’ is deprecated [-Wdeprecated-declarations]
  174 |         Py_SetProgramName(name);
      |         ~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/python3.11/Python.h:94,
                 from matplotlibcpp.h:5:
/usr/include/python3.11/pylifecycle.h:37:38: note: declared here
   37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
      |                                      ^~~~~~~~~~~~~~~~~
matplotlibcpp.h:182:22: warning: ‘void PySys_SetArgv(int, wchar_t**)’ is deprecated [-Wdeprecated-declarations]
  182 |         PySys_SetArgv(argc, const_cast<wchar_t **>(argv));
      |         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:96:
/usr/include/python3.11/sysmodule.h:13:38: note: declared here
   13 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
 

Ambiente:

Sistema Operacional: Fedora

Versão do Python: 3.11

Versão do GCC: [Sua versão do GCC]

O que eu já tentei:

Verificar e atualizar as dependências.

Confirmar a presença dos diretórios e arquivos necessários.

Se alguém puder ajudar com uma solução ou sugestões sobre como resolver esses problemas, eu ficaria muito grato!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      651.8k
×
×
  • Create New...