[vlc] Re: How to compile VLC for Wince

#PHANG CHEE WOH,DERRICK# PHAN0004 at ntu.edu.sg
Fri May 12 02:32:00 CEST 2006


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.
Anyway, are these files not generated by the make process?

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:
./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" \ 
LDFLAGS="-L/usr/local/wince/cross-tools/lib" \ 
LDFLAGS="-L/usr/local/wince/contrib-xscale/lib" \ 
CC="arm-wince-pe-gcc -mcpu=xscale" \ 
./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 that anyone can get back to me soon as I am required to reproduce the program by next week.

I thank Sigmund once again for volunteering his assistance.

Sincerely,
Derrick




-----Original Message-----
From: vlc-bounce at videolan.org on behalf of Sigmund Augdal Helberg
Sent: Thu 5/11/2006 2:25 PM
To: vlc at videolan.org
Subject: [vlc] Re: How to compile VLC for Wince
 
On Thu, 2006-05-11 at 07:50 +0800, #PHANG CHEE WOH,DERRICK# wrote:
> Hi, 
> 
> (Sorry if this email is repeated because I didn't seem to send out this email the last time)
> 
> 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 configure process right. Can anyone please help me?
> 
> The original configure suggested in install.wince is 
> 
> ./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" \ 
> LDFLAGS="-L/usr/local/wince/cross-tools/lib" \ 
> LDFLAGS="-L/usr/local/wince/contrib-xscale/lib" \ 
> CC="arm-wince-pe-gcc -mcpu=xscale" \ 
>    ../configure --host=arm-wince-pe --target=arm-wince-pe \ 
>     --build=i686-linux --prefix=/usr/local/wince \ 
>     --disable-sdl --disable-gtk --disable-dvdnav --disable-dvdread \ 
>     --disable-nls --disable-sout --disable-vlm --disable-wxwindows \ 
>     --disable-a52 --disable-libmpeg2 --disable-freetype --disable-fribidi \ 
>     --disable-mad --disable-plugins --enable-optimize-memory \ 
>     --with-freetype-config-path=/usr/local/wince-xscale/bin \ 
>     --with-fribidi-config-path=/usr/local/wince-xscale/bin \ 
>     --enable-tremor --enable-faad 
> 
> My observations from the file so far. 
> 
> 1. It should be ./configure not ../configure 
> 
> 2. The order may be --build --host --target instead of host target build 
> 
> 3. The build host and target should be specified at the end instead of before specifying what to disable. 
> 
> 4. The config path for freetype and fribidi probably should be 
> /usr/local/wince/contrib-xscale/bin instead. 
> 
> 5. The build is more likely to be build=i686-pc-linux-gnu 
> 
> Below is a copy of my install.wince 
> 
> ./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" \ 
> LDFLAGS="-L/usr/local/wince/cross-tools/lib" \ 
> LDFLAGS="-L/usr/local/wince/contrib-xscale/lib" \ 
> CC="arm-wince-pe-gcc -mcpu=xscale" \ 
> ./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 
> 
> However, I am still encountering other problems which prevent me from doing the make. 
> 
> The problems are 
> 
> 1. The configure process cannot find the ffmpeg and faad even though I can find them in one of the subdirectories within cygwin. 
> 
> So I disabled both of them. 
> 
> 2. My next problem is experienced during make. It appears that make experience 
> other problems even if configure is done successfully. 
> 
> The last few lines of the make process are: 
> 
> make[4]: ***[libaccess_file_a-file.o] Error 1 
> make[4]: Leaving directory '/home/owner/vlc-0.8.4a/modules/access' 
> make[3]: ***[all-modules] Error 1 
> make[3]: Leaving directory '/home/owner/vlc-0.8.4a/modules/access' 
> make[2]: ***[all-recursive] Error 1 
> make[2]: Leaving directory '/home/owner/vlc-0.8.4a/modules' 
> make[1]: ***[all-recursive] Error 1 
> make[1]: Leaving directory '/home/owner/vlc-0.8.4a' 
> make: ***[all] Error 2 
It would be better if you included the error message. That would be the
last couple of lines directly above what you included.
> 
> Has this got to do with my configure process? 
Most likely not. Most likely some problem has sneaked into the code
preventing it from building on wince. With the proper error message this
could (hopefully) be fixed.

Regards

Sigmund


-- 
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: 5943 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20060512/c3c1f3da/attachment.bin>


More information about the vlc mailing list