Comments (6)
I'm very sorry for being quiet on this issue, I have not had time figure this out. I'll probably update ofxDarknet with the latest darknet repository soon and figure out a way to make this addon work on linux as well. I will check your fork @kidapu along the way, thanks for struggling <3
from ofxdarknet.
yes, sorry, i have the same problems on my side as well. have to rebuild darknet for linux, the library we have now is giving these linker errors. if you manage to get it built on your side, a PR would be very welcome.
from ofxdarknet.
@genekogan
I cloned latest darknet repository, and build it, and replace ofxDarknet in forked my repository.
I encountered many errors, I fixed it as much as possible.
However, I can't understand how to solve the last error.
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o: In function `void std::__insertion_sort<__gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long, std::allocator<unsigned long> > >, __gnu_cxx::__ops::_Iter_comp_iter<ofxDarknet::yolo(ofPixels_<unsigned char>&, float, float)::{lambda(int, int)#1}> >(__gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long, std::allocator<unsigned long> > >, __gnu_cxx::__ops::_Iter_comp_iter<ofxDarknet::yolo(ofPixels_<unsigned char>&, float, float)::{lambda(int, int)#1}>, __gnu_cxx::__ops::_Iter_comp_iter<ofxDarknet::yolo(ofPixels_<unsigned char>&, float, float)::{lambda(int, int)#1}>)':
ofxDarknet.cpp:(.text+0xae): undefined reference to `max_index(float*, int)'
ofxDarknet.cpp:(.text+0xcd): undefined reference to `max_index(float*, int)'
ofxDarknet.cpp:(.text+0x13d): undefined reference to `max_index(float*, int)'
ofxDarknet.cpp:(.text+0x164): undefined reference to `max_index(float*, int)'
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o: In function `void std::__adjust_heap<__gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long, std::allocator<unsigned long> > >, long, unsigned long, __gnu_cxx::__ops::_Iter_comp_iter<ofxDarknet::yolo(ofPixels_<unsigned char>&, float, float)::{lambda(int, int)#1}> >(__gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long, std::allocator<unsigned long> > >, long, __gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long, std::allocator<unsigned long> > >, unsigned long, __gnu_cxx::__ops::_Iter_comp_iter<ofxDarknet::yolo(ofPixels_<unsigned char>&, float, float)::{lambda(int, int)#1}>)':
ofxDarknet.cpp:(.text+0x247): undefined reference to `max_index(float*, int)'
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o:ofxDarknet.cpp:(.text+0x270): more undefined references to `max_index(float*, int)' follow
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o: In function `ofxDarknet::get_network_output_layer_gpu(int)':
ofxDarknet.cpp:(.text+0x9a5): undefined reference to `cuda_pull_array(float*, float*, unsigned long)'
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o: In function `ofxDarknet::nightmare(ofPixels_<unsigned char>&, int, int, int, int, int, int, float, float)':
ofxDarknet.cpp:(.text+0xa54): undefined reference to `make_image(int, int, int)'
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o: In function `ofxDarknet::convert(ofPixels_<unsigned char>&)':
ofxDarknet.cpp:(.text+0xe93): undefined reference to `make_image(int, int, int)'
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o: In function `ofxDarknet::classify(ofPixels_<unsigned char>&, int)':
ofxDarknet.cpp:(.text+0x116a): undefined reference to `make_image(int, int, int)'
ofxDarknet.cpp:(.text+0x125b): undefined reference to `network_predict(network, float*)'
ofxDarknet.cpp:(.text+0x1284): undefined reference to `top_k(float*, int, int, int*)'
ofxDarknet.cpp:(.text+0x14c8): undefined reference to `free_image(image)'
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o: In function `ofxDarknet::getFeatureMaps(int)':
ofxDarknet.cpp:(.text+0x1c41): undefined reference to `cuda_pull_array(float*, float*, unsigned long)'
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o: In function `ofxDarknet::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
ofxDarknet.cpp:(.text+0x1fb8): undefined reference to `parse_network_cfg(char*)'
ofxDarknet.cpp:(.text+0x1fd7): undefined reference to `load_weights(network*, char*)'
ofxDarknet.cpp:(.text+0x1fe4): undefined reference to `set_batch_network(network*, int)'
ofxDarknet.cpp:(.text+0x2cce): undefined reference to `get_labels(char*)'
/home/kida/openFrameworks_098/addons/obj/linux64/Release/ofxDarknet/src/ofxDarknet.o: In function `ofxDarknet::yolo(ofPixels_<unsigned char>&, float, float)':
ofxDarknet.cpp:(.text+0x305c): undefined reference to `make_image(int, int, int)'
ofxDarknet.cpp:(.text+0x31e3): undefined reference to `network_predict(network, float*)'
ofxDarknet.cpp:(.text+0x3259): undefined reference to `get_region_boxes(layer, int, int, int, int, float, float**, box*, float**, int, int*, float, int)'
ofxDarknet.cpp:(.text+0x3295): undefined reference to `do_nms_sort(box*, float**, int, int, float)'
ofxDarknet.cpp:(.text+0x32b0): undefined reference to `free_image(image)'
ofxDarknet.cpp:(.text+0x3355): undefined reference to `cuda_pull_array(float*, float*, unsigned long)'
ofxDarknet.cpp:(.text+0x3673): undefined reference to `max_index(float*, int)'
ofxDarknet.cpp:(.text+0x3696): undefined reference to `max_index(float*, int)'
ofxDarknet.cpp:(.text+0x3780): undefined reference to `max_index(float*, int)'
ofxDarknet.cpp:(.text+0x37d4): undefined reference to `get_color(int, int, int)'
ofxDarknet.cpp:(.text+0x37ef): undefined reference to `get_color(int, int, int)'
ofxDarknet.cpp:(.text+0x3807): undefined reference to `get_color(int, int, int)'
ofxDarknet.cpp:(.text+0x4030): undefined reference to `free_ptrs(void**, int)'
collect2: error: ld returned 1 exit status
/home/kida/openFrameworks_098/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:382: recipe for target 'bin/example-yolo2' failed
make[1]: *** [bin/example-yolo2] Error 1
make[1]: Leaving directory '/home/kida/openFrameworks_098/addons/ofxDarknet/example-yolo2'
/home/kida/openFrameworks_098/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125: recipe for target 'Release' failed
make: *** [Release] Error 2
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl glfw3 gl glu glew gtk+-3.0 libmpg123
/bin/sh: 1: ./example-yolo2: not found
/home/kida/openFrameworks_098/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:169: recipe for target 'run' failed
make: *** [run] Error 127
Please tell me if you have a solution.
from ofxdarknet.
@kidapu Does this issue still exists? Were you able to get it working in Linux?
from ofxdarknet.
Hello,
Was this resolved? Are there instructions for running on Linux?
Thanks,
from ofxdarknet.
It seems development for this on hold at the moment? No updates for 1.5 years.
I would be very much interested in a Linux version as well.
Compiling darknet for linux is no problem for me. Is there anything I have to take care of when compiling it for this addon? Is the newest version compatible with the addon? Doesnt look like the function calls changed but it got restructured quite a bit.
from ofxdarknet.
Related Issues (20)
- GPU mode issue HOT 3
- YOLO 9000 HOT 1
- All examples crashing when loading layer 24 HOT 3
- YOLO examples don't align with current code state HOT 3
- Eclipse Problem HOT 1
- Video streaming HOT 3
- Example quits on init() without warning/errors (Windows 10 + OF0.9.8) HOT 1
- GPU=1 make fails HOT 4
- can't find visual studion .props files HOT 1
- COCO dataset HOT 1
- issue with new version cuda 9.1 HOT 1
- Extract image features from darknet
- trying to run examples but they close immediately after opening HOT 1
- Windows build errors help? HOT 1
- Can't cmake Darknet HOT 1
- YOLOv3 HOT 11
- How to run live stream
- Segmentation fault (core dumped) HOT 6
- yolo 9000 for object detection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxdarknet.