gen2brain / cam2ip

Turn any webcam into an IP camera
GNU General Public License v3.0
872 stars 90 forks source link

Raspberry Pi version 2 executable are broken #6

Closed rhoppel closed 6 years ago

rhoppel commented 6 years ago

Installed "cam2ip" on a Raspberry Pi version 2 and got the following when executing.

$ cam2ip
cam2ip: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by cam2ip)
cam2ip: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by cam2ip)

I get exactly the same messages when executing the version for Raspberry Pi v3 on the4 v2 platform

rhoppel commented 6 years ago

the version on Raspberry Pi v3 works great. Well done. System resources are very low compared to other solutions. I would like to use it on my older Raspberry Pi platforms to turn them into dedicated USB camera hosts. I am curious to see how the can be used with multiple camera.

gen2brain commented 6 years ago

Hmm, I deleted duplicate comment from github and now both are gone, I guess you received comment via email. Binaries are cross compiled on my system, I have toolchains installed with Gentoo crossdev. I probably installed that with newer gcc/glibc etc. not sure what exactly is problem.

You should be able to install go, opencv and jpegturbo on real device, and install there, for test, I will see when I find time what exactly is the problem, will have to find and install system on old RPi I have somewhere.

rhoppel commented 6 years ago

I will give that a try tomorrow. I do not really have my RaspiPi v2 setup for development so it will take some time. I am unfamilar with "go".

rhoppel commented 6 years ago

I was able to compile. Here is the tested result: cam2ip (for non-Raspberry Pi version 3) I had to install the following in order to compile:

works great! Very interesting working with "go".

gen2brain commented 6 years ago

Great! You should be able to boost performance a little with libjpegturbo-dev instead of plain libjpeg. Not sure if that is correct name of package though. Decoding performance of jpegturbo is much better, but It is also slightly faster with encoding (what cam2ip needs and use).

rhoppel commented 6 years ago

libjpegturbo-dev was not available in the default depositories. I tried to find one but I gave up. That is why I settled for libjpeg-dev. If you know of a quality source I will rebuild it.

gen2brain commented 6 years ago

It is better then to wait for binaries here, probably for new release. Also, binary you have now requires that you install OpenCV runtime libraries on some other RPi (jpeg is probably already installed). I prefer to compile binary with static OpenCV and libjpeg-turbo, so it is more portable, just one file to copy and run.