Comments (3)
//#cgo LDFLAGS : -L${SRCDIR} -Wl,-rpath,$ORIGIN -larcsoft_face_engine
这样可以解决
-Wl,-rpath,$ORIGIN 是一种设置运行时库搜索路径的方法。它告诉链接器(-Wl 用于传递选项给链接器)在可执行文件所在的目录中搜索共享库。$ORIGIN 是一个特殊的变量,表示可执行文件的目录。
后来测试了下libarcsoft_face_engine.so可以正常使用,但是libarcsoft_face.so的路径无法指定
root@test-System-Product-Name:/home# ldd /home/test/goproject/face-engine/libarcsoft_face.so
linux-vdso.so.1 (0x00007ffc07967000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4dcf952000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4dcf770000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4dcf621000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4dcf606000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4dcf414000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4dd2370000)
root@test-System-Product-Name:/home# ldd /home/test/goproject/face-engine/libarcsoft_face_engine.so
linux-vdso.so.1 (0x00007ffc263cc000)
libarcsoft_face.so => not found
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff2fc0cc000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff2fc0b1000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff2fbebf000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff2fbd70000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff2fc57a000)
libarcsoft_face.so 的路径好像时相对的,没办法指定
from face-engine.
Related Issues (20)
- 能支持linux不?是不是有什么问题? HOT 5
- 如何根据人脸特征码,反向组成Featrue结构体 HOT 2
- 无法编译通过 HOT 1
- Mac 上运行报错 ld: library not found for -larcsoft_face_engine
- 目前报这个错误,该怎么解决呢,求回答 HOT 1
- 虹软4.0 Windows 批量抽特征报错 HOT 9
- 你好 HOT 1
- V4版本SDK在哪? HOT 1
- 麻烦作者什么时候抽空封装下4.1版本呢,据说效果有提升
- 运行例子报了几个未定义的错,请问怎么解决 HOT 2
- 请问支持视频流识别么? HOT 4
- 示例运行错误 HOT 2
- 小建议 HOT 1
- 请问支持年龄识别吗?
- 请问有改造3.0的想法么 HOT 4
- go get wrong HOT 1
- 提取人脸特征的时候,咋感觉arr没有赋值呢? HOT 1
- 提取人脸特征的时候,咋感觉arr没有赋值呢? HOT 1
- 一个因为人脸特征提取失败导致panic的bug HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from face-engine.