Re: How to cross compile py2cairo

xsj <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hi:
    I have tried to compile it by myself as follow:
        cd src
        arm-gcc -g -shared -o _cairo.so *.c `pkg-config --cflags --libs python cairo`
        put the _cairo.so into my arm platform
        start python in the _cairo.so's directory
        type the " import _cairo " command
        it  failed " SystemError: dynamic module not initialized properly "
   So i dbg it , break at the "init_cairo"  function, all the if test were passed and the function 
returned normally.
    I know the compile command must have something wrong ,please help me to figure it out.
I googled ,but know little about cross-compile use waf .





At 2012-01-18 16:14:12,"suzuki toshiya" <[email protected]> wrote:
>Hi,
>
>Considering the error message by configure, it looks like
>as if you executed ./configure directly, instead of "./waf configure".
>If, if you've executed "./waf configure" but you got same error,
>please check how Python executed waf script, by setting PYTHONVERBOSE
>environment. In my case, "env PYTHONVERBOSE=1 ./waf configure"
>gave attached output.
>
>BTW, I'm not sure whether waf supports autoconf-like cross building
>(rather, I'm not sure whether waf supports cross building itself).
>
># In addition, setting CC for cross-building is looking like a method
># advertised by too legacy broken tutorials and that had misguided many
># newbies (it works in some cases, but does not work in other cases).
># I want to know who taught you it :-)
>
>Regards,
>mpsuzuki
>
>xsj wrote:
>> Hi,
>>      I want to cross compile py2cairo-1.10,but find that it use waf as the 
>> build tool,which i did't know well. So, i try to define the CC,PKG_CONFIG_PATH ... enviroment var,and follow the
>> orders in the INSTALL file,but it use the wrong library 
>>      I also find that it has the configure script and try to ./configure ,but it complaint : "configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../..""
>>      Above all, please tell me how to use waf to cross-compile or fix the configure script error.
>> Thanks
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> --
>> cairo mailing list
>> [email protected]
>> http://lists.cairographics.org/mailman/listinfo/cairo
>

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.