Re: [ITK-users] Undefined function SaveMHDData

Gunjan Naik <[email protected]> Tue, 17 Jul 2018 10:30:46 +0000
Newsgroups gmane.comp.lib.itk.user
Message-ID <MAXPR0101MB148471F1596545DD8DAE1DCBFB5C0@MAXPR0101MB1484.INDPRD01.PROD.OUTLOOK.COM>
--===============1419023385==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_MAXPR0101MB148471F1596545DD8DAE1DCBFB5C0MAXPR0101MB1484_"

--_000_MAXPR0101MB148471F1596545DD8DAE1DCBFB5C0MAXPR0101MB1484_
Content-Type: text/plain; charset="windows-1250"
Content-Transfer-Encoding: quoted-printable

Thanks D=9Eenan Zuki=E6,


As per your guideline, I build an older ITK with version 4.7.2. And set the=
 flags for MetaImage using ImageIO. The Glistr has been built.


Regards,

Gunjan Naik

________________________________
From: D=9Eenan Zuki=E6 <[email protected]>
Sent: Monday, July 16, 2018 10:10 PM
To: Gunjan Naik
Cc: Insight-users
Subject: Re: [ITK-users] Undefined function SaveMHDData

SaveMHDData is a function in glistr, and a constructor for MetaImage which =
it invokes is not available during link stage. It could be something wrong =
with that library's build system, you could have set up something in a wron=
g way, or the library is relying on a constructor signature which is no lon=
ger available.

MetaImage saw some precision-related update in the last year I think, and t=
hat might have changed the constructor signature. You could try with an old=
er version of ITK, e.g. 4.11.

Regards,
D=9Eenan

On Sun, Jul 15, 2018 at 3:04 PM Gunjan Naik <[email protected]<mai=
lto:[email protected]>> wrote:

Hi,


I wanted to build the Glistr library, for brain tumor segmentation.


URL:http://www.med.upenn.edu/sbia/glistr.html

GLISTR | Section for Biomedical Image Analysis (SBIA ...<http://www.med.upe=
nn.edu/sbia/glistr.html>
www.med.upenn.edu<http://www.med.upenn.edu>
The Section for Biomedical Image Analysis (SBIA), part of the Center of Bio=
medical Image Computing and Analytics =97 CBICA, is devoted to the developm=
ent of computer-based image analysis methods, and their application to a wi=
de variety of clinical research studies.


While building that, I got the following error:

'Linking CXX executable EvaluateQ
CMakeFiles/EvaluateQ.dir/EvaluateQ.cpp.o: In function `int SaveMHDData<floa=
t>(char const*, char const*, float****, float****, float****, int, int, int=
, float, float, float, float, float, float)':
EvaluateQ.cpp:(.text._Z11SaveMHDDataIfEiPKcS1_PPPPT_S6_S6_iiiffffff[_Z11Sav=
eMHDDataIfEiPKcS1_PPPPT_S6_S6_iiiffffff]+0x9c): undefined reference to `Met=
aImage::MetaImage(int, int, int, float, float, float, MET_ValueEnumType, in=
t, void*)'
collect2: error: ld returned 1 exit status'


Is there any function 'SaveMHDData' in the ITK library, for which I have to=
 set the parameters, while building ITK from source?


Thanks and Regards,

Gunjan Naik

DISCLAIMER
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This e-mail may contain privileged and confidential information which is th=
e property of Persistent Systems Ltd. It is intended only for the use of th=
e individual or entity to which it is addressed. If you are not the intende=
d recipient, you are not authorized to read, retain, copy, print, distribut=
e or use this message. If you have received this communication in error, pl=
ease notify the sender and delete all copies of this message. Persistent Sy=
stems Ltd. does not accept any liability for virus infected mails.
The ITK community is transitioning from this mailing list to discourse.itk.=
org<http://discourse.itk.org>. Please join us there!
________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
https://itk.org/mailman/listinfo/insight-users

--_000_MAXPR0101MB148471F1596545DD8DAE1DCBFB5C0MAXPR0101MB1484_
Content-Type: text/html; charset="windows-1250"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dwindows-1=
250">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size: 12pt; color: rgb(0, 0,=
 0); font-family: Calibri, Helvetica, sans-serif, &quot;EmojiFont&quot;, &q=
uot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &q=
uot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir=3D=
"ltr">
<p style=3D"margin-top:0;margin-bottom:0">Thanks <font style=3D"font-size:1=
1pt" face=3D"Calibri, sans-serif" color=3D"#000000">
D=9Eenan Zuki=E6</font>,</p>
<p style=3D"margin-top:0;margin-bottom:0"><br>
</p>
<p style=3D"margin-top:0;margin-bottom:0">As per your guideline, I build an=
 older ITK with version 4.7.2. And set the flags for MetaImage using ImageI=
O.&nbsp;<span>The Glistr has been built.</span></p>
<p style=3D"margin-top:0;margin-bottom:0"><br>
</p>
<p style=3D"margin-top:0;margin-bottom:0">Regards,</p>
<p style=3D"margin-top:0;margin-bottom:0">Gunjan Naik<br>
</p>
<br>
<div style=3D"color: rgb(0, 0, 0);">
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font style=3D"font-size:11pt" face=
=3D"Calibri, sans-serif" color=3D"#000000"><b>From:</b> D=9Eenan Zuki=E6 &l=
t;[email protected]&gt;<br>
<b>Sent:</b> Monday, July 16, 2018 10:10 PM<br>
<b>To:</b> Gunjan Naik<br>
<b>Cc:</b> Insight-users<br>
<b>Subject:</b> Re: [ITK-users] Undefined function SaveMHDData</font>
<div>&nbsp;</div>
</div>
<meta content=3D"text/html; charset=3Dutf-8">
<div>
<div dir=3D"ltr">
<div class=3D"x_gmail_default" style=3D"font-family:verdana,sans-serif; fon=
t-size:small">
SaveMHDData is a function in glistr, and a constructor for MetaImage which =
it invokes is not available during link stage. It could be something wrong =
with that library's build system, you could have set up something in a wron=
g way, or the library is relying
 on a constructor signature which is no longer available.</div>
<div class=3D"x_gmail_default" style=3D"font-family:verdana,sans-serif; fon=
t-size:small">
<br>
</div>
<div class=3D"x_gmail_default" style=3D"font-family:verdana,sans-serif; fon=
t-size:small">
MetaImage saw some precision-related update in the last year I think, and t=
hat might have changed the constructor signature. You could try with an old=
er version of ITK, e.g. 4.11.</div>
<div class=3D"x_gmail_default" style=3D"font-family:verdana,sans-serif; fon=
t-size:small">
<br>
</div>
<div class=3D"x_gmail_default" style=3D"font-family:verdana,sans-serif; fon=
t-size:small">
<div class=3D"x_gmail_default" style=3D"">Regards,</div>
<div class=3D"x_gmail_default" style=3D"">D=9Eenan</div>
</div>
</div>
<br>
<div class=3D"x_gmail_quote">
<div dir=3D"ltr">On Sun, Jul 15, 2018 at 3:04 PM Gunjan Naik &lt;<a href=3D=
"mailto:[email protected]" id=3D"LPlnk459750" class=3D"OWAAutoLink=
" previewremoved=3D"true">[email protected]</a>&gt; wrote:<br>
</div>
<blockquote class=3D"x_gmail_quote" style=3D"margin:0 0 0 .8ex; border-left=
:1px #ccc solid; padding-left:1ex">
<div dir=3D"ltr">
<div id=3D"x_m_-6537775804584384113divtagdefaultwrapper" dir=3D"ltr" style=
=3D"font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, =
sans-serif, &quot;EmojiFont&quot;, &quot;Apple Color Emoji&quot;, &quot;Seg=
oe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Andro=
id Emoji&quot;, EmojiSymbols;">
<p style=3D"margin-top:0; margin-bottom:0">Hi,</p>
<p style=3D"margin-top:0; margin-bottom:0"><br>
</p>
<p style=3D"margin-top:0; margin-bottom:0">I wanted to build the Glistr lib=
rary, for brain tumor segmentation.</p>
<p style=3D"margin-top:0; margin-bottom:0"><br>
</p>
<p style=3D"margin-top:0; margin-bottom:0">URL:<a href=3D"http://www.med.up=
enn.edu/sbia/glistr.html" class=3D"x_m_-6537775804584384113OWAAutoLink OWAA=
utoLink" id=3D"LPlnk379116" target=3D"_blank" previewremoved=3D"true">http:=
//www.med.upenn.edu/sbia/glistr.html</a></p>
<div id=3D"x_m_-6537775804584384113LPBorder_GT_15316808023380.1745907976004=
0153" style=3D"margin-bottom:20px; overflow:auto; width:100%; text-indent:0=
px">
<table id=3D"x_m_-6537775804584384113LPContainer_15316808023340.82034044211=
98197" style=3D"width:90%; background-color:rgb(255,255,255); overflow:auto=
; padding-top:20px; padding-bottom:20px; margin-top:20px; border-top:1px do=
tted rgb(200,200,200); border-bottom:1px dotted rgb(200,200,200)" cellspaci=
ng=3D"0">
<tbody>
<tr style=3D"border-spacing:0px" valign=3D"top">
<td id=3D"x_m_-6537775804584384113TextCell_15316808023360.9175981112220881"=
 colspan=3D"2" style=3D"vertical-align:top; padding:0px; display:table-cell=
">
<div id=3D"x_m_-6537775804584384113LPRemovePreviewContainer_15316808023360.=
9784508568108619">
</div>
<div id=3D"x_m_-6537775804584384113LPTitle_15316808023360.42213351454789283=
" style=3D"color:rgb(0,120,215); font-weight:400; font-size:21px; font-fami=
ly:&quot;wf_segoe-ui_light&quot;,&quot;Segoe UI Light&quot;,&quot;Segoe WP =
Light&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-ser=
if; line-height:21px">
<a id=3D"LPlnk220607" href=3D"http://www.med.upenn.edu/sbia/glistr.html" ta=
rget=3D"_blank" style=3D"text-decoration:none" class=3D"OWAAutoLink" previe=
wremoved=3D"true">GLISTR | Section for Biomedical Image Analysis (SBIA ...<=
/a></div>
<div id=3D"x_m_-6537775804584384113LPMetadata_15316808023370.01270203530101=
0217" style=3D"margin:10px 0px 16px; color:rgb(102,102,102); font-weight:40=
0; font-family:&quot;wf_segoe-ui_normal&quot;,&quot;Segoe UI&quot;,&quot;Se=
goe WP&quot;,Tahoma,Arial,sans-serif; font-size:14px; line-height:14px">
<a href=3D"http://www.med.upenn.edu" target=3D"_blank" id=3D"LPlnk991445" c=
lass=3D"OWAAutoLink" previewremoved=3D"true">www.med.upenn.edu</a></div>
<div id=3D"x_m_-6537775804584384113LPDescription_15316808023380.58601882025=
63703" style=3D"display:block; color:rgb(102,102,102); font-weight:400; fon=
t-family:&quot;wf_segoe-ui_normal&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP=
&quot;,Tahoma,Arial,sans-serif; font-size:14px; line-height:20px; max-heigh=
t:100px; overflow:hidden">
The Section for Biomedical Image Analysis (SBIA), part of the Center of Bio=
medical Image Computing and Analytics =97 CBICA, is devoted to the developm=
ent of computer-based image analysis methods, and their application to a wi=
de variety of clinical research studies.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p style=3D"margin-top:0; margin-bottom:0">While building that, I got the f=
ollowing error:</p>
<p style=3D"margin-top:0; margin-bottom:0"><span style=3D"font-size:10.0pt;=
 font-family:&quot;Verdana&quot;,sans-serif">'Linking CXX executable Evalua=
teQ<br>
CMakeFiles/EvaluateQ.dir/EvaluateQ.cpp.o: In function `int SaveMHDData&lt;f=
loat&gt;(char const*, char const*, float****, float****, float****, int, in=
t, int, float, float, float, float, float, float)':<br>
EvaluateQ.cpp:(.text._Z11SaveMHDDataIfEiPKcS1_PPPPT_S6_S6_iiiffffff[_Z11Sav=
eMHDDataIfEiPKcS1_PPPPT_S6_S6_iiiffffff]&#43;0x9c): undefined reference to =
`MetaImage::MetaImage(int, int, int, float, float, float, MET_ValueEnumType=
, int, void*)'<br>
collect2: error: ld returned 1 exit status'<br>
</span></p>
<p style=3D"margin-top:0; margin-bottom:0"><br>
</p>
<p style=3D"margin-top:0; margin-bottom:0">Is there any function '<span sty=
le=3D"font-size:10.0pt; font-family:&quot;Verdana&quot;,sans-serif">SaveMHD=
Data</span>' in the ITK library, for which I have to set the parameters, wh=
ile building ITK from source?</p>
<p style=3D"margin-top:0; margin-bottom:0"><br>
</p>
<p style=3D"margin-top:0; margin-bottom:0">Thanks and Regards,</p>
<p style=3D"margin-top:0; margin-bottom:0">Gunjan Naik<br>
</p>
</div>
DISCLAIMER<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
This e-mail may contain privileged and confidential information which is th=
e property of Persistent Systems Ltd. It is intended only for the use of th=
e individual or entity to which it is addressed. If you are not the intende=
d recipient, you are not authorized
 to read, retain, copy, print, distribute or use this message. If you have =
received this communication in error, please notify the sender and delete a=
ll copies of this message. Persistent Systems Ltd. does not accept any liab=
ility for virus infected mails.</div>
The ITK community is transitioning from this mailing list to <a href=3D"htt=
p://discourse.itk.org" rel=3D"noreferrer" target=3D"_blank" id=3D"LPlnk5295=
49" class=3D"OWAAutoLink" previewremoved=3D"true">
discourse.itk.org</a>. Please join us there!<br>
________________________________<br>
Powered by <a href=3D"http://www.kitware.com" rel=3D"noreferrer" target=3D"=
_blank" id=3D"LPlnk84599" class=3D"OWAAutoLink" previewremoved=3D"true">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href=3D"http://www.kitware.com/opensource/opensource.html" rel=3D"norefe=
rrer" target=3D"_blank" id=3D"LPlnk13638" class=3D"OWAAutoLink" previewremo=
ved=3D"true">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href=3D"http://www.kitware.com/products/protraining.php" rel=3D"noreferr=
er" target=3D"_blank" id=3D"LPlnk196132" class=3D"OWAAutoLink" previewremov=
ed=3D"true">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href=3D"http://www.itk.org/Wiki/ITK_FAQ" rel=3D"noreferrer" target=3D"_b=
lank" id=3D"LPlnk202403" class=3D"OWAAutoLink" previewremoved=3D"true">http=
://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"https://itk.org/mailman/listinfo/insight-users" rel=3D"noreferre=
r" target=3D"_blank" id=3D"LPlnk265600" class=3D"OWAAutoLink" previewremove=
d=3D"true">https://itk.org/mailman/listinfo/insight-users</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>

--_000_MAXPR0101MB148471F1596545DD8DAE1DCBFB5C0MAXPR0101MB1484_--

--===============1419023385==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
https://itk.org/mailman/listinfo/insight-users

--===============1419023385==--