<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: monospace; ">Alex,</span><div><font class="Apple-style-span" face="monospace"><br></font><div><span class="Apple-style-span" style="font-family: monospace; ">I downloaded the source 2.6.4 and I compiled in debug mode. </span></div><div><span class="Apple-style-span" style="font-family: monospace; ">This is the backtrace of my run,</span></div><div><font class="Apple-style-span" face="monospace">gdb /download/cmake-2.6.4/bin/cpack</font></div><div><font class="Apple-style-span" face="monospace">> r --config ./CPackConfig.cmake</font></div><div><br></div><div><font class="Apple-style-span" face="monospace"><br></font></div><div><font class="Apple-style-span" face="monospace"><div>#0 0x967afe42 in __kill ()</div><div>#1 0x967afe34 in kill$UNIX2003 ()</div><div>#2 0x9682223a in raise ()</div><div>#3 0x9682e679 in abort ()</div><div>#4 0x92c29005 in __gnu_cxx::__verbose_terminate_handler ()</div><div>#5 0x92c2710c in __gxx_personality_v0 ()</div><div>#6 0x92c2714b in std::terminate ()</div><div>#7 0x92c27261 in __cxa_throw ()</div><div>#8 0x92be7a6a in std::__throw_logic_error ()</div><div>#9 0x92c0f366 in std::string::_S_construct<char const*> ()</div><div>#10 0x92c0f4ac in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string ()</div><div>#11 0x000204a0 in cmCPackNSISGenerator::InitializeInternal (this=0x82a8e0) at /download/cmake-2.6.4/Source/CPack/cmCPackNSISGenerator.cxx:383</div><div>#12 0x0000d98e in cmCPackGenerator::Initialize (this=0x82a8e0, name=0x824b9c "NSIS", mf=0xbfffea38) at /download/cmake-2.6.4/Source/CPack/cmCPackGenerator.cxx:925</div><div>#13 0x00005e7a in main (argc=3, argv=0xbffff3d8) at /download/cmake-2.6.4/Source/CPack/cpack.cxx:385</div><div><br></div><div>This is the 383 line,</div></font></div><div><font class="Apple-style-span" face="monospace">383</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="monospace">        </font></span><font class="Apple-style-span" face="monospace"> std::string tmpFile = this->GetOption("CPACK_TOPLEVEL_DIRECTORY");</font></div><div><font class="Apple-style-span" face="monospace"><br></font></div><div><font class="Apple-style-span" face="monospace">This is the 925 line,</font></div><div><font class="Apple-style-span" face="monospace"><div>925<span class="Apple-tab-span" style="white-space:pre">        </span> int result = this->InitializeInternal();</div><div><br></div></font></div><div><font class="Apple-style-span" face="monospace">this is the 385 line,</font></div><div><font class="Apple-style-span" face="monospace"><div>385<span class="Apple-tab-span" style="white-space:pre">        </span> if ( parsed && !cpackGenerator->Initialize(gen, mf) )</div><div><br></div></font></div><div><span class="Apple-style-span" style="font-family: monospace; "><br>On Friday 02 October 2009, Canga Marcelo wrote:<br><blockquote type="cite">I am having trouble building a NSIS package running cpack from my mac<br></blockquote><blockquote type="cite">for windows xp<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This is what I have on my cross-compile setup in my mac:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> I have a cross-compile setup working in Macos, mingw-gcc<br></blockquote><blockquote type="cite"> I have cpack - zip running on my mac for windows xp<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This is what I have in windows xp:<br></blockquote><blockquote type="cite"> I have cpack - nsis for windows xp running from windows xp<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This is what is not working,<br></blockquote><blockquote type="cite"> I can't run cpack nsis from my mac for windows xp.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">When I try to run cpack from my mac, the process die with the<br></blockquote><blockquote type="cite">following message,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">terminate called after throwing an instance of 'std::logic_error'<br></blockquote><blockquote type="cite"> what(): basic_string::_S_construct NULL not valid<br></blockquote><br>Can you run it in gdb to get a backtrace ?<br><blockquote type="cite"><br></blockquote><blockquote type="cite">Has anybody been able to builder a NSIS windows xp distribution from a<br></blockquote><blockquote type="cite">mac using cpack?<br></blockquote><br>I don't think anybody ever tried that.<br><br>Alex<br><br></span></div></div></body></html>