Skip to content

Instantly share code, notes, and snippets.

@fbudin69500
Last active January 8, 2016 20:07
Show Gist options
  • Save fbudin69500/81cbed99b05de7c33432 to your computer and use it in GitHub Desktop.
Save fbudin69500/81cbed99b05de7c33432 to your computer and use it in GitHub Desktop.
Slicer Installtion steps
From http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Build_Instructions#Ubuntu
sudo apt-get install subversion git-core git-svn
sudo apt-get install make gcc g++ libX11-dev libXt-dev libgl1-mesa-dev libglu1-mesa-dev libfontconfig-dev libxrender-dev libncurses5-dev
sudo apt-get install qt4-qmake
sudo apt-get install libqt4-dev libqt4-dev-bin libqt4-opengl-dev libqt4-qt3support libqt4-webkit-dev qt4-linguist-tools qt4-designer qtcreator
sudo apt-get install libssl-dev
mkdir ~/Support && cd Support
wget http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz
tar xzvf cmake-3.4.1.tar.gz
cd cmake-3.4.1
./configure
make -j4
cd ~/Support
mv cmake-3.4.1 cmake-3.4.1-nossl
tar -xvzf cmake-3.4.1.tar.gz
mkdir cmake-3.4.1-build
cd cmake-3.4.1-build/
../cmake-3.4.1-nossl/bin/cmake -DCMAKE_USE_OPENSSL:BOOL=ON -DCMAKE_USE_OPENSSL:BOOL=ON -DBUILD_QtDialog:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release ../cmake-3.4.1
make -j4
sudo make install
cd ~/
git clone https://github.com/Slicer/Slicer.git
mkdir Slicer-SuperBuild-Debug
cd Slicer-SuperBuild-Debug/
cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DQT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin/qmake-qt4 ../Slicer
make -j4
Follow the steps here:
http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Build_Instructions#Windows
Install strawberry perl:
http://strawberryperl.com/
Download and compile Qt
Download qt 4.8.7
https://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.zip
Open VS Community 2013
Open Command Prompt (TOOLS->Visual Studio Command Prompt)
cd amd64
vcvars64.bat
cd c:\d\qt-everywhere-opensource-src-4.8.7
configure -mp -opensource -nomake demos -nomake examples -platform win32-msvc2010 -release
(see http://stackoverflow.com/questions/12113400/compiling-qt-4-8-x-for-visual-studio-2012)
Configure Slicer with "Slicerr_USE_PYTHONQT_WITH_OPENSSL" set to OFF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment