pfr / VideoSpeedTracker

Track vehicles on one lane one way, or two lane bidirectional streets; record direction, compute speed and size
64 stars 9 forks source link

Make it build on Mac and Linux (third attempt) #12

Closed piki closed 7 years ago

piki commented 8 years ago

This is basically just #8 and #10 again.

DO NOT MERGE THIS PR. Seriously, it almost certainly doesn't work on Windows. We'll need to go back and forth, either in comments or in commits, before this PR is ready to merge.

See #8 for a discussion of what changes were necessary to get things working, as well as what's probably broken on Windows.

akgerber commented 8 years ago

Hi— I am following this project and attempting to get it to build on OSX as well.

Just to document the steps: -check out the project -brew update; brew install opencv3 (then I needed to brew update; brew upgrade libpng but I suspect running brew update first would avoid that beforehand) -run make in VideoSpeedTracker/src/Wintel64

akgerber commented 8 years ago

I had made an attempt to do the same thing using CMake, which appears to be more common for OpenCV projects, but without success.

piki commented 8 years ago

@akgerber Thanks. I've copied your comment into docs/build-for-osx.md and created an equivalent for Linux.

If you want to pursue CMake support, I'd be happy to merge it into this branch. I don't have any experience with it, though, so I'm sticking with Makefiles unless someone sends me a diff.