Open AriemX opened 2 years ago
Well,
Here is the culprit for anyone having this issue :
add-apt-repository ppa:ubuntugis/ubuntugis-unstable
I just had to remove it...
Oh, yeah, too new SW.
Hi @AriemX , can you help share dockerfile for building? I'm also meet some build issues. Thanks very much
Here is the vts related part of my own docker image. I don't share the whole image here as the rest is specific to my use case and will not be usefull to anyone.
`FROM ubuntu:focal
EXPOSE 3060 EXPOSE 3070 EXPOSE 8100
RUN apt update &&\ DEBIAN_FRONTEND=noninteractive apt-get -yq install g++ git curl cmake software-properties-common &&\ apt upgrade -yq &&\ curl -sL https://deb.nodesource.com/setup_15.x -o nodesource_setup.sh &&\ apt update && \ apt install \ libboost-dev \ libboost-thread-dev \ libboost-program-options-dev \ libboost-filesystem-dev \ libboost-regex-dev \ libboost-iostreams-dev\ libboost-python-dev \ libopencv-dev libopencv-core-dev libopencv-highgui-dev \ libopencv-photo-dev libopencv-imgproc-dev libeigen3-dev libgdal-dev \ libproj-dev proj-bin libgeographic-dev libjsoncpp-dev \ libprotobuf-dev protobuf-compiler libprocps-dev libmagic-dev gawk sqlite3 gdal-bin unzip libmarkdown2-dev libassimp-dev libtinyxml2-dev libfftw3-dev nodejs npm jq -y &&\ apt-get clean -y
RUN npm install -g pm2 &&\ npm install togs
RUN git clone --recursive https://www.graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh.git &&\ git clone --recursive --depth 1 --branch debian/1.99 https://github.com/Melown/vts-tools.git &&\ git clone --recursive --depth 1 --branch debian/1.36 https://github.com/Melown/vts-vtsd.git &&\ git clone --recursive --depth 1 --branch debian/1.76 https://github.com/melowntech/vts-mapproxy.git &&\ git clone --recursive --depth 1 --branch debian/1.26 https://github.com/Melown/vts-registry.git
RUN cd OpenMesh \ && mkdir build \ && cd build \ && cmake .. \ && make -j4 \ && make install
RUN cd vts-tools/tools \ && make -j4 \ && make install
RUN cd vts-vtsd/vtsd \ && make -j4 \ && make install
RUN cd vts-mapproxy/mapproxy \ && make -j4 \ && make install
RUN cd vts-registry/registry \ && make -j4 \ && make install`
I know it's not fully optimized. It may be relevent to move all the git cloning part outside of the image depending on your CI/CD pipeline. I just don't had the time to do yet.
Hope it works for you !
Hi @AriemX, it's very useful. And thank you again.
Hi,
Recently, I have troubles building an in house docker image (based on ubuntu focal). Any vts related sources I try to build is failing with a similar error :
`
`
proj is installed using the package manager. Until now, everything was fine.
Any Idea on how to fix this ?