[vlc] Re: Compiling Videolan for WinCE
#PHANG CHEE WOH,DERRICK#
PHAN0004 at ntu.edu.sg
Tue May 23 02:32:26 CEST 2006
Hi,
I have tried to redo the build with the configurations as specified but I am still encountering other problems. I think the main issue may be that the configure process cannot find the c compiler. This is despite having installed the cross-tools and contrib-xscale in /usr/local/wince.
The essence of the issue is as shown below:
configure:2559: arm-wince-pe-gcc --version </dev/null >&5
/usr/local/wince/cross-tools/bin/arm-wince-pe-gcc: /usr/local/wince/cross-tools/bin/arm-wince-pe-gcc: cannot execute binary file
configure:2562: $? = 126
configure:2564: arm-wince-pe-gcc -v </dev/null >&5
/usr/local/wince/cross-tools/bin/arm-wince-pe-gcc: /usr/local/wince/cross-tools/bin/arm-wince-pe-gcc: cannot execute binary file
configure:2567: $? = 126
configure:2569: arm-wince-pe-gcc -V </dev/null >&5
/usr/local/wince/cross-tools/bin/arm-wince-pe-gcc: /usr/local/wince/cross-tools/bin/arm-wince-pe-gcc: cannot execute binary file
configure:2572: $? = 126
configure:2595: checking for C compiler default output file name
configure:2598: arm-wince-pe-gcc -D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include
-I/usr/local/wince/contrib-xscale/include -mcpu=xscale -L/usr/local/wince/cross-tools/lib
-L/usr/local/wince/contrib-xscale/lib conftest.c >&5
/usr/local/wince/cross-tools/bin/arm-wince-pe-gcc: /usr/local/wince/cross-tools/bin/arm-wince-pe-gcc: cannot execute binary file
configure:2601: $? = 126
What may be the issue? The cross-tools not installed properly, the cross-tools archive not being fully valid or is it just a matter or specifiying the configuration?
Can you get back to me? Thanks.
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,
>
> 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: 5401 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20060523/d65f1d49/attachment.bin>
More information about the vlc
mailing list