You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get started usbrelay-1.2.1. As I knew, problem of making file is absence option of "ln -sr libusbrelay.so.$(USBLIBVER) libusbrelay.so" "r"(recursive symlink) in macos ln. And because next task "usbrelay" is doesn't work. Output: cc -I/opt/homebrew/opt/lzo/include -I/opt/homebrew/opt/hidapi/include -I/opt/homebrew/opt/argp-standalone/include -O2 -Wall -I/opt/homebrew/opt/argp-standalone/include usbrelay.c -l:libusbrelay.so.1.1 -L/opt/homebrew/opt/lzo/lib -o usbrelay -L/opt/homebrew/opt/hidapi/lib -lhidapi -L/opt/homebrew/opt/argp-standalone/lib -largp
ld: library not found for -l:libusbrelay.so.1.1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [usbrelay] Error 1
This is my Makefile: Makefile.txt
Can you help me?
The text was updated successfully, but these errors were encountered:
Sorry, missed this issue.
ln -sr (r is relative, not recursive)
What if you make the link manually. ln -s libusbrelay.so.1.2 libusbrelay.so
Here is the output when running make on linux (Fedora), you should be able to run that instead of make and remove the 'r' option from ln
echo "#define GITVERSION "1.2.1-9-ge6c9628dc7"" > gitversion.h
cc -shared -fPIC -Wl,-soname,libusbrelay.so.1 -O2 -Wall libusbrelay.c -o libusbrelay.so.1.2 -lhidapi-hidraw
/sbin/ldconfig -n .
ln -sr libusbrelay.so.1.2 libusbrelay.so
cc -O2 -Wall usbrelay.c -l:libusbrelay.so.1.2 -L./ -o usbrelay -lhidapi-hidraw
echo "prefix=/usr" > libusbrelay.pc
echo "libdir=/usr/lib64" >> libusbrelay.pc
echo "includedir=/usr/include" >> libusbrelay.pc
echo "" >> libusbrelay.pc
echo "Name: libusbrelay" >> libusbrelay.pc
echo "Description: A library to manipulate hidraw USB relay" >> libusbrelay.pc
echo "Version: 1.2" >> libusbrelay.pc
echo "Requires:" >> libusbrelay.pc
echo "Conflicts:" >> libusbrelay.pc
echo "Libs: -L/usr/lib64 -lusbrelay" >> libusbrelay.pc
echo "Cflags: -I/usr/include" >> libusbrelay.pc
I get started usbrelay-1.2.1. As I knew, problem of making file is absence option of "ln -sr libusbrelay.so.$(USBLIBVER) libusbrelay.so" "r"(recursive symlink) in macos ln. And because next task "usbrelay" is doesn't work. Output: cc -I/opt/homebrew/opt/lzo/include -I/opt/homebrew/opt/hidapi/include -I/opt/homebrew/opt/argp-standalone/include -O2 -Wall -I/opt/homebrew/opt/argp-standalone/include usbrelay.c -l:libusbrelay.so.1.1 -L/opt/homebrew/opt/lzo/lib -o usbrelay -L/opt/homebrew/opt/hidapi/lib -lhidapi -L/opt/homebrew/opt/argp-standalone/lib -largp
ld: library not found for -l:libusbrelay.so.1.1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [usbrelay] Error 1
This is my Makefile:
Makefile.txt
Can you help me?
The text was updated successfully, but these errors were encountered: