<p>Hello,my friends:<br> I have a trouble that trouble me so <a href="http://long.in">long.in</a> a few weeks ago,i accepte a project to compile a program about gps application,which use the proj.4.6.1,to ran on the intel Xscale pxa270 Platform.in the fowllow,i configure the PROJ and then compile it on the cross-compiling toolchain.<br>
#!/bin/bash<br>rm -f config.cache config.status<br>make clean<br>CC=arm-linux-gcc \<br>CXX=arm-linux-g++ \<br>#CFLAGS="-pipe -s -O2 -march=armv5te -mtune=xscale" \<br>#LDFLAGS="-Wl,-O1"<br>./configure --prefix=/root/gis \<br>
--build=i686-pc-linux-gnu \<br> --host=arm-linux \<br> --target=arm-linux\<br> --with-PACKAGE=yes \<br> --enable-FEATURE=yes<br>make<br>make install</p>
<p> I will also post a section of my program that include the pj_init() function that seems cause the error.<br>void EngineCommon::initialize_proj_ref()<br>{<br> if(projRef != NULL) release_proj_ref();</p>
<p> char* parameters[]={"proj=lcc","ellps=WGS84"};</p>
<p>//double lat_1=45;<br>//double lat_2=60;<br> if(!(projRef = pj_init(2,parameters))){<br> //if(!(projRef = pj_init_plus(*parameters))){<br> printf("Projection Initialization Failure: %d\n%s\n",pj_errno,pj_strerrno(pj_errno));<br>
printf("error number:%d\n",pj_errno);</p>
<p> }<br> <br>}<br> my program can run on the pc succsessfully ,but when i transplantate after compile it together with the proj which utilize the arm cross-compiling toolchian,and then run on the Xscale platform,some information may suggest some error on the terminal,confer to the follow;</p>
<p> Projection Initialization Failure: -21 <br> conic lat_1 = -lat_2 <br> error number:-21 <br>
table poi_category already exists <br> 466163d,0d,0 <br> Aborted<br> but i don't konw the reason ,two weeks have elapsed and i am in urgent for solving the problem , is any friend encouter the same situation ,any suggestion is thanking,help me please!<br>
</p>