File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
88RUN apt update
99RUN apt install -y tzdata
1010
11+ RUN git clone https://github.com/Microsoft/vcpkg.git && \
12+ ./vcpkg/bootstrap-vcpkg.sh && \
13+ vcpkg integrate install && \
14+ vcpkg install protobuf[zlib] --triplet x64-linux
1115
1216RUN apt-get update && apt-get install -y --no-install-recommends \
1317 build-essential \
@@ -33,10 +37,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3337 libleveldb-dev \
3438 liblmdb-dev \
3539 libopencv-dev \
36- libprotobuf-dev \
40+ # libprotobuf-dev \
41+ # protobuf-compiler \
3742 libsnappy-dev \
38- libmatio-dev \
39- protobuf-compiler && \
43+ libmatio-dev && \
4044 rm -rf /var/lib/apt/lists/*
4145
4246ENV CAFFE_ROOT=/opt/caffe
@@ -60,7 +64,7 @@ RUN git clone https://github.com/foss-for-synopsys-dwc-arc-processors/synopsys-c
6064 pip3 install --upgrade pip && \
6165 cd python && for req in $(cat requirements.txt) pydot; do pip3 install $req; done && cd .. && \
6266 mkdir build && cd build && \
63- cmake -DCPU_ONLY=1 .. && \
67+ cmake -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake - DCPU_ONLY=1 .. && \
6468 make -j"$(nproc)" && \
6569 make runtest && \
6670 make pycaffe
You can’t perform that action at this time.
0 commit comments