I am trying to compile openalpr via a dockerfile that will solve python bindings issues but I am having trouble. I know that a dockerfile exists in dockerhub.
But I am looking to resolve python binding issues. Using the documentation on python bindings from:
So I have resolved to attempt to start by compiling a docker container based off the easy instructions as detailed. Below is my attempt:
Dockerfile
FROM ubuntu:18.04
Install prerequisites
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y
build-essential
libopencv-dev
libtesseract-dev
libleptonica-dev
liblog4cplus-dev
libcurl3-dev
beanstalkd
cmake
curl
git
libcurl3-dev
wget
RUN git clone https://github.com/openalpr/openalpr.git
Setup the build directory
RUN cd openalpr/src
RUN mkdir build
RUN cd build
setup the compile environment
RUN cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc …
compile the library
RUN make
Install the binaries/libraries to your local system (prefix is /usr)
RUN sudo make install
However I am getting the following error:
Step 7/9 : RUN cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc …
- —> Running in 9612d048942f*
CMake Error: The source directory “/” does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Any ideas how I might go about fixing this?