help > Building AutoSeg 2.8 fails
Showing 1-1 of 1 posts
Jun 7, 2012 12:06 PM | Antonios Thanellas
Building AutoSeg 2.8 fails
Hello,
I was trying to build the AutoSeg from the source file (svn checkout https://www.nitrc.org/svn/autoseg) using the /trunk CMake lists.
I had the following error
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~/src/autoseg/autoseg-2.8-build$ make
[ 1%] Performing forcebuild step for 'Insight'
[ 2%] Performing build step for 'Insight'
[ 1%] Built target itksys
[ 6%] Built target itkjpeg8
[ 11%] Built target itkjpeg12
[ 16%] Built target itkjpeg16
[ 17%] Built target itkzlib
[ 18%] Built target itkpng
[ 18%] Built target itkmkg3states
[ 20%] Built target itktiff
[ 21%] Built target itkopenjpeg
[ 23%] Built target ITKMetaIO
[ 26%] Built target ITKNrrdIO
[ 26%] Built target ITKEXPAT
[ 26%] Built target ITKznz
[ 26%] Built target ITKniftiio
[ 26%] Built target ITKDICOMParser
[ 27%] Built target itkvcl
[ 48%] Built target itkv3p_netlib
[ 48%] Built target itkv3p_lsqr
[ 49%] Built target itktestlib
[ 66%] Built target itkvnl
[ 71%] Built target itkvnl_algo
[ 73%] Built target itkNetlibSlatec
[ 77%] Built target itkgdcm
[ 79%] Built target itkvnl_inst
[ 86%] Built target ITKCommon
[ 88%] Built target ITKNumerics
[ 88%] Built target ITKBasicFilters
[ 88%] Built target ITKStatistics
[ 88%] Built target ITKAlgorithms
[ 89%] Built target ITKSpatialObject
[ 90%] Built target ITKTransformIOReview
[ 95%] Built target ITKIO
[ 96%] Built target ITKIOReview
[ 96%] Built target ITKQuadEdgeMesh
[ 96%] Built target itkTestDriver
[100%] Built target ITKFEM
[ 3%] No install step for 'Insight'
[ 5%] Completed 'Insight'
[ 11%] Built target Insight
[ 12%] Performing configure step for 'AutoSeg'
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Warning (dev) at CMakeLists.txt:57 (ADD_EXECUTABLE):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "AutoSeg" links to some libraries for which the linker must
search:
ITKAlgorithms, ITKStatistics, ITKFEM, itkNetlibSlatec, ITKNumerics
ITKBasicFilters, ITKIO, ITKNrrdIO, itkgdcm, itkjpeg12, itkjpeg16
itkopenjpeg, itkpng, itktiff, itkjpeg8, ITKSpatialObject, ITKMetaIO
ITKDICOMParser, ITKEXPAT, ITKniftiio, ITKznz, itkzlib
ITKTransformIOReview, ITKCommon, itkvnl_inst, itkvnl_algo, itkv3p_netlib
itkvnl, itkvcl, itkv3p_lsqr, m, itksys, -lpthread, dl, -lm
and other libraries with known full path:
/usr/local/lib/libfltk_images.a
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
BUILDNAME
BUILD_EXAMPLES
BUILD_SHARED_LIBS
BUILD_TESTING
CMAKE_BUNDLE_OUTPUT_DIRECTORY
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE
DART_TESTING_TIMEOUT
EXECUTABLE_OUTPUT_PATH
LIBRARY_OUTPUT_PATH
MAKECOMMAND
MEMORYCHECK_COMMAND
MEMORYCHECK_COMMAND_OPTIONS
SITE
-- Build files have been written to: /home/juho/src/autoseg/autoseg-2.8-build/AutoSeg-build
[ 13%] Performing forcebuild step for 'AutoSeg'
[ 15%] Performing build step for 'AutoSeg'
[ 4%] Building CXX object CMakeFiles/AutoSeg.dir/AboutGUI.o
/home/juho/src/autoseg/autoseg-2.8-build/AutoSeg-build/AboutGUI.cxx:7:1: error: expected primary-expression before ‘;’ token
make[5]: *** [CMakeFiles/AutoSeg.dir/AboutGUI.o] Error 1
make[4]: *** [CMakeFiles/AutoSeg.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [AutoSeg-prefix/src/AutoSeg-stamp/AutoSeg-build] Error 2
make[1]: *** [CMakeFiles/AutoSeg.dir/all] Error 2
make: *** [all] Error 2
--------------------------------------------------------------------------------------------------------------------------------------------------------
Do you know how I could get around this issue?
Thanks in advance
I was trying to build the AutoSeg from the source file (svn checkout https://www.nitrc.org/svn/autoseg) using the /trunk CMake lists.
I had the following error
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~/src/autoseg/autoseg-2.8-build$ make
[ 1%] Performing forcebuild step for 'Insight'
[ 2%] Performing build step for 'Insight'
[ 1%] Built target itksys
[ 6%] Built target itkjpeg8
[ 11%] Built target itkjpeg12
[ 16%] Built target itkjpeg16
[ 17%] Built target itkzlib
[ 18%] Built target itkpng
[ 18%] Built target itkmkg3states
[ 20%] Built target itktiff
[ 21%] Built target itkopenjpeg
[ 23%] Built target ITKMetaIO
[ 26%] Built target ITKNrrdIO
[ 26%] Built target ITKEXPAT
[ 26%] Built target ITKznz
[ 26%] Built target ITKniftiio
[ 26%] Built target ITKDICOMParser
[ 27%] Built target itkvcl
[ 48%] Built target itkv3p_netlib
[ 48%] Built target itkv3p_lsqr
[ 49%] Built target itktestlib
[ 66%] Built target itkvnl
[ 71%] Built target itkvnl_algo
[ 73%] Built target itkNetlibSlatec
[ 77%] Built target itkgdcm
[ 79%] Built target itkvnl_inst
[ 86%] Built target ITKCommon
[ 88%] Built target ITKNumerics
[ 88%] Built target ITKBasicFilters
[ 88%] Built target ITKStatistics
[ 88%] Built target ITKAlgorithms
[ 89%] Built target ITKSpatialObject
[ 90%] Built target ITKTransformIOReview
[ 95%] Built target ITKIO
[ 96%] Built target ITKIOReview
[ 96%] Built target ITKQuadEdgeMesh
[ 96%] Built target itkTestDriver
[100%] Built target ITKFEM
[ 3%] No install step for 'Insight'
[ 5%] Completed 'Insight'
[ 11%] Built target Insight
[ 12%] Performing configure step for 'AutoSeg'
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Warning (dev) at CMakeLists.txt:57 (ADD_EXECUTABLE):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "AutoSeg" links to some libraries for which the linker must
search:
ITKAlgorithms, ITKStatistics, ITKFEM, itkNetlibSlatec, ITKNumerics
ITKBasicFilters, ITKIO, ITKNrrdIO, itkgdcm, itkjpeg12, itkjpeg16
itkopenjpeg, itkpng, itktiff, itkjpeg8, ITKSpatialObject, ITKMetaIO
ITKDICOMParser, ITKEXPAT, ITKniftiio, ITKznz, itkzlib
ITKTransformIOReview, ITKCommon, itkvnl_inst, itkvnl_algo, itkv3p_netlib
itkvnl, itkvcl, itkv3p_lsqr, m, itksys, -lpthread, dl, -lm
and other libraries with known full path:
/usr/local/lib/libfltk_images.a
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
BUILDNAME
BUILD_EXAMPLES
BUILD_SHARED_LIBS
BUILD_TESTING
CMAKE_BUNDLE_OUTPUT_DIRECTORY
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE
DART_TESTING_TIMEOUT
EXECUTABLE_OUTPUT_PATH
LIBRARY_OUTPUT_PATH
MAKECOMMAND
MEMORYCHECK_COMMAND
MEMORYCHECK_COMMAND_OPTIONS
SITE
-- Build files have been written to: /home/juho/src/autoseg/autoseg-2.8-build/AutoSeg-build
[ 13%] Performing forcebuild step for 'AutoSeg'
[ 15%] Performing build step for 'AutoSeg'
[ 4%] Building CXX object CMakeFiles/AutoSeg.dir/AboutGUI.o
/home/juho/src/autoseg/autoseg-2.8-build/AutoSeg-build/AboutGUI.cxx:7:1: error: expected primary-expression before ‘;’ token
make[5]: *** [CMakeFiles/AutoSeg.dir/AboutGUI.o] Error 1
make[4]: *** [CMakeFiles/AutoSeg.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [AutoSeg-prefix/src/AutoSeg-stamp/AutoSeg-build] Error 2
make[1]: *** [CMakeFiles/AutoSeg.dir/all] Error 2
make: *** [all] Error 2
--------------------------------------------------------------------------------------------------------------------------------------------------------
Do you know how I could get around this issue?
Thanks in advance