Home (autres pages) Léa Linux TrustOn Me OpenVPN French Linux Doc Project

Packages

Preparation

Directories structure

c:\> mkdir vala-build
c:\> cd vala-build
c:\vala-build> mkdir vala
c:\vala-build> mkdir vala-src
c:\vala-build> mkdir mingw
c:\vala-build> mkdir msys
c:\vala-build> mkdir build

MingW installation

c:\vala-build> cd mingw

We need to download some packages from http://sourceforge.net/projects/mingw/files/

binutils-2.22-1-mingw32-bin
gcc-core-4.6.2-1-mingw32-bin
libgmp-5.0.1-1-mingw32-dll-10
libiconv-1.14-2-mingw32-dev
libiconv-1.14-2-mingw32-dll-2
libintl-0.18.1.1-1-msys-1.0.17-dll-8
libmpc-0.8.1-1-mingw32-dll-2
libmpfr-2.4.1-1-mingw32-dll-1
pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev
w32api-3.17-2-mingw32-dev

So you could use these commands :

c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MinGW/Base/binutils/binutils-2.22/binutils-2.22-1-mingw32-bin.tar.lzma/download
c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/gcc-4.6.2-1/gcc-core-4.6.2-1-mingw32-bin.tar.lzma/download
c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MinGW/Base/gmp/gmp-5.0.1-1/libgmp-5.0.1-1-mingw32-dll-10.tar.lzma/download
c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MinGW/Base/libiconv/libiconv-1.14-2/libiconv-1.14-2-mingw32-dev.tar.lzma/download
c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MinGW/Base/libiconv/libiconv-1.14-2/libiconv-1.14-2-mingw32-dll-2.tar.lzma/download
c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MSYS/Base/gettext/gettext-0.18.1.1-1/libintl-0.18.1.1-1-msys-1.0.17-dll-8.tar.lzma/download
c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MinGW/Base/mpc/mpc-0.8.1-1/libmpc-0.8.1-1-mingw32-dll-2.tar.lzma/download
c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MinGW/Base/mpfr/mpfr-2.4.1-1/libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma/download
c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MinGW/Base/pthreads-w32/pthreads-w32-2.9.0-pre-20110507-2/pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma/download
c:\vala-build\mingw> wget http://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/w32api-3.17/w32api-3.17-2-mingw32-dev.tar.lzma/download

I use 7Zip to extract all files archived in c:\vala-build\mingw directory :

c:\vala-build\mingw> dir
bin
include
lib
libexec

MSYS installation

Ok go to msys directory, download msysCORE-1.0.17-1-msys-1.0.17-bin and extract with 7Zip.

c:\vala-build\mingw> cd ..\msys
c:\vala-build\msys> wget http://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.17-1/msysCORE-1.0.17-1-msys-1.0.17-bin.tar.lzma/download

Vala source code installation

c:\vala-build\mingw> cd ..\vala-src
c:\vala-build\vala-src>

Download lastest release from https://live.gnome.org/Vala/Release and extract.


Vala compiler installation

Easy... download http://vala-win32.googlecode.com/files/vala-0.12.0.exe and install in c:\vala-build\vala


MSYS Configuration

Ok now we need to adjust msys configuration.

Edit c:\vala-build\msys\etc\fstab to :

C:/vala-build/mingw /mingw
C:/vala-build/vala /vala
C:/vala-build/vala-src /vala-src
C:/vala-build/mingw/lib /usr/lib
C:/vala-build/build /build

Edit c:\vala-build\msys\etc\profile and change these lines (I made it simple ;) ):

export PATH="/usr/bin:/bin:/usr/local/bin:/vala/bin:/mingw/bin:."

# if [ $MSYSTEM == MINGW32 ]; then
# export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
# else
# export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
# fi

And now, just double click on msys.bat

Compilation

To avoid sys/wait.h fatal error "not found" when compiling, I use --disable-vapigen option.

my_machine# cd /vala-src
my_machine:/vala-src# ./configure --prefix=/build --disable-vapigen
(...)
my_machine:/vala-src# make
(...)
my_machine:/vala-src# make install

And that's all... If you want to test your new fresh install, just change PATH variable.

Me contacter | ©2004-2005 Raum