VeinApiLinux.so /usr/bin/ld: cannot find -lVeinApiLinux
-
I am a noob of Qt and using a fingervein device for developing work.But I met a problem .I dont konw how to deal with.Here are some info,as follows:
1,BUG :
/usr/bin/ld: cannot find -lVeinApiLinux
Makefile:234: recipe for target 'mycom' failed
collect2: error: ld returned 1 exit status
make: *** [mycom] Error 1
19:20:20: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project mycom (kit: Desktop Qt 5.7.1 GCC 64bit)
When executing step "Make"
2.MYCOM.PRO INFOVeinApiLinux .so
INCLUDEPATH += /usr/lib
LIBS += -L/usr/lib -lVeinApiLinux -ldlI appreciate it.
-
@Jack_Xuan Did you check if the library exists at that path ?
-
@Jack_Xuan If
VeinApiLinux
is a library then it should be prefixed withlib
and end with.so
for dynamic and.a
for static because that is whatgcc
expects. Try renaming it. -
@Jack_Xuan You are compiling against the library as
LIBS += -L/usr/lib -lVeinApiLinux -ldl
so the compiler expects a library as
libVeinApiLinux.so