FOTS测试时出现的错误:

 adaptor.cpp:53:1: note: in expansion of macro ‘PYBIND11_PLUGIN’  PYBIND11_PLUGIN(adaptor)

一般来说是编译环境版本不对应的问题。

于是修改/home/hlx2/PycharmProjects/FOTS_TF-master/lanms/include/pybind11/common.h中的第100~102:

#include <Python.h>

#include <frameobject.h>

#include <pythread.h>

为:

#include <python3.5/Python.h>

#include <python3.5/frameobject.h>

#include <python3.5/pythread.h>

但是还是出错,

改回来就好了。。。。。。。。。

https://blog.csdn.net/u011489887/article/details/89329750

 

g++: error: unrecognized command line option ‘-fno-plt’

解决办法:

将Makefile文件的以下行

CXXFLAGS = -I include  -std=c++11 -O3 $(shell python3-config --cflags)

中的$(shell python3-config --cflags)替换为

-I/home/xx/anaconda3/include/python3.6m

FOTS测试时出现的错误

注意:替换的部分请换成自己的anaconda目录,如果不知道按照在哪,可以通过在命令行输入python3-config --cflags,然后回车看到,anaconda路径

https://blog.csdn.net/ab0902cd/article/details/88352417

 

 

 

 

 

 

 

 

 

 

相关文章:

  • 2021-10-30
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-11-12
  • 2021-05-28
  • 2021-06-27
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
相关资源
相似解决方案