ShiqiYu / ShiqiYu/libfacedetection
undefined reference to `facedetect_cnn(unsigned char*, unsigned char*, int, int, int)`
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.8k
- Forks
- 3k
- PR merge metrics
- No merged PRs in 30d
Description
Tried compiling all the examples, but all failed:
>g++ -o detect-camera detect-camera.cpp \
-I../include -I/usr/include/opencv4 \
-I/home/maifeevm25apr/libfacedetection/build/install/include \
`pkg-config --cflags --libs opencv4`
/usr/bin/ld: /tmp/ccs9GyTs.o: in function `main':
detect-camera.cpp:(.text+0x229): undefined reference to `facedetect_cnn(unsigned char*, unsigned char*, int, int, int)'
collect2: error: ld returned 1 exit status
>g++ -o detect-camera detect-image.cpp \
-I../include -I/usr/include/opencv4 \
-I/home/maifeevm25apr/libfacedetection/build/install/include \
`pkg-config --cflags --libs opencv4`
/usr/bin/ld: /tmp/ccv0yeWy.o: in function `main':
detect-image.cpp:(.text+0x1e1): undefined reference to `facedetect_cnn(unsigned char*, unsigned char*, int, int, int)'
collect2: error: ld returned 1 exit status
>g++ -o detect-camera benchmark.cpp \
-I../include -I/usr/include/opencv4 \
-I/home/maifeevm25apr/libfacedetection/build/install/include \
`pkg-config --cflags --libs opencv4`
/usr/bin/ld: /tmp/ccV7X4TP.o: in function `main':
benchmark.cpp:(.text+0x257): undefined reference to `facedetect_cnn(unsigned char*, unsigned char*, int, int, int)'
/usr/bin/ld: benchmark.cpp:(.text+0x2ec): undefined reference to `facedetect_cnn(unsigned char*, unsigned char*, int, int, int)'
collect2: error: ld returned 1 exit status
It keeps giving me facedetect_cnn(unsigned char*, unsigned char*, int, int, int)
Checked out in fb0c773e1fbe30479e5e7c32888de41b9e818b4d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the compile commands and the example entry points detect-camera.cpp, detect-image.cpp, and benchmark.cpp, then inspect the repository's build or installation instructions and libraries for the missing symbol. Reproduce the linker failure at commit fb0c773e1fbe30479e5e7c32888de41b9e818b4d; done means the examples compile and link successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, opencv
- Domain
- build-system, computer-vision
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100