Skip to content

Commit 4f0d3c0

Browse files
committed
merging with master
2 parents 8cdf12c + 042d623 commit 4f0d3c0

File tree

1,094 files changed

+88309
-18645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,094 files changed

+88309
-18645
lines changed

.github/CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
TODO: Contribution guide. Follow this example:
2+
3+
https://github.com/atom/atom/blob/master/CONTRIBUTING.md
4+
5+
TODO add contribution guidelines. These could include:
6+
7+
Steps for creating good issues or pull requests.
8+
Links to external documentation, mailing lists, or a code of conduct.
9+
Community and behavioral expectations.

.github/ISSUE_TEMPLATE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
### Prerequisites
2+
3+
* [ ] Are you running the [latest version of SCIRun](https://github.com/SCIInstitute/SCIRun/releases)?
4+
[//]: # (* [ ] TODO: Did you check the [debugging guide](http://flight-manual.atom.io/hacking-atom/sections/debugging/)?)
5+
[//]: # (* [ ] TODO: Did you check the [FAQs on Discuss](https://discuss.atom.io/c/faq)?)
6+
* [ ] Are you reporting to the [correct repository](https://github.com/SCIInstitute/SCIRun)?
7+
* [ ] Did you [perform a cursory search](https://github.com/SCIInstitute/SCIRun/issues) to see if your bug or enhancement is already reported?
8+
9+
For more information on how to write a good [bug report](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-bug-report) or [enhancement request](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-enhancement-suggestion), see the `CONTRIBUTING` guide. These links point to another project, but most of the advice holds in general.
10+
11+
### Description
12+
13+
[Description of the bug or feature]
14+
15+
For Mac crash bugs, please *DO NOT* paste an entire MacOS crash report here. Edit it down to just the stack trace of the thread that crashed, along with the general system info on the top.
16+
17+
**In all bug cases, some combination of screenshots, sample network(s), and input data should be attached. You can use any cloud storage links you want for networks and data.**
18+
19+
### Steps to Reproduce
20+
21+
1. [First Step]
22+
2. [Second Step]
23+
3. [and so on...]
24+
25+
**Expected behavior:** [What you expected to happen]
26+
27+
**Actual behavior:** [What actually happened]
28+
29+
### Versions
30+
31+
You can get this information from executing `SCIRun --version` at the command line, or clicking on the version button in the bottom right corner of the GUI (which copies the version to the clipboard). Also, please include the OS and what version of the OS you're running.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
TODO
2+
3+
In the new file, add your pull request template. This could include:
4+
5+
A reference to a related issue in your repository.
6+
A description of the changes proposed in the pull request.
7+
@mentions of the person or team responsible for reviewing proposed changes.
8+

.travis.yml

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,31 @@
1-
language:
2-
- cpp
1+
language: c++
32

4-
os:
5-
#Too many slow builds on Travis OSX images causing build errors. Turning off to speed up turn around. We can investigate later. For now, main developers should build on Mac before merging.
6-
#- osx
7-
- linux
8-
9-
compiler:
10-
- clang
11-
# TODO: gcc chokes on a boost pthread usage, disabling for now.
12-
#- gcc
13-
14-
#matrix:
15-
# exclude:
16-
# - os: osx
17-
# compiler: g++
3+
matrix:
4+
include:
5+
- os: linux
6+
dist: trusty
7+
sudo: required
8+
compiler: gcc
9+
- os: linux
10+
dist: trusty
11+
sudo: required
12+
compiler: clang
13+
# - os: osx
14+
# osx_image: xcode7.2
1815

1916
# check environment (copied from libgit2sharp)
2017
before_install:
2118
- date -u
2219
- uname -a
23-
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./ci/linux_before_install.sh; fi
24-
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./ci/osx_before_install.sh; fi
25-
26-
# make sure cmake is installed, set up latest GCC C++ compiler if necessary
27-
install:
28-
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./ci/linux_install.sh; fi
29-
# - if [ "${TRAVIS_OS_NAME}" = "linux" -a "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
30-
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./ci/osx_install.sh; fi
20+
#- sudo apt-get update -qq
3121

3222
# TODO: could move script to separate file
3323
# Not running unit tests at the moment, so turn off testing, which will
3424
# hopefully make OS X builds a bit faster
3525
script:
3626
- cd bin
37-
- cmake -DDOWNLOAD_TOOLKITS:BOOL=OFF -DRUN_BASIC_REGRESSION_TESTS:BOOL=OFF ../Superbuild
38-
- make -j4
39-
- cmake -DDOWNLOAD_TOOLKITS:BOOL=OFF -DRUN_BASIC_REGRESSION_TESTS:BOOL=OFF ../Superbuild # factory config needs 2 cmakes ?!?
40-
- make -j4
27+
- cmake -DDOWNLOAD_TOOLKITS:BOOL=OFF -DBUILD_TESTING:BOOL=OFF ../Superbuild
28+
- make -j4 1> /dev/null
4129
# make SCIRunTestData_external
4230
# && make test
4331

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,24 @@ For documentation, please see: http://sciinstitute.github.io/SCIRun/
3333

3434
### Platform Notes
3535
#### Build requirements
36-
* OS X (tested on 10.7 and 10.8)
36+
* OS X (tested on 10.7-10.11)
3737
- Apple clang 5.1
3838
- Qt 4.8
3939
+ Download from http://releases.qt-project.org/qt4/source/qt-mac-opensource-4.8.4.dmg.
40-
* Windows (tested on Windows 7, 8)
41-
- Visual Studio 2013
40+
+ The above dmg will not work if using OS X 10.11. In this case Qt 4.8 can be acquired through macports using the command 'sudo port install qt4-mac' - more on macports here: https://www.macports.org/install.php
41+
* Windows (tested on Windows 7, 8, 10)
42+
- Visual Studio 2013, 2015
4243
- Qt 4.8
4344
+ Build from source (see http://scirundocwiki.sci.utah.edu/SCIRunDocs/index.php/CIBC:Seg3D2:Building_Releases#Installing_Qt_on_your_system_and_building_from_scratch for instructions), but be sure to download http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.4.tar.gz.
44-
* Linux (tested on Ubuntu 12.10)
45-
- gcc 4.6, 4.7
45+
* Linux (tested on Ubuntu 12.10, OpenSUSE Leap)
46+
- gcc 4.6, 4.7, 4.8
4647
- Qt 4.8
4748
+ Build from source (http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.4.tar.gz), or use system libraries if available.
4849
* All platforms
4950
- CMake 2.8
50-
+ Root cmake file is SCIRun/src/CMakeLists.txt.
51+
+ Root cmake file is SCIRun/Superbuild/CMakeLists.txt.
5152
+ Building in the source directory is not permitted.
5253
+ Make sure BUILD_SHARED_LIBS is on (default setting).
53-
+ BUILD_WITH_PYTHON works on Windows, not yet (easily) on MacOS.
5454

5555
#### CMake Build Generators
5656
* Windows
@@ -62,9 +62,11 @@ For documentation, please see: http://sciinstitute.github.io/SCIRun/
6262
- Unix Makefiles
6363

6464
#### Unix Makefiles notes
65-
* Boost must be built before the SCIRun libraries.
66-
* Parallel make builds can be used as long the Boost target is built first, for example:
67-
- make -j4 Boost_external && make -j4
65+
* Build Superbuild first (src/Superbuild), then subsequently, SCIRun can be built by itself (src/).
66+
* Included `build.sh` takes care of all this for you.
67+
68+
### Tagging releases
69+
On an OSX system, run script `release.sh` in the `src` directory with the release name in format `alpha.XX` as a parameter.
6870

6971
### Questions and Answers
7072
For help, email the testing mailing list at [email protected].
@@ -74,7 +76,7 @@ For help, email the testing mailing list at [email protected].
7476

7577
The MIT License
7678

77-
Copyright (c) 2015 Scientific Computing and Imaging Institute,
79+
Copyright (c) 2016 Scientific Computing and Imaging Institute,
7880
University of Utah.
7981

8082

Superbuild/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7 FATAL_ERROR)
2828
#CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR)
2929

30-
IF(CMAKE_VERSION VERSION_EQUAL 3.1 OR CMAKE_VERSION VERSION_GREATER 3.1)
30+
IF(POLICY CMP0043)
31+
CMAKE_POLICY(SET CMP0043 OLD)
32+
ENDIF()
33+
IF(POLICY CMP0054)
3134
CMAKE_POLICY(SET CMP0054 NEW)
3235
ENDIF()
3336

Superbuild/FreetypeExternal.cmake

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# For more information, please see: http://software.sci.utah.edu
2+
#
3+
# The MIT License
4+
#
5+
# Copyright (c) 2015 Scientific Computing and Imaging Institute,
6+
# University of Utah.
7+
#
8+
#
9+
# Permission is hereby granted, free of charge, to any person obtaining a
10+
# copy of this software and associated documentation files (the "Software"),
11+
# to deal in the Software without restriction, including without limitation
12+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
13+
# and/or sell copies of the Software, and to permit persons to whom the
14+
# Software is furnished to do so, subject to the following conditions:
15+
#
16+
# The above copyright notice and this permission notice shall be included
17+
# in all copies or substantial portions of the Software.
18+
#
19+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25+
# DEALINGS IN THE SOFTWARE.
26+
27+
SET_PROPERTY(DIRECTORY PROPERTY "EP_BASE" ${ep_base})
28+
SET(freetype_GIT_TAG "origin/seg3d_external_test")
29+
30+
# If CMake ever allows overriding the checkout command or adding flags,
31+
# git checkout -q will silence message about detached head (harmless).
32+
ExternalProject_Add(Freetype_external
33+
GIT_REPOSITORY "https://github.com/CIBC-Internal/freetype.git"
34+
GIT_TAG ${freetype_GIT_TAG}
35+
PATCH_COMMAND ""
36+
INSTALL_DIR ""
37+
INSTALL_COMMAND ""
38+
CMAKE_CACHE_ARGS
39+
-DCMAKE_VERBOSE_MAKEFILE:BOOL=${CMAKE_VERBOSE_MAKEFILE}
40+
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
41+
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
42+
)
43+
44+
ExternalProject_Get_Property(Freetype_external BINARY_DIR)
45+
SET(Freetype_DIR ${BINARY_DIR} CACHE PATH "")
46+
47+
MESSAGE(STATUS "Freetype_DIR: ${Freetype_DIR}")

Superbuild/PythonExternal.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ IF(UNIX)
137137
IF(BUILD_HEADLESS)
138138
SET(PYTHON_MODULE_SEARCH_PATH Python.framework/Versions/${SCI_PYTHON_VERSION_SHORT}/${SCI_PYTHON_MODULE_PARENT_PATH}/${SCI_PYTHON_NAME} CACHE INTERNAL "Python modules." FORCE)
139139
ELSE()
140-
SET(PYTHON_MODULE_SEARCH_PATH ../Frameworks/Python.framework/Versions/${SCI_PYTHON_VERSION_SHORT}/${SCI_PYTHON_MODULE_PARENT_PATH}/${SCI_PYTHON_NAME} CACHE INTERNAL "Python modules." FORCE)
140+
SET(PYTHON_MODULE_SEARCH_PATH Frameworks/Python.framework/Versions/${SCI_PYTHON_VERSION_SHORT}/${SCI_PYTHON_MODULE_PARENT_PATH}/${SCI_PYTHON_NAME} CACHE INTERNAL "Python modules." FORCE)
141141
ENDIF()
142142
SET(SCI_PYTHON_FRAMEWORK_ARCHIVE ${INSTALL_DIR}/${python_FRAMEWORK_ARCHIVE})
143143
ELSE()

Superbuild/Superbuild.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ OPTION(BUILD_TESTING "Build with tests." ON)
7171
OPTION(BUILD_WITH_PYTHON "Build with python support." ON)
7272

7373
###########################################
74-
# Configure python
75-
OPTION(WITH_TETGEN "Build Tetgen." ON)
76-
MARK_AS_ADVANCED(WITH_TETGEN)
74+
# Configure tetgen
75+
OPTION(WITH_TETGEN "Build Tetgen." OFF)
7776

7877
###########################################
7978
# Configure Windows executable to run with
@@ -144,6 +143,7 @@ ADD_EXTERNAL( ${SUPERBUILD_DIR}/ZlibExternal.cmake Zlib_external )
144143
ADD_EXTERNAL( ${SUPERBUILD_DIR}/SQLiteExternal.cmake SQLite_external )
145144
ADD_EXTERNAL( ${SUPERBUILD_DIR}/LibPNGExternal.cmake LibPNG_external )
146145
ADD_EXTERNAL( ${SUPERBUILD_DIR}/TeemExternal.cmake Teem_external )
146+
ADD_EXTERNAL( ${SUPERBUILD_DIR}/FreetypeExternal.cmake Freetype_external )
147147

148148
IF(BUILD_WITH_PYTHON)
149149
ADD_EXTERNAL( ${SUPERBUILD_DIR}/PythonExternal.cmake Python_external )
@@ -185,6 +185,7 @@ SET(SCIRUN_CACHE_ARGS
185185
"-DBoost_DIR:PATH=${Boost_DIR}"
186186
"-DTeem_DIR:PATH=${Teem_DIR}"
187187
"-DTetgen_DIR:PATH=${Tetgen_DIR}"
188+
"-DFreetype_DIR:PATH=${Freetype_DIR}"
188189
)
189190

190191
IF(BUILD_WITH_PYTHON)

Superbuild/TetgenExternal.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
SET_PROPERTY(DIRECTORY PROPERTY "EP_BASE" ${ep_base})
2828
ExternalProject_Add(Tetgen_external
29-
URL "http://www.tetgen.org/1.5/src/tetgen1.5.0.tar.gz"
29+
URL "http://www.tetgen.org/1.5/src/tetgen1.5.1-beta1.tar.gz"
3030
PATCH_COMMAND ""
3131
INSTALL_COMMAND ""
3232
CMAKE_CACHE_ARGS

0 commit comments

Comments
 (0)