Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make LIBSO=1 in macOS still fails (with fix) #7654

Open
Krogsager opened this issue Apr 27, 2021 · 0 comments
Open

make LIBSO=1 in macOS still fails (with fix) #7654

Krogsager opened this issue Apr 27, 2021 · 0 comments

Comments

@Krogsager
Copy link

I was unable to build with LIBSO=1 on macOS. Similar to #1755
on e2a1287

$ make

[...]

1 warning generated.
ld: library not found for -l:libdarknet.so
clang: fatal error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [uselib] Error 1

As suggested by @IanButterworth I also had to make the following change to my Makefile

diff --git a/Makefile b/Makefile
index 5fb7054..e8e1600 100644
--- a/Makefile
+++ b/Makefile
 
 $(APPNAMESO): $(LIBNAMESO) include/yolo_v2_class.hpp src/yolo_console_dll.cpp
-       $(CPP) -std=c++11 $(COMMON) $(CFLAGS) -o $@ src/yolo_console_dll.cpp $(LDFLAGS) -L ./ -l:$(LIBNAMESO)
+       $(CPP) -std=c++11 $(COMMON) $(CFLAGS) -o $@ src/yolo_console_dll.cpp $(LDFLAGS) -L ./ $(LIBNAMESO)
 endif

On System Version: macOS 11.2.3 (20D91)
Kernel Version: Darwin 20.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant