Cross-compiling for iPaq fails in new buildsystem.

Jean-Paul Saman jpsaman at wxs.nl
Sat Sep 7 16:40:01 CEST 2002


I just got it working again. The flag --with-tuning=strongarm1100 is not 
enough anymore. The complete ./configure syntax should be used for 
cross-compiling, with other words passing --host=arm-linux to the 
./configure script did the trick.


Jean-Paul Saman wrote:
> I get the following errors when trying to cross-compile vlc CVS for iPaq.
> 
> configure: error: C compiler cannot create executables
> make: *** [build-stamp] Error 77
> 
> BTW I ran ./bootstrap like in a native compile. I guess it doesnot 
> consider cross-compilations.
> 
> How come ./configure now figures that the C compiler is not capable of 
> generating executables?
> 
> Greetings,
> Jean-Paul Saman.
> 
> 
> ------------------------------------------------------------------------
> 
> ./configure --mandir=${prefix}/share/man \
> 	--infodir=${prefix}/share/info \
> 	--enable-release --prefix=/usr --disable-gtk --disable-gnome --disable-qt --disable-kde --enable-fb --enable-sdl --disable-xvideo --disable-dvd --disable-dvdread --disable-vcd --disable-maxosx --disable-plugins --enable-mad --enable-ffmpeg --with-tuning=strongarm1100 --x-includes=/skiff/local/arm-linux/include --x-libraries=/skiff/local/arm-linux/lib/X11 --with-mad=/usr/local/arm/2.95.3/arm-linux --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/bin --with-sdl=/usr/local/arm/2.95.3/arm-linux --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets ${MAKE}... yes
> checking for gcc... arm-linux-gcc
> checking for C compiler default output... 
> 
> 
> ------------------------------------------------------------------------
> 
> #!/usr/bin/make -f
> # debian/rules for the VideoLAN Client - uses debhelper.
> # based on Joey Hess's one.
> # Kludged for ipkg
> 
> # export PATH="$PATH:/usr/local/arm/2.95.3/bin"
> # Compilation options
> export CC=arm-linux-gcc
> export LD=arm-linux-ld
> export AR=arm-linux-ar
> export RANLIB=arm-linux-ranlib
> export STRIP=arm-linux-strip
> export CONFIG_FLAGS="--enable-release --prefix=/usr --disable-gtk --disable-gnome --disable-qt --disable-kde --enable-fb --enable-sdl --disable-xvideo --disable-dvd --disable-dvdread --disable-vcd --disable-maxosx --disable-plugins --enable-mad --enable-ffmpeg --with-tuning=strongarm1100 --x-includes=/skiff/local/arm-linux/include --x-libraries=/skiff/local/arm-linux/lib/X11 --with-mad=/usr/local/arm/2.95.3/arm-linux --with-sdl-config-path=/usr/local/arm/2.95.3/arm-linux/bin --with-sdl=/usr/local/arm/2.95.3/arm-linux --with-ffmpeg-tree=/home/jpsaman/iPaq/src/ffmpeg"
> export VIDDIR="usr/share/videolan"
> export PIXDIR="usr/share/pixmaps"
> #export DESTDIR=/tmp/vlc
> export DESTDIR=/home/jpsaman/iPaq/packages/vlc
> 
> build: build-stamp
> build-stamp:
> 	./configure --mandir=$${prefix}/share/man \
> 		--infodir=$${prefix}/share/info \
                 --host=arm-linux \
> 		$(shell echo $(CONFIG_FLAGS))
> 
> # This is ugly -- I know
> 	patch -p 0 < ipkg/patch
> 
> 	$(MAKE)
> 
> 	touch build-stamp
> 
> clean:
> 	rm -f build-stamp
> 
> 	-$(MAKE) distclean
> 
> install: build
> 	mkdir -p ${DESTDIR}/CONTROL
> 	mkdir -p $(DESTDIR)/usr/bin
> 	$(STRIP) vlc
> 	cp ipkg/control $(DESTDIR)/CONTROL
> 	cp vlc $(DESTDIR)/usr/bin
> 
> .PHONY: build clean install
> 



-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list