<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi:<div> I have tried to compile it by myself as follow:</div><div> cd src</div><div> arm-gcc -g -shared -o _cairo.so *.c `pkg-config --cflags --libs python cairo`</div><div> put the _cairo.so into my arm platform</div><div> start python in the _cairo.so's directory</div><div> type the " import _cairo " command</div><div> it failed " SystemError: dynamic module not initialized properly "</div><div> So i dbg it , break at the "init_cairo" function, all the if test were passed and the function </div><div>returned normally.</div><div> I know the compile command must have something wrong ,please help me to figure it out.</div><div>I googled ,but know little about cross-compile use waf .</div><div><br><div></div><div id="divNeteaseMailCard"></div><br><pre><br>At 2012-01-18 16:14:12,"suzuki toshiya" <<a href="mailto:mpsuzuki@hiroshima-u.ac.jp">mpsuzuki@hiroshima-u.ac.jp</a>> 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
>> <a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a>
>> http://lists.cairographics.org/mailman/listinfo/cairo
>
</pre></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>