2021年5月5日星期三

编译openwrt-21.02出现can not be used when making a PIE object; recompile with -fPIE的问题

在编译./build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.114/tools/objtool的时候,出现can not be used when making a PIE object; recompile with -fPIE的错误。解决方法是修改:./build_dir\target-x86_64_musl\linux-x86_64\linux-5.4.114\tools\objtool\Makefile文件

在下面这一行中

LDFLAGS  += $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS)

加入"-no-pie";变成下面的样子:

LDFLAGS  += -no-pie $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS)

重新编译解决。

安装 PaddleOCR的方法

  安装飞桨版本:https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/develop/install/pip/windows-pip.html 命令:  python -m pip...