MaybeShewill-CV / sky-detector

Sky area detection without deep neural networks https://maybeshewill-cv.github.io/sky-detector/
145 stars 44 forks source link

No rule to make target '/usr/local/lib/libboost_filesystem.a', needed by 'detector'. Stop. #2

Closed Parker-Lyu closed 5 years ago

Parker-Lyu commented 5 years ago

when I run make, I met question like bellow:

Scanning dependencies of target detector [ 25%] Building CXX object CMakeFiles/detector.dir/main_test.cpp.o [ 50%] Building CXX object CMakeFiles/detector.dir/sky_detector/imageSkyDetector.cpp.o [ 75%] Building CXX object CMakeFiles/detector.dir/file_processor/file_system_processor.cpp.o make[2]: No rule to make target '/usr/local/lib/libboost_filesystem.a', needed by 'detector'. Stop. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/detector.dir/all' failed make[1]: [CMakeFiles/detector.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

how to deal it ? Thanks

MaybeShewill-CV commented 5 years ago

@Parker-Lyu Install boost static lib:)

Parker-Lyu commented 5 years ago

When I run "./b2 install" , do I need to use param "--prefix=/usr" to specify a install dir, just like described in https://blog.csdn.net/u011641865/article/details/73498533 Thanks

MaybeShewill-CV commented 5 years ago

@Parker-Lyu You may follow the instruction on the Boost website:)

Parker-Lyu commented 5 years ago

Thanks, that question solved. Another question now:

/usr/bin/x86_64-linux-gnu-ld: attempted static link of dynamic object `/usr/local/lib/libopencv_stitching.so.3.4.2'

Some people say it's because a param "-static", but i don't know where to change it

MaybeShewill-CV commented 5 years ago

@Parker-Lyu If you do not have the opencv static lib you may change the project to dynamically compile. You may google how the modify the CMakeList.txt file to statically compile binary file:)

Parker-Lyu commented 5 years ago

Thank you for your patience, I got everything OK. Good Luck!

MaybeShewill-CV commented 5 years ago

@Parker-Lyu Welcome:)

r-rajsingh commented 5 years ago

@Parker-Lyu /usr/bin/x86_64-linux-gnu-ld: attempted static link of dynamic object `/usr/local/lib/libopencv_stitching.so.3.4.2'

I am also facing the same issue. Can you please me out?

Parker-Lyu commented 5 years ago

My colleague help me solve that problem. Sorry for can't help you

r-rajsingh commented 5 years ago

@Parker-Lyu If least possible, please ask your colleague and help me out, because I am stuck over it for the past 3 days. I'd be very thankful to you.

Parker-Lyu commented 5 years ago

Accually, I did not use this repo to do my sky-detect work, because it's not perform very good. And it's three mouth ago's work, my clleague has forgot the detail. Sorry about that. I can give you some suggestion to do sky-detect work. You can use open source segmentation dataset to make a sky-detect dataset by keep sky pixels value 255 and others 0, such as ADE20k or some other auto drive dataset. Then you can train a segmentation net work to do your sky detect work. Sorry can't help you more and good luck