SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] cmake issues with scirun


Chronological Thread 
  • From: "Daniel White" <dwhite@sci.utah.edu>
  • To: <scirun-users@sci.utah.edu>
  • Subject: Re: [SCIRUN-USERS] cmake issues with scirun
  • Date: Fri, 30 Oct 2015 21:51:22 -0600

Ah, you found another known build quirk: you need to use an older version of cmake. We've been using 2.8.11 successfully. Hopefully we can get that fixed too.

On Fri, 30 Oct 2015 16:06:37 -0600
"Brad Hollister" <behollis@sci.utah.edu> wrote:
Hm. Okay, the first invocation of make fails. Here is the tail of the output:

Generating grammar tables from /home/behollis/SCII/scirun5/SCIRun/bin/Externals/Install/Python_external/lib/python3.4/lib2to3/PatternGrammar.txt
Writing grammar tables to /home/behollis/SCII/scirun5/SCIRun/bin/Externals/Install/Python_external/lib/python3.4/lib2to3/PatternGrammar3.4.3.final.0.pickle
[ 76%] Completed 'Python_external'
[ 76%] Built target Python_external
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

I've installed both the packages: 'qt4-dev-tools qt4-qmake' and the packages: 'qt5-dev-tools qt5-qmake', before going thru the procedure provided. Btw, this is all being done on Ubuntu 15.04.

When running ./build.sh, the build apparently fails as well.

CMake Warning (dev) at CMakeLists.txt:472 (EXPORT_LIBRARY_DEPENDENCIES):
Policy CMP0033 is not set: The export_library_dependencies command should
not be called. Run "cmake --help-policy CMP0033" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/behollis/SCII/SCIRun/bin/Externals/Build/Teem_external/CMakeFiles/CMakeOutput.log".
See also "/home/behollis/SCII/SCIRun/bin/Externals/Build/Teem_external/CMakeFiles/CMakeError.log".
CMakeFiles/Teem_external.dir/build.make:103: recipe for target 'Externals/Stamp/Teem_external/Teem_external-configure' failed
make[2]: *** [Externals/Stamp/Teem_external/Teem_external-configure] Error 1
CMakeFiles/Makefile2:347: recipe for target 'CMakeFiles/Teem_external.dir/all' failed
make[1]: *** [CMakeFiles/Teem_external.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
Building SCIRun returned an error

Either the code failed to build properly or

the testing programs failed to complete without

every single test program passing the test.


On Fri, 30 Oct 2015 15:04:27 -0600
Dan White <dwhite@sci.utah.edu> wrote:
Hi,
We've recently overhauled the build structure so our documentation is out of date. Other than Qt 4.8, SCIRun includes all external dependencies either as part of the source or as a git external project that gets downloaded as part of the build. Qt is the only dependency that needs to be separately built. No apt-getting or prefix_path setting should be required. The steps on a *nix system are as follows:

mkdir scirun5; cd scirun5

git clone https://github.com/SCIInstitute/SCIRun.git

cd SCIRun/bin

cmake ../Superbuild

# above line might be required TWICE

make -j4

# after success, you can cd SCIRun (that's right, SCIRun/bin/SCIRun), and just

make -j8


Or you could try the new build script, located under in the root called build.sh. Let us know if you run into difficulties. We'll update the build instructions soon.
Thanks,
Dan

On 10/30/2015 2:27 PM, Brad Hollister wrote:
To Whom It May Concern,

When running CMake for a SCIRun build, I am having the following issues...

I am able to set CMAKE_PREFIX_PATH to the Externals/ directory which prevents issues up until SQLite_external. When I install sqlite-dev via apt-get, and set SQLite_DIR accordingly, CMake still fails with the same repeated warning.

I've noticed a SCIRun/Superbuild directory that contains the external library *.cmake files. But, when pointing CMAKE_PREFIX_PATH to Superbuild/, CMake still fails to work.

Any suggestions?

CMake produces the initial following warnings before setting any of its variables:

CMake Warning at CMakeLists.txt:193 (MESSAGE):
Test resource path does not exist. Please set it correctly to run all the
unit and regression tests. Clone this github repo to get all the files:
https://github.com/CIBC-Internal/SCIRunTestData


CMake Warning at CMakeLists.txt:217 (FIND_PACKAGE):
Could not find a package configuration file named "ZlibConfig.cmake"
provided by package "Zlib".

Add the installation prefix of "Zlib" to CMAKE_PREFIX_PATH or set
"Zlib_DIR" to a directory containing one of the above files. If "Zlib"
provides a separate development package or SDK, be sure it has been
installed.

CMake Error at CMakeLists.txt:219 (MESSAGE):
Zlib library not found in Zlib_DIR-NOTFOUND

Additionally, I do have Zlib in my PATH var.






Archive powered by MHonArc 2.6.18.

Top of page