[CMake] Crosscompile: CPack Macos and NSIS
Marcelo Canga
marcelocanga at gmail.com
Mon Oct 5 18:07:44 EDT 2009
Alex,
I downloaded the source 2.6.4 and I compiled in debug mode.
This is the backtrace of my run,
gdb /download/cmake-2.6.4/bin/cpack
> r --config ./CPackConfig.cmake
#0 0x967afe42 in __kill ()
#1 0x967afe34 in kill$UNIX2003 ()
#2 0x9682223a in raise ()
#3 0x9682e679 in abort ()
#4 0x92c29005 in __gnu_cxx::__verbose_terminate_handler ()
#5 0x92c2710c in __gxx_personality_v0 ()
#6 0x92c2714b in std::terminate ()
#7 0x92c27261 in __cxa_throw ()
#8 0x92be7a6a in std::__throw_logic_error ()
#9 0x92c0f366 in std::string::_S_construct<char const*> ()
#10 0x92c0f4ac in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string ()
#11 0x000204a0 in cmCPackNSISGenerator::InitializeInternal
(this=0x82a8e0) at /download/cmake-2.6.4/Source/CPack/
cmCPackNSISGenerator.cxx:383
#12 0x0000d98e in cmCPackGenerator::Initialize (this=0x82a8e0,
name=0x824b9c "NSIS", mf=0xbfffea38) at /download/cmake-2.6.4/Source/
CPack/cmCPackGenerator.cxx:925
#13 0x00005e7a in main (argc=3, argv=0xbffff3d8) at /download/
cmake-2.6.4/Source/CPack/cpack.cxx:385
This is the 383 line,
383 std::string tmpFile = this-
>GetOption("CPACK_TOPLEVEL_DIRECTORY");
This is the 925 line,
925 int result = this->InitializeInternal();
this is the 385 line,
385 if ( parsed && !cpackGenerator->Initialize(gen, mf) )
On Friday 02 October 2009, Canga Marcelo wrote:
> I am having trouble building a NSIS package running cpack from my mac
> for windows xp
>
> This is what I have on my cross-compile setup in my mac:
>
> I have a cross-compile setup working in Macos, mingw-gcc
> I have cpack - zip running on my mac for windows xp
>
> This is what I have in windows xp:
> I have cpack - nsis for windows xp running from windows xp
>
> This is what is not working,
> I can't run cpack nsis from my mac for windows xp.
>
> When I try to run cpack from my mac, the process die with the
> following message,
>
> terminate called after throwing an instance of 'std::logic_error'
> what(): basic_string::_S_construct NULL not valid
Can you run it in gdb to get a backtrace ?
>
> Has anybody been able to builder a NSIS windows xp distribution from a
> mac using cpack?
I don't think anybody ever tried that.
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091005/bddf71d1/attachment-0001.htm>
More information about the CMake
mailing list