<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi T.J.</p>
<p><br>
</p>
<p>I am currently trying to build a static build of CGM but I getting some errors </p>
<p><br>
</p>
<p></p>
<p style="margin-left: 0px; margin-right: 0px;"><span style=" color:#ff0000;">CMake Error: install(EXPORT "cgm" ...) includes target "cgma_init" which requires target "cholla" that is not in the export set.</span></p>
<p style="margin-left: 0px; margin-right: 0px;"><span style=" color:#ff0000;">CMake Error: install(EXPORT "cgm" ...) includes target "cgma_init" which requires target "cubit_facetboolstub" that is not in the export set.</span></p>
<p style="margin-left: 0px; margin-right: 0px;"><span style=" color:#ff0000;">CMake Error: install(EXPORT "cgm" ...) includes target "cgma_init" which requires target "cubit_facet" that is not in the export set.</span></p>
<p style="margin-left: 0px; margin-right: 0px;"><span style=" color:#ff0000;">CMake Error: install(EXPORT "cgm" ...) includes target "cgma_init" which requires target "cubit_virtual" that is not in the export set.</span></p>
<p style="margin-left: 0px; margin-right: 0px;"><span style=" color:#ff0000;">CMake Error: install(EXPORT "cgm" ...) includes target "cgma_init" which requires target "cubit_occ" that is not in the export set.</span></p>
<p style="margin-left: 0px; margin-right: 0px;"><span style=" color:#ff0000;">CMake Error: install(EXPORT "cgm" ...) includes target "cgma_init" which requires target "cubit_parallel" that is not in the export set.</span></p>
<div><br>
</div>
<div><br>
</div>
<br>
<p></p>
<p>I have never exported subproject to main projects before, do you have any suggestions or some documentation about this which I could read? </p>
<p><br>
</p>
<p>thank you</p>
<p>Michal </p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> TJ Corona <tj.corona@kitware.com><br>
<b>Sent:</b> Tuesday, January 31, 2017 11:09 PM<br>
<b>To:</b> michal wozniak<br>
<b>Cc:</b> cmb-users@computationalmodelbuilder.org<br>
<b>Subject:</b> Re: [Cmb-users] smtk build fail during cmb superbuild</font>
<div> </div>
</div>
<div>
<div class="">Hi Michal,</div>
<div class=""><br class="">
</div>
<div class="">It looks as though CGM does not export its symbols properly on Windows. Perhaps you could try linking against a static build of CGM?</div>
<div class=""><br class="">
</div>
<div class="">Sincerely,</div>
<div class="">T.J.</div>
<br class="">
<div class="">
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
Thomas J. Corona, Ph.D.<br class="">
Kitware, Inc.<br class="">
R&D Engineer<br class="">
21 Corporate Drive<br class="">
Clifton Park, NY 12065-8662<br class="">
Phone: 518-881-4443</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jan 31, 2017, at 5:27 PM, michal wozniak <<a href="mailto:michalwozniak@live.ca" class="">michalwozniak@live.ca</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px">Hi, </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">I looked through your CmakeCache (<a href="https://open.cdash.org/viewNotes.php?buildid=4733420#!#note3" class="OWAAutoLink">https://open.cdash.org/viewNotes.php?buildid=4733420#!#note3</a>) and saw that
you were building in 64 bit. I tried once more in 64 bit and it worked! </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Then I tried again but this time I enabled cgm (<span class="" style="font-family:Calibri,Arial,Helvetica,sans-serif,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:16px">ENABLE_cgm)
and it failed during the smtk build. </span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">"<span class="">bin\smtkCGMSession.dll : fatal error LNK1120: 4 unresolved externals" </span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span class=""><br class="">
</span></div>
do I need something else to be able to build cmb with cgm?
<div class=""><br class="">
</div>
<div class="">Thank you</div>
<div class="">Michal<br class="">
<br class="">
<div class="" style="">
<hr tabindex="-1" class="" style="display:inline-block; width:747.734375px">
<div dir="ltr" class=""><font face="Calibri, sans-serif" class="" style="font-size:11pt"><b class="">From:</b><span class="Apple-converted-space"> </span>TJ Corona <<a href="mailto:tj.corona@kitware.com" class="">tj.corona@kitware.com</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Friday, January 27, 2017 12:12 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>michal wozniak<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:cmb-users@computationalmodelbuilder.org" class="">cmb-users@computationalmodelbuilder.org</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Cmb-users] smtk build fail during cmb superbuild</font>
<div class=""> </div>
</div>
<div class="">
<div class="">
<div class="">Hi Michal,</div>
<div class=""><br class="">
</div>
<div class="">I just built CMB using the superbuild with the same specs that you listed, and was unable to reproduce the error. CMB superbuild does pull SMTK and CMB from the latest master, so perhaps try a clean build again?</div>
<div class=""><br class="">
</div>
<div class="">Sincerely,</div>
<div class="">T.J.</div>
</div>
<br class="">
<div class="">
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
Thomas J. Corona, Ph.D.<br class="">
Kitware, Inc.<br class="">
R&D Engineer<br class="">
21 Corporate Drive<br class="">
Clifton Park, NY 12065-8662<br class="">
Phone: 518-881-4443</div>
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Jan 27, 2017, at 9:48 AM, michal wozniak <<a href="mailto:michalwozniak@live.ca" class="">michalwozniak@live.ca</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px">Hi, </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">I am trying to build CMB using the super build but I am getting a failed build error during the SMTK build phase. </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">"<span class="" style="font-size:12pt">Creating library lib\vtkSMTKReaderExt-7.1.lib and object lib\vtkSMTKReaderExt-7.1.exp</span></div>
<div class="">bin\vtkSMTKReaderExt-7.1.dll : fatal error LNK1169: one or more multiply defined symbols found" </div>
<div class=""><br class="">
</div>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class="" style="margin-top:0px; margin-bottom:0px">building on win 10 using Visual studio 2013, ninja & qt 4.8.6.</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">I have looked a bit through the source code and can't seem to find the cause that could trigger this error. </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Michal Wozniak</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
</div>
<span class=""><smtkError.txt></span><span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">Cmb-users
mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="mailto:Cmb-users@computationalmodelbuilder.org" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">Cmb-users@computationalmodelbuilder.org</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://public.kitware.com/mailman/listinfo/cmb-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">http://public.kitware.com/mailman/listinfo/cmb-users</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
<span><cgm_enabled_smtkFailed.txt></span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>