View Issue Details

IDProjectCategoryView StatusLast Update
0002353Slicer4Core: Building (CMake, Superbuild)public2012-07-27 14:36
ReporterLchauvin Assigned Tojcfr  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
PlatformWindowsOS7OS Version
Product Version 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002353: ExternalData not found
Description

When I try to compile Slicer on windows, it failed with this message:

Make Error at CMakeLists.txt:492 (include):
1> include could not find load file:
1>
1> ExternalData
1>

This is the CMakeLists.txt of the root (Slicer4 directory).
I noticed that some data should be download with a kitware url (http://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=%(hash))

But I cannot find any variable called hash in the file. I think this is why it could fail.
I tried to do the CMake again, and rebuild, but it's still happening.

TagsNo tags attached.

Activities

jcfr

jcfr

2012-07-25 16:34

administrator   ~0005239

Last edited: 2012-07-25 16:35

Just to confirm - Since Are you talking about Slicer trunk or the 4.1.1 branch: http://viewvc.slicer.org/viewvc.cgi/Slicer4/branches/Slicer-4-1-1/
?

To answer your first question: The %(hash) you are talking about is the one from a URL template that is used by ExternalData module to download data.

Lchauvin

Lchauvin

2012-07-25 16:36

developer   ~0005240

I made a mistake in the choice, it's 4.1.0, the github version (master branch, not master-411).

jcfr

jcfr

2012-07-25 16:46

administrator   ~0005241

Could you provide more details. When does the error occur etc ..

Is it when you configure at top-level, or when Slicer is configured.

Which line in CMakeLists ?

Without more details it is very hard to narrow the problem down.

Lchauvin

Lchauvin

2012-07-25 16:53

developer   ~0005242

The error occurs when I compile. At the very beginning, when it's "configuring", I have the error in the message (ExternalData not found).

It's in the main CMakeLists (Slicer4/CMakeLists.txt), line 492.
https://github.com/lchauvin/Slicer/blob/master/CMakeLists.txt#L490

Here we can see it's appending a URL. But the url is like this:
http://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=%(hash)

However, I cannot find the variable "hash" in the CMakeLists.

The line creating the issue is: include(ExternalData) (Line 492)
I think it's because the URL is wrong (because of the checksum value).

jcfr

jcfr

2012-07-25 16:59

administrator   ~0005243

As explained earlier, this url is a template and the hash is replaced by the md5 of the data specified within a md5 file.

In your case you explained if fails to include the ExternalData CMake module ... the url is process within the module. It means it's very unlikely to be the cause of the prob.

Make also sure to build using an u[-to-date source tree ! If you checked out the source available on your fork they are NOT up-to-date. It's your role to maintain your fork up to date.

Source are up-to-date here: git://github.com/Slicer/Slicer.git
not here git://github.com/lchauvin/Slicer.git

jcfr

jcfr

2012-07-26 06:11

administrator   ~0005254

Following your email, error occurs at line 492 of CMakeLists.txt

The inclusion of ExternalData is done at that line on the CMakeLists of your fork. See [1]

Whereas on the up-to-date CMakeLists of the trunk, it's done at line 509. See [2]

[1] https://github.com/lchauvin/Slicer/blob/master/CMakeLists.txt#L492
[2] https://github.com/Slicer/Slicer/blob/master/CMakeLists.txt#L509

Issue History

Date Modified Username Field Change
2012-07-25 14:24 Lchauvin New Issue
2012-07-25 14:24 Lchauvin Status new => assigned
2012-07-25 14:24 Lchauvin Assigned To => jcfr
2012-07-25 16:34 jcfr Note Added: 0005239
2012-07-25 16:34 jcfr Status assigned => feedback
2012-07-25 16:35 jcfr Note Edited: 0005239
2012-07-25 16:36 Lchauvin Note Added: 0005240
2012-07-25 16:44 jcfr Product Version Slicer 4.1.1 =>
2012-07-25 16:44 jcfr Target Version Slicer 4.1.1 => Slicer 4.2.0 - October 1st 2012
2012-07-25 16:46 jcfr Note Added: 0005241
2012-07-25 16:53 Lchauvin Note Added: 0005242
2012-07-25 16:59 jcfr Note Added: 0005243
2012-07-25 16:59 jcfr Status feedback => resolved
2012-07-25 16:59 jcfr Fixed in Version => Slicer 4.2.0 - October 1st 2012
2012-07-25 16:59 jcfr Resolution open => fixed
2012-07-26 06:11 jcfr Note Added: 0005254
2012-07-27 14:36 jcfr Status resolved => closed