Build fails with:
usr/bin/ld: /usr/bin/ld: DWARF error: could not find variable specification at offset 3f029
/usr/bin/ld: DWARF error: could not find variable specification at offset 3f2a0
/usr/bin/ld: DWARF error: could not find variable specification at offset 3f335
/usr/bin/ld: DWARF error: could not find variable specification at offset 3f3ca
/usr/bin/ld: DWARF error: could not find variable specification at offset 3f45f
/usr/bin/ld: DWARF error: could not find variable specification at offset 3f6d6
/usr/bin/ld: DWARF error: could not find variable specification at offset 3f94d
/usr/bin/ld: DWARF error: could not find variable specification at offset 3fbc4
obj/pose_detector.o: in function `PoseDetector::PoseDetector(char const*, char const*, int)':
/home/vfbsilva/Source/teste_server/darknet_server/server/./src/pose_detector.cpp:447: undefined reference to `Detector::get_net_out_width() const'
/usr/bin/ld: /home/vfbsilva/Source/teste_server/darknet_server/server/./src/pose_detector.cpp:448: undefined reference to `Detector::get_net_out_height() const'
/usr/bin/ld: obj/pose_detector.o: in function `PoseDetector::detect(cv::Mat, float)':
/home/vfbsilva/Source/teste_server/darknet_server/server/./src/pose_detector.cpp:473: undefined reference to `Detector::predict(float*) const'
collect2: error: ld returned 1 exit status
make: *** [Makefile:44: worker] Error 1
Steps to reproduce
I had to adapt the ldflags to reflect opencv4. The following section is different to the original makefile:
CXXFLAGS += pkg-config --cflags json-c
CXXFLAGS += pkg-config --cflags opencv4
System information (version)
Detailed description
Steps to reproduce
I had to adapt the ldflags to reflect opencv4. The following section is different to the original makefile: CXXFLAGS +=
pkg-config --cflags json-c
CXXFLAGS +=pkg-config --cflags opencv4
LDFLAGS +=
pkg-config --libs json-c
LDFLAGS +=pkg-config --libs opencv4
clone the project, run make.