[vlc-devel] [Royer Julien <Julien.Royer at nagra.fr>] problem to cross-compile to wince Arm plateform

System administration admin at via.ecp.fr
Tue Aug 23 21:12:01 CEST 2005


 The deleted attachment is at:
    <http://www.videolan.org/~admin/20050823-videolan/last_error.txt>

----- Forwarded message from Royer Julien <Julien.Royer at nagra.fr> -----

From: Royer Julien <Julien.Royer at nagra.fr>
Date: Tue, 23 Aug 2005 19:13:46 +0200
To: vlc-devel at videolan.org
Subject: problem to cross-compile to wince Arm plateform
X-Spam-Status: No, score=0.6 required=5.0 tests=RCVD_IN_ORBS,SUPERLONG_LINE 
	autolearn=no version=3.0.3


Hello, 


Thanks for the great support you give.


I hope I'm not asking "stupid questions".... I would like to know if someone can help me on this problem :


I'm trying to cross-compile VLC under linux to wince (ARM).

I found using your vlc developer's website the "tutorial" :
https://trac.videolan.org/vlc/file/trunk/INSTALL.wince

The cross compiler :
http://download.videolan.org/pub/testing/wince/wince-arm-gcc4.0.0-cvs-linux-crosscompiler-20050517.tar.tar

And the additional lib :
http://download.videolan.org/pub/testing/wince/contrib-20050220-wince-xscale-bin.tar.tar



As I can't use the path \usr\local\... (no root access on my linux session)


I changed the parameters to configure the build as followed : (changes marked with " ==>" )

-----------------------------------------------------------------------------------------------

	./bootstrap &&
==>	PATH=/opt/softs/compilers/wince/arm_gcc_4.0.0/bin:$PATH \

==>	CFLAGS="-D__stdcall= -D_OFF_T_ -I/opt/softs/compilers/wince/arm_gcc_4.0.0/include" \
==>	CFLAGS="$CFLAGS -I/opt/softs/compilers/wince/arm_gcc_4.0.0/contrib-xscale/include \
                -I/opt/softs/compilers/wince/arm_gcc_4.0.0/contrib-xscale/include/ffmpeg \
                -I/opt/softs/compilers/wince/arm_gcc_4.0.0/contrib-xscale/include/ogg \
                -I/opt/softs/compilers/wince/arm_gcc_4.0.0/contrib-xscale/include/dvbpsi " \

	LDFLAGS="-L/opt/softs/compilers/wince/arm_gcc_4.0.0/lib" \

at this next line : "$LDFLAGS was added not to erase the previous line and the path was changed also

==>	LDFLAGS="$LDFLAGS -L/opt/softs/compilers/wince/arm_gcc_4.0.0/contrib-xscale/lib" \

	CC="arm-wince-pe-gcc -mcpu=xscale" \
	   ./configure --host=arm-wince-pe --target=arm-wince-pe \
	    --build=i686-linux --prefix=/a/home.users/jroyer/VLC/build \
	    --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=/opt/softs/compilers/wince/arm_gcc_4.0.0/wince-xscale/bin \
	    --with-fribidi-config-path=/opt/softs/compilers/wince/arm_gcc_4.0.0/wince-xscale/bin \
	    --enable-tremor --disable-faad \
	    --disable-ogg --disable-ffmpeg

-------------------------------------------------------------------------------------------------




My first problem is the " preprocessor rejected the configure "


autotools/config.rpath: autotools/config.rpath: No such file or directory
Package hal was not found in the pkg-config search path.
Perhaps you should add the directory containing `hal.pc'
to the PKG_CONFIG_PATH environment variable
No package 'hal' found
configure: WARNING: HAL library not found
configure: WARNING: ogg/ogg.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: ogg/ogg.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf at gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf at gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
configure: error: Missing header file ffmpeg/avcodec.h.




I added first those to lines (see above) :

                -I/opt/softs/compilers/wince/arm_gcc_4.0.0/contrib-xscale/include/ffmpeg \
                -I/opt/softs/compilers/wince/arm_gcc_4.0.0/contrib-xscale/include/ogg \

But it changed nothing




So I decided to disable them (ffmpeg , oog, and faad )

    --disable-faad \
    --disable-ogg --disable-ffmpeg



I restarted the configure which then gone fine :

parse for all configure.ac 				done
Makefile.am file						done
create  m4/private.m4 from configure.ac		done
.
.
.
.


And then I had this last problem : 

/a/opt.softs/compilers/wince/arm_gcc_4.0.0/bin/../lib/gcc/arm-wince-pe/4.1.0/../../../../arm-wince-pe/bin/ld: cannot find -lws
2
collect2: ld returned 1 exit status
make[2]: *** [vlc.exe] Error 1
make[2]: Leaving directory `/a/home.users/jroyer/VLC/vlc-0.8.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/a/home.users/jroyer/VLC/vlc-0.8.2'
make: *** [all] Error 2


==> I added more lines in the "last_error.txt" text file.

I checked many times the used path through the process, I checked that the required files ws2, ffmpeg/avcodec.h ... were present and "readable"...


At least, I would like to get the source of the cross compiler to install it properly, it's writen on the "tutorial" that the source should be at the adress :http://download.videolan.org/pub/testing/wince/  but I can't see it. there is another link to try ?


Could you tell me if I'm totally wrong somewhere or if I need to give more information on something...


Thanks to everyone for your help in advance.


Julien




--
This message and any attachments (the "message") is intended solely for the
addressees and is confidential. If you receive this message in error, please
delete it and immediately notify the sender.
Any use not in accordance with its purpose, any dissemination or disclosure,
either whole or partial, is prohibited except formal approval.
The E-Mail transmission can not guarantee the integrity of this message.
NAGRA FRANCE will not therefore be liable for the message if modified.





----- End forwarded message -----

-- 
System administration <admin at via.ecp.fr>
VIA, Ecole Centrale Paris, France

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



More information about the vlc-devel mailing list