编译Caffe错误:libpython3.5m.a(abstract.o): relocation R_X86_64_32S against

简介: 编译Caffe错误:libpython3.5m.a(abstract.o): relocation R_X86_64_32S against

编译之,错误如下:


libpython3.5m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC

 其实这个错误很常见。需要重新编译Python3.5……麻烦?比编译不过强,有办法就很好啦!


./configure --prefix=/usr/local/  --enable-shared CFLAGS=-fPIC
make clean
make && sudo make install

 一般建议删除目录后,重新解压、编译。

目录
相关文章
|
3月前
|
前端开发 Python
Python Tricks-- Abstract Base Classes Keep Inheritance in Check
Python Tricks-- Abstract Base Classes Keep Inheritance in Check
19 1
编译pluma: pluma/Makefile.am:192: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
编译pluma: pluma/Makefile.am:192: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
120 0
help/Makefile.am:21: error: USE_NLS does not appear in AM_CONDITIONAL
help/Makefile.am:21: error: USE_NLS does not appear in AM_CONDITIONAL
107 0
编译OpenJDK12:atomic.hpp: fatal error C1189: size_t is not WORD_SIZE(换了VS2017编译)
编译OpenJDK12:atomic.hpp: fatal error C1189: size_t is not WORD_SIZE(换了VS2017编译)
109 0
|
缓存 iOS开发
Runtime系列:Class的结构【03】
Runtime系列:Class的结构
133 0
Runtime系列:Class的结构【03】
|
存储 Android开发 索引
resource.arsc解析之 Dynamic package reference
加载Theme出错 这是一篇补充文章,在做动态替换resId的过程中,我发现bag类型的ResTable_entry在使用过程中存在问题。比如style,其parent解析一直有问题
296 0
|
开发工具 Android开发
解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
219 0
解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
【Groovy】编译时元编程 ( ASTTransformation#visit 方法简介 | org.codehaus.groovy.ast.ModuleNode 脚本节点 )
【Groovy】编译时元编程 ( ASTTransformation#visit 方法简介 | org.codehaus.groovy.ast.ModuleNode 脚本节点 )
232 0
|
算法框架/工具 Caffe
编译Caffe错误:libpython3.5m.a(abstract.o): relocation R_X86_64_32S against
编译Caffe错误:libpython3.5m.a(abstract.o): relocation R_X86_64_32S against
214 0
Travis CI Could not find or load main class org.gradle.wrapper.GradleWrapperMain 错误
问题 在 Travis CI 编译的时候出现 Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain 错误。
1531 0

热门文章

最新文章