[vlc] Re: How to build the toolchain for CrossCompilation to WinCE

#PHANG CHEE WOH,DERRICK# PHAN0004 at ntu.edu.sg
Mon May 15 03:46:28 CEST 2006


Hi Sigmund,

I have tried to configure using your config specifications and found that my problem may simply be a case of the toolchain not made properly. I have read a documentation on the site for building the toolchain but I could not find 2 specific files.

Can you give me a link to them? They are gcc-2.95.3.diffbis.bz2 and gcc-2.95.3.diff2.

Another question here. Do I use the versions of the various libraries as specified by that documentation or do I download the latest version instead?

Also, do I download a version of the gcc that is currently in use by my cygwin? I realised that the version of the compiler is dependent on the version of the compiler that the libraries are compiled from but I do not exacly if they will affect the whole process.

Thanks very much for your help and I hope to hear from you soon.

Sincerely,
Derrick

-----Original Message-----
From: vlc-bounce at videolan.org on behalf of Jean-Paul Saman
Sent: Sat 5/13/2006 2:12 AM
To: vlc at videolan.org
Subject: [vlc] Re: How to compile VLC for Wince
 
#PHANG CHEE WOH,DERRICK# wrote:
> Hi Sigmund,
> 
> Thanks for volunteering your help. I have been troubled by this problem right from the start. Since I am not certain where the log files for the make process is located at and the error generated goes a long way, I have managed to type out some of the errors as shown below:
> 
> ../../include/vlc_access.h:110: error: parse error before '}' token
> ../../include/vlc_access.h: In function 'access2_vacontrol':
> ../../include/vlc_access.h:120: error: dereferencing pointer to incomplete type in file included from file.c:28:
> ../../include/vlc_stream.h: At top level:
> ../../include/vlc_stream.h:66: error: parse error before "vlc_thread_t"
> ../../include/vlc_stream.h:66: warning: no semicolon at end of struct or union
> ../../include/vlc_stream.h:66: warning: type defaults to 'int' in declaration of 'object_lock'
> ../../include/vlc_stream.h:66: warning: data definition has no type or storage class
> ../../include/vlc_stream.h:66: error: parse error before "object_wait"
> ../../include/vlc_stream.h:66: warning: type defaults to 'int' in declaration of 'object_wait'
> ../../include/vlc_stream.h:66: warning: data definition has no type or storage class
> ../../include/vlc_stream.h:66: error: parse error before "var_lock"
> ../../include/vlc_stream.h:66: warning: type defaults to 'int' in declaration of 'var_lock'
> ../../include/vlc_stream.h:66: warning: data definition has no type or storage class
> ../../include/vlc_stream.h:68: error: conflicting types for "pf_block"
> ../../include/vlc_stream.h:84: error: previous declaration of 'pf_block' was here
> ../../include/vlc_stream.h:68: error: conflicting types for "pf_read"
> ../../include/vlc_stream.h:84: error: previous declaration of 'pf_read' was here
> ../../include/vlc_stream.h:68: error: conflicting types for "pf_control"
> ../../include/vlc_stream.h:84: error: previous declaration of 'pf_control' was here
> ../../include/vlc_stream.h:68: error: conflicting types for "p_sys"
> ../../include/vlc_stream.h:84: error: previous declaration of 'p_sys' was here
> 
> The other files that are also reflected to have errors are vlc_demux.h, and file.c.
Are you sure you have a complete checkout of the archive?

> Anyway, are these files not generated by the make process?
No they are not and should be present in vlc/include

> As additional information, the library files that I have used so far are provided by
> contrib-20050220-wince-xscale-bin.tar, and 
> wince-arm-gcc4.0.0-cvs-linux-crosscompiler-20050517.tar
> 
> I have unpacked the two files with the lines 
> tar xjvf contrib-20050220-wince-xscale-bin.tar.bz2 -C /   , and 
> tar xjvf wince-arm-gcc4.0.0-cvs-linux-crosscompiler-20050517.tar -C /
> 
> My latest configuration is as follows:
Your build configuration is flawed. It has several errors.

> ./bootstrap && 
> PATH=/usr/local/wince/cross-tools/bin:$PATH \ 
> CFLAGS="-D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include" \ 
> CFLAGS="$CFLAGS -I/usr/local/wince/contrib-xscale/include" \
CFLAGS="$CFLAGS" is not wise to use here.

> LDFLAGS="-L/usr/local/wince/cross-tools/lib" \ 
> LDFLAGS="-L/usr/local/wince/contrib-xscale/lib" \ 
previous LDFLAGS is overwritten.

> CC="arm-wince-pe-gcc -mcpu=xscale" \ 
Here no linker, C++, ar, strip is specified.

> ./configure --prefix=/usr/local/wince \
> --disable-sdl --disable-gtk --disable-dvdnav --disable-dvdread \
> --disable-nls --disable-sout --disable-vlm --disable-wxwidgets \
> --disable-a52 --disable-libmpeg2 \
> --disable-mad --disable-plugins --enable-optimize-memory \
> --disable-ffmpeg --enable-tremor --disable-faad \
> --enable-freetype --with-freetype-config-path=/usr/local/wince/contrib-xscale/bin \
> --enable-fribidi --with-fribidi-config-path=/usr/local/wince/contrib-xscale/bin \
> --enable-livedotcom --with-livedotcom-tree=/usr/win32/live.com \
> --build=i686-pc-linux-gnu --host=arm-wince-pe --target=arm-wince-pe

You should do:
./bootstrap &&
PATH=/usr/local/wince/cross-tools/bin:$PATH \
CFLAGS="-D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include 
$CFLAGS -I/usr/local/wince/contrib-xscale/include -mcpu=xscale" \
LDFLAGS="-L/usr/local/wince/cross-tools/lib 
-L/usr/local/wince/contrib-xscale/lib" \
CC=arm-wince-pe-gcc \
AR=arm-wince-pe-ar \
LD=arm-wince-pe-ld \
CXX=arm-wince-pe-g++ \
CPP=arm-wince-pe-c++ \
STRIP=arm-wince-pe-strip \
  ./configure --prefix=/usr/local/wince \
  --disable-sdl --disable-gtk --disable-dvdnav --disable-dvdread \
  --disable-nls --disable-sout --disable-vlm --disable-wxwidgets \
  --disable-a52 --disable-libmpeg2 \
  --disable-mad --disable-plugins --enable-optimize-memory \
  --disable-ffmpeg --enable-tremor --disable-faad \
  --enable-freetype 
--with-freetype-config-path=/usr/local/wince/contrib-xscale/bin \
  --enable-fribidi 
--with-fribidi-config-path=/usr/local/wince/contrib-xscale/bin \
  --enable-livedotcom --with-livedotcom-tree=/usr/win32/live.com \
  --build=i686-pc-linux-gnu --host=arm-wince-pe --target=arm-wince-pe

I hope this helps.

Gtz,
Jean-Paul Saman.

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 5461 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20060515/deff8c4c/attachment.bin>


More information about the vlc mailing list