Cross-compiling for windows under linux Debian
Posted: 10 Mar 2009 19:26
Hello, i'm trying to cross-compile vlc for windows under Debian (lenny) because i need the amr support.
I hope that this is the correct section : )
I readed this howto : http://wiki.videolan.org/Win32Compile
I installed mingw32 with the command "apt-get install mingw32 mingw32-binutils" and downloaded the source code, i readed the file "extra/contrib/README" and i modified the config.mak and distro.mak for AMR support.
Then i used the command "CONTRIBS_RELEASE=sexy ./bootstrap i586-pc-win32" to configure the libraries.
When i type in the extra/contrib directory "make src" or "make bin" he says :
/vlc-0.9.8a/vlc-0.9.8a/extras/contrib$ make bin
make: *** No rule to make target `bin'. Stop.
At this point i tried to type "make" and the terminal say:
/vlc-0.9.8a/vlc-0.9.8a/extras/contrib$ make
make -C src
make[1]: Entering directory `/home/barrett/Desktop/vlc-amr/vlc-0.9.8a/vlc-0.9.8a/extras/contrib/src'
(cd libiconv; CC="i586-pc-win32-gcc" CXX="i586-pc-win32-g++" LD="i586-pc-win32-ld" RANLIB="i586-pc-win32-ranlib" AR="i586-pc-win32-ar" STRIP="i586-pc-win32-strip" ./configure --target=i586-pc-win32 --host=i586-pc-win32 --build=i486-linux-gnu --program-prefix="" --prefix=/home/barrett/Desktop/vlc-amr/vlc-0.9.8a/vlc-0.9.8a/extras/contrib --disable-nls && make && make install)
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 i586-pc-win32-strip... i586-pc-win32-strip
checking whether make sets $(MAKE)... (cached) yes
checking for i586-pc-win32-gcc... i586-pc-win32-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [.iconv] Error 77
make[1]: Leaving directory `/home/barrett/Desktop/vlc-amr/vlc-0.9.8a/vlc-0.9.8a/extras/contrib/src'
make: *** [all] Error 2
i pasted the config.log file : http://rafb.net/p/GT9Lpy54.html
Sorry for my bad english.
Thanks in advance for the help.
I hope that this is the correct section : )
I readed this howto : http://wiki.videolan.org/Win32Compile
I installed mingw32 with the command "apt-get install mingw32 mingw32-binutils" and downloaded the source code, i readed the file "extra/contrib/README" and i modified the config.mak and distro.mak for AMR support.
Then i used the command "CONTRIBS_RELEASE=sexy ./bootstrap i586-pc-win32" to configure the libraries.
When i type in the extra/contrib directory "make src" or "make bin" he says :
/vlc-0.9.8a/vlc-0.9.8a/extras/contrib$ make bin
make: *** No rule to make target `bin'. Stop.
At this point i tried to type "make" and the terminal say:
/vlc-0.9.8a/vlc-0.9.8a/extras/contrib$ make
make -C src
make[1]: Entering directory `/home/barrett/Desktop/vlc-amr/vlc-0.9.8a/vlc-0.9.8a/extras/contrib/src'
(cd libiconv; CC="i586-pc-win32-gcc" CXX="i586-pc-win32-g++" LD="i586-pc-win32-ld" RANLIB="i586-pc-win32-ranlib" AR="i586-pc-win32-ar" STRIP="i586-pc-win32-strip" ./configure --target=i586-pc-win32 --host=i586-pc-win32 --build=i486-linux-gnu --program-prefix="" --prefix=/home/barrett/Desktop/vlc-amr/vlc-0.9.8a/vlc-0.9.8a/extras/contrib --disable-nls && make && make install)
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 i586-pc-win32-strip... i586-pc-win32-strip
checking whether make sets $(MAKE)... (cached) yes
checking for i586-pc-win32-gcc... i586-pc-win32-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [.iconv] Error 77
make[1]: Leaving directory `/home/barrett/Desktop/vlc-amr/vlc-0.9.8a/vlc-0.9.8a/extras/contrib/src'
make: *** [all] Error 2
i pasted the config.log file : http://rafb.net/p/GT9Lpy54.html
Sorry for my bad english.
Thanks in advance for the help.