Skip to content

Instantly share code, notes, and snippets.

@kiwixiao
Last active September 2, 2022 17:21
Show Gist options
  • Save kiwixiao/f7dee7a7c33eb57990ba8dc48ba54b57 to your computer and use it in GitHub Desktop.
Save kiwixiao/f7dee7a7c33eb57990ba8dc48ba54b57 to your computer and use it in GitHub Desktop.
Building CIP from Scratch

This log simple logs some notes regarding errors encountered while building CIP from scratch.

  • ITK need to pick version-5 to avoid some error during build.

  • tensorflow DL module should be avoided to avoid python2 compatible issues. Not sure how to fix it yet.

  • Turn off git protocal, using http protocal

  • need to install gcc-8 and make it as default, new version gcc will not work.

  1. sudo apt install build-essential
  2. sudo apt install gcc-8 g++-8
  3. sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8
  4. sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8
  5. sudo update-alternatives --config gcc
  • need to config the boost library on ubuntu to make it able to build.

  • sometimes, it will stuck at: cannot install scikit-image step, when building CIPPython. One worked methoed to get around this is get into the conda binary under <Your_build_path>/CIPPython-install/bin/. Then run the conda binary under this path like this: ./conda install scikit-image. If it will go through this step, come back to the top level of build directory, try make again. This time, when it comes to the step of installing scikit-image it should say all required libraires already installed and moving to next step of build!

  • CMake Error at Rendering/OpenGL/CMakeLists.txt:304 (message): X11_Xt_LIB could not be found. Required for VTK X lib.
    Answer: just use: sudo apt-get install libxt-dev

  • Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR) Answer: sudo apt-get install libgl1-mesa-dev

  • If you get error: libjsoncpp.so.19 cannot open shared object Answer: try to downgarde jsoncpp version using: conda install jsoncpp=1.8.3

  • If error: libtbb.so.2 cannot open share object file Answer: most likely it is missing this library. so just install it: apt install libtbb2 will fix it.

@kiwixiao
Copy link
Author

kiwixiao commented Sep 2, 2022

This is just my own build experience and based on my local machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment