Closed widdakay closed 8 years ago
Could you please confirm the swig version and did you install it from the hlprasu/swig-trusty-backports PPA as mentioned in the wiki?
It was a swig version problem. I had only seen the Installation on Linux page and not noticed the other installation page. When I combined them, I was able to get the install working. I ended up with this Dockerfile:
FROM ubuntu:14.04
# Install PCL and other dependencies
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:hlprasu/swig-trusty-backports
RUN add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
RUN apt-get update && apt-get install -y build-essential git wget tar doxygen graphviz dpkg-dev libusb-1.0-0-dev libudev-dev linux-libc-dev swig3.0* python-dev libpcl-all
RUN ln -s /usr/bin/swig{3.0,}
# Install updated cmake
RUN wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
RUN tar xf cmake-3.5.2.tar.gz
RUN cd cmake-3.5.2 && ./configure && make -j8 && make install
# Install VoxelSDK
RUN git clone https://github.com/3dtof/voxelsdk.git
RUN cd voxelsdk && ./build-all-deb.sh 0.6.3
I have been getting error
/voxelsdk/Voxel/SWIG/../Device.h:63: Error: Syntax error in input(3).
when compiling under Ubuntu. This is in a Docker container to make sure that I have all dependencies listed and it is reproduceable. Here is the Dockerfile:I get the error
I am not sure if this is due to compiler versions. Here is the gcc version (should be latest in apt repos):
Line 63 in Device.h doesn't look too fancy or seem to have any syntax errors: