Closed jedchan closed 3 weeks ago
Instructions - This was Built using CentOS 7.9 ( GCC 4.8.5 / GLIBC 2.17). Build is forward compatible with EL8 and EL9. Make sure to install the minimum required packages to build SIVIC described in this Dockerfile: https://github.com/SIVICLab/sivic/blob/master/docker/centos7/Dockerfile
NOTE - These packages maybe required as well in addition to the ones mentioned in the docker file: mesa* libXmu libXmu-devel libXres-devel libXres libXdmcp libXdmcp-devel lapack-static lapack-devel
Download the following packages
Build and install TCL and TK packages (version 8.5.19)
Build and install DCMTK 3.6.7 (cmake)
Build and install ITK 4.4.1 (cmake)
Build and install clapack 3.2.1 (cmake)
Once clapack is built and installed, create softlinks for clapack. This is a workaround for the SIVIC cmake files
bash-4.2$ cd /usr/local/sivic/build/deps/clapack-3.2.1/lib bash-4.2$ ln -s liblapack.a libclapack.a bash-4.2$ ln -s libblas.a libcblas.a
Build and install VTK 6.3.0 (cmake)
set environment variables for DCMTK_DIR and VTK_DIR
Build and install KWWidgets (cmake) - make sure to perform step 7 first before running cmake
Build and Install openssl
Build and Install SIVIC (cmake) - make sure to perform step 7 first before running cmake
(note) - UCSF_INTERNAL and BUILD_APPS need to be enabled to build UCSF Radiology command line tools in addition to the SIVIC GUI
Before building SIVIC, make sure to edit svkHSVD.h and change the #include "f2c.h" line and have it point to "/usr/local/sivic/build/deps/clapack-3.2.1/include/f2c.h"
I will need to create PRs for the following items. Pending approval from mgmt:
https://github.com/SIVICLab/sivic/commit/16c667454c5ebbf2fa417988e0f3af5e30ea791c#commitcomment-140393442 https://github.com/SIVICLab/sivic/commit/d2ef70f64857d9633beaeedf02424f88203c6bcc#commitcomment-140393463
32bit support has been removed since OSX Mojave so building dependencies using 32bit compatibility flags will fail.
BUILD_APPS needs to be enabled in order to build command line tools. OPENSSL is needed as well.
Now added to README
Hi SIVIC devs. @agentmess. @jccrane and @beckolson
I couldn't find official build instructions and thought I would give it try and build it myself outside the confines of UCSF. This took several days, but I managed to build sivic from the older build page instructions on Sourceforge here:
https://sourceforge.net/p/sivic/sivicwiki/svk_installation/
The information here needs updating, but luckily I was able to figure out how to build SIVIC based on the information in the cmake files. I'll post updated build instructions in this issue. If possible, this should be added to the wiki or README.md. I can do a PR if this is preferred.