[vlc] Re: How to compile VLC for Wince
#PHANG CHEE WOH,DERRICK#
PHAN0004 at ntu.edu.sg
Tue May 16 04:13:58 CEST 2006
Hi,
I have tried to the build configuration as given but I still experience other problems. One of the main things that I notice is that during the check for the C compiler default output file name, the C compiler cannot create executeables. This is despite having installed the contrib-20050220-wince-xscale-bin.tar, and wince-arm-gcc4.0.0-cvs-linux-crosscompiler-20050517.tar
Can anyone please advise me as to what is the matter? Attached is a copy of the config log file.
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: 17123 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20060516/33f4e53f/attachment.bin>
More information about the vlc
mailing list