<div>
<div>Hi,<br><br>I want to build vlc for my Pocket PC HP IPAQ4700, with WinCE as OS. I have been looking through the forum as well as the trunk files on the install.wince for the last few days but I am still unable to get the build process right. Can anyone please help me?
</div><br>
<div>I use the the wince gcc cross-compiler to build vlc, I get the cross-compiler and the additional libraries from the url mentioned in install.wince. That is <a href="http://www.videolan.org/pub/testing/wince/wince-arm-gcc4.0.0-cvs-linux-crosscompiler-20050517.tar.bz2">
http://www.videolan.org/pub/testing/wince/wince-arm-gcc4.0.0-cvs-linux-crosscompiler-20050517.tar.bz2</a> and <a href="http://download.videolan.org/pub/testing/wince/contrib-20050220-wince-xscale-bin.tar.bz2. ">http://download.videolan.org/pub/testing/wince/contrib-20050220-wince-xscale-bin.tar.bz2.
</a></div>
<div> </div>
<div>The source code of vlc I use is vlc0.8.5.tar.gz. </div>
<div> </div>
<div>At the configure step, according to some previours mails in the maillist, I modified some place. my copy of install.wince is:</div>
<div> </div>
<div>./bootstrap &&<br>PATH=/usr/local/wince/cross-tools/bin:$PATH \<br>CFLAGS="-D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include $CFLAGS -I/usr/local/wince/contrib-xscale/include -mcpu=xscale" \
<br>LDFLAGS="-L/usr/local/wince/cross-tools/lib -L/usr/local/wince/contrib-xscale/lib" \<br>CC="arm-wince-pe-gcc" \<br>AR="arm-wince-pe-ar" \<br>LD="arm-wince-pe-ld" \<br>CXX="arm-wince-pe-g++" \
<br>CPP="arm-wince-pe-cpp" \<br>STRIP="arm-wince-pe-strip" \<br>./configure --prefix=/usr/local/wince \<br>--disable-sdl --disable-gtk --disable-dvdnav --disable-dvdread \<br>--disable-nls --disable-sout --disable-vlm --disable-wxwidgets \
<br>--disable-a52 --disable-libmpeg2 \<br>--disable-mad --disable-plugins --enable-optimize-memory \<br>--enable-ffmpeg --enable-tremor --enable-faad \<br>--enable-freetype --with-freetype-config-path=/usr/local/wince/contrib-xscale/bin \
<br>--enable-fribidi --with-fribidi-config-path=/usr/local/wince/contrib-xscale/bin \<br>--build=i686-pc-linux-gnu --host=arm-wince-pe --target=arm-wince-pe</div>
<div> </div>
<div>After successful configure, I begin make according to install.wince. The command is:</div>
<div> </div>
<div>PATH=/usr/local/wince/cross-tools/bin:$PATH make</div>
<div> </div>
<div>However, here I met my problems. After a few warnings, I found that the compile stage finished and begin to link. The problem is that a few function calls can't find the definition in any .a and .lib files. For example:
</div>
<div> </div>
<div>1.src/libvlc.a(libvlc_a-es_out.o):es_out.c:(.text+0x2644): undefined reference to `lldiv';</div>
<div>2../modules/gui/wince/libwince.a(libwince_a-playlist.o):playlist.cpp:(.text+0x548): undefined reference to `playlist_Import'; </div>
<div>3../modules/demux/mp4/libmp4.a(libmp4_a-libmp4.o):libmp4.c:(.text+0x8208): undefined reference to `__stream_MemoryNew';</div>
<div>......</div>
<div> </div>
<div>In the attached file, a full text version of the output of the build process is presented.</div>
<div> </div>
<div>I have searched the missing function with grep and found that most of them are with definition. So I don't know why ld can not get them together.</div>
<div> </div>
<div>I wondered whether this is related to my configure process. I hope that anyone have met the same problem and can give me a reply. </div>
<div> </div>
<div>Many Thanks.<br> </div>
<div>Haley<br>-- <br>Best Regards!</div></div>