<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>&nbsp; &nbsp; I have tried to compile it by myself as follow:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; cd src</div><div>&nbsp; &nbsp; &nbsp; &nbsp; arm-gcc -g -shared -o _cairo.so *.c `pkg-config --cflags --libs python cairo`</div><div>&nbsp; &nbsp; &nbsp; &nbsp; put the _cairo.so into my arm platform</div><div>&nbsp; &nbsp; &nbsp; &nbsp; start python in the _cairo.so's directory</div><div>&nbsp; &nbsp; &nbsp; &nbsp; type the " import _cairo " command</div><div>&nbsp; &nbsp; &nbsp; &nbsp; it &nbsp;failed " SystemError: dynamic module not initialized properly "</div><div>&nbsp; &nbsp;So i dbg it , break at the "init_cairo" &nbsp;function, all the if test were passed and the function&nbsp;</div><div>returned normally.</div><div>&nbsp; &nbsp; 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&nbsp;2012-01-18&nbsp;16:14:12,"suzuki&nbsp;toshiya"&nbsp;&lt;<a href="mailto:mpsuzuki@hiroshima-u.ac.jp">mpsuzuki@hiroshima-u.ac.jp</a>&gt;&nbsp;wrote:
&gt;Hi,
&gt;
&gt;Considering&nbsp;the&nbsp;error&nbsp;message&nbsp;by&nbsp;configure,&nbsp;it&nbsp;looks&nbsp;like
&gt;as&nbsp;if&nbsp;you&nbsp;executed&nbsp;./configure&nbsp;directly,&nbsp;instead&nbsp;of&nbsp;"./waf&nbsp;configure".
&gt;If,&nbsp;if&nbsp;you've&nbsp;executed&nbsp;"./waf&nbsp;configure"&nbsp;but&nbsp;you&nbsp;got&nbsp;same&nbsp;error,
&gt;please&nbsp;check&nbsp;how&nbsp;Python&nbsp;executed&nbsp;waf&nbsp;script,&nbsp;by&nbsp;setting&nbsp;PYTHONVERBOSE
&gt;environment.&nbsp;In&nbsp;my&nbsp;case,&nbsp;"env&nbsp;PYTHONVERBOSE=1&nbsp;./waf&nbsp;configure"
&gt;gave&nbsp;attached&nbsp;output.
&gt;
&gt;BTW,&nbsp;I'm&nbsp;not&nbsp;sure&nbsp;whether&nbsp;waf&nbsp;supports&nbsp;autoconf-like&nbsp;cross&nbsp;building
&gt;(rather,&nbsp;I'm&nbsp;not&nbsp;sure&nbsp;whether&nbsp;waf&nbsp;supports&nbsp;cross&nbsp;building&nbsp;itself).
&gt;
&gt;#&nbsp;In&nbsp;addition,&nbsp;setting&nbsp;CC&nbsp;for&nbsp;cross-building&nbsp;is&nbsp;looking&nbsp;like&nbsp;a&nbsp;method
&gt;#&nbsp;advertised&nbsp;by&nbsp;too&nbsp;legacy&nbsp;broken&nbsp;tutorials&nbsp;and&nbsp;that&nbsp;had&nbsp;misguided&nbsp;many
&gt;#&nbsp;newbies&nbsp;(it&nbsp;works&nbsp;in&nbsp;some&nbsp;cases,&nbsp;but&nbsp;does&nbsp;not&nbsp;work&nbsp;in&nbsp;other&nbsp;cases).
&gt;#&nbsp;I&nbsp;want&nbsp;to&nbsp;know&nbsp;who&nbsp;taught&nbsp;you&nbsp;it&nbsp;:-)
&gt;
&gt;Regards,
&gt;mpsuzuki
&gt;
&gt;xsj&nbsp;wrote:
&gt;&gt;&nbsp;Hi,
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;want&nbsp;to&nbsp;cross&nbsp;compile&nbsp;py2cairo-1.10,but&nbsp;find&nbsp;that&nbsp;it&nbsp;use&nbsp;waf&nbsp;as&nbsp;the&nbsp;
&gt;&gt;&nbsp;build&nbsp;tool,which&nbsp;i&nbsp;did't&nbsp;know&nbsp;well.&nbsp;So,&nbsp;i&nbsp;try&nbsp;to&nbsp;define&nbsp;the&nbsp;CC,PKG_CONFIG_PATH&nbsp;...&nbsp;enviroment&nbsp;var,and&nbsp;follow&nbsp;the
&gt;&gt;&nbsp;orders&nbsp;in&nbsp;the&nbsp;INSTALL&nbsp;file,but&nbsp;it&nbsp;use&nbsp;the&nbsp;wrong&nbsp;library&nbsp;
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;also&nbsp;find&nbsp;that&nbsp;it&nbsp;has&nbsp;the&nbsp;configure&nbsp;script&nbsp;and&nbsp;try&nbsp;to&nbsp;./configure&nbsp;,but&nbsp;it&nbsp;complaint&nbsp;:&nbsp;"configure:&nbsp;error:&nbsp;cannot&nbsp;find&nbsp;install-sh,&nbsp;install.sh,&nbsp;or&nbsp;shtool&nbsp;in&nbsp;"."&nbsp;"./.."&nbsp;"./../..""
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Above&nbsp;all,&nbsp;please&nbsp;tell&nbsp;me&nbsp;how&nbsp;to&nbsp;use&nbsp;waf&nbsp;to&nbsp;cross-compile&nbsp;or&nbsp;fix&nbsp;the&nbsp;configure&nbsp;script&nbsp;error.
&gt;&gt;&nbsp;Thanks
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;------------------------------------------------------------------------
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;--
&gt;&gt;&nbsp;cairo&nbsp;mailing&nbsp;list
&gt;&gt;&nbsp;<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a>
&gt;&gt;&nbsp;http://lists.cairographics.org/mailman/listinfo/cairo
&gt;
</pre></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>