Analysis Situs compilation on Linux: https://docs.google.com/document/d/1JWb5CUge6CvHpTj9gPKz2zUO1B8BjsCSnBLxUpbzZJM/edit
I read your initial comment and felt the urge to answer but it was a weekend full of distractionsHello! After some attempts, I have got AS to compile and install without errors (had to check out Eigen 3.4.0 and add -lstdc++ to the link.txt for asiExe.dir). However, after installing, no asiExe binary is found in the install directory. Is there some install configuration I need to use to ensure the executable is installed correctly? Thank you for your time!
Thanks for this- I was not able to get AS to compile with OpenCascade master, I used 7.4. Oddly, compiling 7.4.0 gave some linker issue that was not present on master, but I was able to point ld to the correct libraries with symlinks. The integration of Active Data makes sense, I wasn't sure why this parameter was not required for AS anymoreI read your initial comment and felt the urge to answer but it was a weekend full of distractionsFew point to underline here:
- I think right now you'd better compile against OpenCascade 7.4 as the newer versions are quite incompatible. Have you managed to compile against master (7.6.0)?
- Active Data is now a part of Analysis Situs, so there's no need to plug it in if you're trying to compile AS's master.
- I use to compile AS on Ubuntu and actually asiExe should be installed together with a bash script (asiExe.sh) which is supposed to launch it. It might be that I made some stupid mistake in cmake configuration with all this. I'll recheck today.
That would be awesome. Actually, I use AS daily for feature recognition in turning/milling/laser-cutting fields, so it would be interesting to exchange on this matter.... intend to use AS as a platform to implement some CAPP feature recognition algorithms, so hopefully I will have some reports of field use of AS sooner or later!
Why this link broken?Analysis Situs compilation on Linux: https://docs.google.com/document/d/1JWb5CUge6CvHpTj9gPKz2zUO1B8BjsCSnBLxUpbzZJM/edit
I want to know how to install that Mobius library, could you give me some information?No idea, honestlyIt will take quite a bit of time to recover this instruction. I don't see in in the trash folder of Google Docs.
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
# Installing inotify to listen to file changes
RUN apt-get update && apt-get -y install inotify-tools
# Build tools.
RUN apt-get -y install build-essential git cmake
# Some 3-rd parties, such as OpenGL-related things, are not necessary for
# DFM (neither building nor runtime), but without them OpenCascade is
# not going to compile. Btw, freeimage is added to enable PNG snapshots.
RUN apt-get -y install tcl tcl-dev tk tk-dev libfreeimage-dev zlib1g-dev
RUN apt-get -y install libxmu-dev libxi-dev
RUN apt-get -y install libosmesa6-dev
# Xvfb provides an X server that can run on machines with no
# display hardware and no physical input devices. It emulates a
# dumb framebuffer using virtual memory.
RUN apt-get -y install xvfb
# Extra 3-rd parties for Analysis Situs.
RUN apt-get -y install libeigen3-dev rapidjson-dev
# OpenCascade.
RUN git clone https://github.com/Open-Cascade-SAS/OCCT.git opencascade
WORKDIR /opencascade
RUN git checkout V7_4_0 -b dfm
RUN mkdir -p build
WORKDIR /opencascade/build
RUN cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_RPATH="" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_FREEIMAGE=on \
-DUSE_FFMPEG=off \
-DUSE_VTK=off \
-DUSE_TBB=off
RUN make
RUN make install
# Mobius.
WORKDIR /
RUN git clone https://gitlab.com/ssv/Mobius.git mobius
WORKDIR /mobius/
RUN mkdir -p build
WORKDIR /mobius/build
RUN git checkout dce7bdae5a25163b44539e739002807e0d7415da
RUN cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_RPATH="" \
-DINSTALL_DIR=/usr/ \
-DUSE_OPENCASCADE=on \
-DUSE_ADOLC=off \
-D3RDPARTY_DIR=/usr \
-D3RDPARTY_EIGEN_DIR=/usr/include/eigen3/ \
-D3RDPARTY_OCCT_INCLUDE_DIR=/usr/include/opencascade \
-D3RDPARTY_OCCT_LIBRARY_DIR=/usr/lib
RUN make
RUN make install