CIBC:Seg3D2:Linux Builds
Deprecated: applies to Seg3D 2.1.5 and earlier.
Contents
Building Seg3D2 on Linux platforms
- Qt 4.6 or better (Qt 4.7.x is recommended) is required to build Seg3D2.
- g++ <4.7 is required, as g++ 4.7 disables boost threads, thus causing compilation errors
If you are using the SDK rather than vendor packages, set QT_DIR to <qtsdk directory>/qt. You may also have to delete Qt configure variables (such as QT_BINARY_DIR, QT_HEADERS_DIR, QT_MKSPECS_DIR etc.) that were set during the first configure step when using ccmake because CMake will find Qt settings in system directories by default. Once QT_DIR is set and incorrect configure variables are deleted, configure again and verify that Qt configure variables are referencing the location where the SDK is installed.
We also strongly recommend making sure that graphics drivers are up-to-date.
Possible Qt issues on Ubuntu
Some users have had problems with the file and directory browser crashing on Ubuntu 11.x due to bugs in the Qt system libraries We will attempt to fix these problems in an upcoming release, but in the meanwhile, linking against a local static Qt build appears to work:
- Download Qt 4.7.4 from http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz.
- Configure with the '-static' flag.
- Configure the build for the open source version.
- After building and installing, add the install path bin directory the PATH environment variable.
- Build Seg3D from scratch.
Ubuntu 12.x build
Install the qt4-dev-tools and libpng dev packages.
Ubuntu 11.x build
Install the libqt4-dev and libpng dev packages.
Ubuntu 10.04 build
The Ubuntu 10.04 test platform has the configuration specified for the SCIRun build.
Additional packages:
- libqt4-dev
- libpng12-dev
Ubuntu 9.10 build
The Ubuntu 9.10 test platform has the configuration specified for the SCIRun build.
Test installation notes
- default CMake version: 2.6.4
- GCC version: 4.4.1
- also testing with local installation of CMake 2.8.0
- install Qt 4.6 SDK
- install UUID library? (ITK build defaults to built-in with warning message)
Build status
- Builds and runs on regression machine CIBC-RD6
- Builds and runs on VirtualBox installation
OpenSuSE 11.x build
Install the development Qt4 libraries and dependencies, and the libpng libraries and dependencies.
OpenSuSE 11.2 build
The OpenSuSE 11.2 test platform has the configuration specified for the SCIRun build.
Test installation notes
- default CMake version: 2.6.4
- GCC version: 4.4.1
- install Qt 4.6 SDK
- also testing with local installation of CMake 2.8.0
Build status
- Runs on regression machine CIBC-RD5
- Does not run (segfaults) on 64bit VirtualBox installation
64-bit OpenSuSE 11.1 build
The build was also tested on OpenSuSE 11.1 (host is cibc3).
Test installation notes
- default CMake version: 2.6.2
- Qt SDK (installed in /opt/qtsdk-2010.01) version: 4.6.1
- GCC version: 4.2.1
Build status
- Build status pending graphics driver updates.
Deployment using CPack
Source Archive
By default, CPack creates a target for generating a source archive:
make package_source
This creates compressed archives with the naming scheme <project name>-Source.tar.<archive ext> containing all the directories and files under CMAKE_SOURCE_DIR.
Archive creation can be controlled using the following CPack options in CMake:
- CPACK_SOURCE_TBZ2
- CPACK_SOURCE_TGZ
- CPACK_SOURCE_TZ
- CPACK_SOURCE_ZIP
RPM
Turn on building RPM using CPACK_BINARY_RPM. CPack creates a target for creating a binary package:
make package
Debian Package
Turn on building Debian package using CPACK_BINARY_DEB. CPack creates a target for creating a binary package:
make package