Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error : get_property could not find TARGET zlib. Perhaps it has not yet been created. #98

Closed
AleksDark opened this issue Jun 17, 2014 · 5 comments
Assignees

Comments

@AleksDark
Copy link

Suggestions?
Debian system, first time to build complete version of BRAINSTools.
Error message:

-- SuperBuild - BRAINSTools => Requires DCMTK, ITKv4, SlicerExecutionModel, teem, Boost, ReferenceAtlas, VTK, OpenCV, ANTs, PCRE, Swig, SimpleITK, NIPYPE,
-- SuperBuild - First pass
-- SuperBuild - First pass - done
CMake Error at /usr/share/cmake-2.8/Modules/ExternalProject.cmake:642 (get_property):
get_property could not find TARGET zlib. Perhaps it has not yet been
created.
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:856 (ExternalProject_Get_Property)
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:1331 (_ep_get_step_stampfile)
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:1545 (_ep_add_configure_command)
/media/Software/Slicer/Slicer/CMake/ExternalProjectDependency.cmake:668 (ExternalProject_Add)
/media/Software/Slicer/Slicer/SuperBuild/External_DCMTK.cmake:68 (ExternalProject_Add_Empty)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/CMake/SlicerMacroCheckExternalProjectDependency.cmake:69 (include)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/SuperBuild.cmake:246 (SlicerMacroCheckExternalProjectDependency)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/CMakeLists.txt:30 (include)

CMake Error at /usr/share/cmake-2.8/Modules/ExternalProject.cmake:644 (message):
External project "zlib" has no stamp_dir
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:856 (ExternalProject_Get_Property)
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:1331 (_ep_get_step_stampfile)
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:1545 (_ep_add_configure_command)
/media/Software/Slicer/Slicer/CMake/ExternalProjectDependency.cmake:668 (ExternalProject_Add)
/media/Software/Slicer/Slicer/SuperBuild/External_DCMTK.cmake:68 (ExternalProject_Add_Empty)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/CMake/SlicerMacroCheckExternalProjectDependency.cmake:69 (include)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/SuperBuild.cmake:246 (SlicerMacroCheckExternalProjectDependency)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/CMakeLists.txt:30 (include)

-- Configuring incomplete, errors occurred!
make[2]: *** [Slicer-prefix/src/Slicer-stamp/Slicer-configure] Error 1
make[1]: *** [CMakeFiles/Slicer.dir/all] Error 2
make: *** [all] Error 2

@AleksDark
Copy link
Author

Manual build produces this error:

error: pathspec 'EnhanceQSubProcessing' did not match any file(s) known to git.
CMake Error at /media/Software/Slicer/Slicer-Quick-test/Slicer-build/Modules/Remote/BRAINSTools/NIPYPE-prefix/tmp/NIPYPE-gitclone.cmake:39 (message):
Failed to checkout tag: 'EnhanceQSubProcessing'

make[2]: *** [NIPYPE-prefix/src/NIPYPE-stamp/NIPYPE-download] Error 1
make[1]: *** [CMakeFiles/NIPYPE.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2

@Chaircrusher
Copy link

I¹d try configuring with USE_SYSTEM_ZLIB=ON

We don¹t have Debian systems AFAIK but we do build on Linux all the time.

From: AleksDark notifications@github.com
Reply-To: BRAINSia/BRAINSTools
<reply+i-35879405-3633f15ab3bf8503a7b74ef357806423502a4a95-482621@reply.git
hub.com>
Date: Tuesday, June 17, 2014 at 6:20 AM
To: BRAINSia/BRAINSTools BRAINSTools@noreply.github.com
Subject: [BRAINSTools] make error : get_property could not find TARGET
zlib. Perhaps it has not yet been created. (#98)

Suggestions?
Debian system, first time to build complete version of BRAINSTools.
Error message:
-- SuperBuild - BRAINSTools => Requires DCMTK, ITKv4,
SlicerExecutionModel, teem, Boost, ReferenceAtlas, VTK, OpenCV, ANTs,
PCRE, Swig, SimpleITK, NIPYPE,

-- SuperBuild - First pass
-- SuperBuild - First pass - done
CMake Error at /usr/share/cmake-2.8/Modules/ExternalProject.cmake:642
(get_property):
get_property could not find TARGET zlib. Perhaps it has not yet been
created.
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:856
(ExternalProject_Get_Property)
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:1331
(_ep_get_step_stampfile)
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:1545
(_ep_add_configure_command)
/media/Software/Slicer/Slicer/CMake/ExternalProjectDependency.cmake:668
(ExternalProject_Add)
/media/Software/Slicer/Slicer/SuperBuild/External_DCMTK.cmake:68
(ExternalProject_Add_Empty)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/CMake/SlicerMacroCheck
ExternalProjectDependency.cmake:69 (include)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/SuperBuild.cmake:246
(SlicerMacroCheckExternalProjectDependency)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/CMakeLists.txt:30
(include)
CMake Error at /usr/share/cmake-2.8/Modules/ExternalProject.cmake:644
(message):
External project "zlib" has no stamp_dir
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:856
(ExternalProject_Get_Property)
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:1331
(_ep_get_step_stampfile)
/usr/share/cmake-2.8/Modules/ExternalProject.cmake:1545
(_ep_add_configure_command)
/media/Software/Slicer/Slicer/CMake/ExternalProjectDependency.cmake:668
(ExternalProject_Add)
/media/Software/Slicer/Slicer/SuperBuild/External_DCMTK.cmake:68
(ExternalProject_Add_Empty)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/CMake/SlicerMacroCheck
ExternalProjectDependency.cmake:69 (include)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/SuperBuild.cmake:246
(SlicerMacroCheckExternalProjectDependency)
/media/Software/Slicer/Slicer-Quick-test/BRAINSTools/CMakeLists.txt:30
(include)
-- Configuring incomplete, errors occurred!
make[2]: *** [Slicer-prefix/src/Slicer-stamp/Slicer-configure] Error 1
make[1]: *** [CMakeFiles/Slicer.dir/all] Error 2
make: *** [all] Error 2

Reply to this email directly or
view it on GitHub #98.


Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.


@AleksDark
Copy link
Author

Hi,
Can you specify how to?

Command
cmake ../BRAINSTools -DUSE_SYSTEM_ZLIB=ON
Produces at the end:

CMake Warning:
Manually-specified variables were not used by the project:
USE_SYSTEM_ZLIB

@hjmjohnson
Copy link
Member

That build feature is not yet operational.

We are working to make it better.

Sent from my iPhone

On Jun 19, 2014, at 2:41 AM, AleksDark notifications@github.com wrote:

Hi,
Can you specify how to?

Command
cmake ../BRAINSTools -DUSE_SYSTEM_ZLIB=ON
Produces at the end:

CMake Warning:
Manually-specified variables were not used by the project:
USE_SYSTEM_ZLIB


Reply to this email directly or view it on GitHub.

@Chaircrusher
Copy link

Fixed in 381b9f9

Illustrates the danger of global declarations in headers -- I just deleted them all out of BRAINSFitUtilities.h and it turns out that some of the places I subsequently had to fix had nothing to do with BRAINSFit functions in BRAINSCommonLib. The fact that BRAINSFitUtilities.h was included by some accident of nested includes was the only reason the code compiled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants