2017-01-14 17:17:56 -0600 | commented answer | compile static openCV library oh, I'm sorry, I see what you were saying. Yeah, added -DBUILD_PNG=ON -DWITH_PNG=ON and everything is working now. Thank you so much! |
2017-01-14 15:24:01 -0600 | received badge | ● Scholar (source) |
2017-01-14 15:22:54 -0600 | commented answer | compile static openCV library Thanks for your reply Berak. I think I see now that I need to build all the dependencies statically as well, that was probably my problem. So I will give it a shot - and if I have more questions I will let you know. Thank you! |
2017-01-14 14:29:22 -0600 | received badge | ● Editor (source) |
2017-01-13 20:27:25 -0600 | asked a question | compile static openCV library Hi, I'd like to compile my program with openCV as a static library, to create a standalone app. I've tried using the cmake flag BUILD_SHARED_LIBS=OFF, however when I try to run my app on an ubuntu machine without openCV installed, I get the following error: ./gray_static_v03.out: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory Here is a link to the dockerfile - where you can see my install commands: github.com/sknelson111/openCV/blob/master/Dockerfile and here is the command I use to compile: Any ideas what I am doing wrong? Any help would be greatly appreciated! Thank you! |