backbone.ws

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
develop:win32:mingw32_installation [2015/02/22 14:03] kolandevelop:win32:mingw32_installation [2017/12/23 16:34] (current) – pacman -Sy pacman removed kolan
Line 1: Line 1:
 +<note important>
 +The article currently is obsolete. I think pacman is better (but requires >= win6.0) https://msys2.github.io/.
 +<code bash | MSYS installation steps>
 +pacman -Syu
 +pacman -Su
 +
 +# 64-bit
 +pacman -S mingw-w64-x86_64-toolchain
 +pacman -S mingw-w64-x86_64-glib2
 +pacman -S mingw-w64-x86_64-gtk3
 +pacman -S mingw-w64-x86_64-vala
 +pacman -S mingw-w64-x86_64-libgee
 +pacman -S mingw-w64-x86_64-perl
 +pacman -S make mingw-w64-x86_64-cmake
 +
 +# 32-bit
 +pacman -S mingw-w64-i686-toolchain
 +pacman -S mingw-w64-i686-glib2
 +pacman -S mingw-w64-i686-gtk3
 +pacman -S mingw-w64-i686-vala
 +pacman -S mingw-w64-i686-libgee
 +pacman -S make mingw-w64-i686-cmake
 +pacman -S mingw-w64-i686-perl
 +
 +# examples
 +valac -C --pkg gtk+-3.0 hello.vala
 +gcc `pkg-config --cflags gtk+-3.0` hello.c `pkg-config --libs gtk+-3.0`
 +</code>
 +
 +Create shortcuts **c:\msys64\msys2_shell.cmd -mingw64** for 64bit environment,
 +**c:\msys64\msys2_shell.cmd -mingw32** for 32bit environment under 64bit system
 +and **c:\msys32\msys2_shell.cmd -mingw32** for 32bit environment under 32bit system only.
 +
 +</note>
 +
 I've just found [[http://www.0x00.to/post/2013/12/14/Compile-and-run-Vala-on-Windows-using-MinGW-builds|Nice Manual Page]] how to install latest MinGW/GTK+3.0/Vala-git instruments under windows. I've just found [[http://www.0x00.to/post/2013/12/14/Compile-and-run-Vala-on-Windows-using-MinGW-builds|Nice Manual Page]] how to install latest MinGW/GTK+3.0/Vala-git instruments under windows.
  
 I'll make a copy-paste of the page to prevent deletion. I'll make a copy-paste of the page to prevent deletion.
  
-  - Download MinGW-w64 from [[http://sourceforge.net/projects/mingwbuilds/|http://sourceforge.net/projects/mingwbuilds/]].+  - Download MinGW-w64 from [[http://sourceforge.net/projects/mingw-w64/|http://sourceforge.net/projects/mingw-w64/]].
   - Run "mingw-w64-install.exe", select "x32" or "i686" as Architecture, "win32" as Threads and "sjlj" as Exception: {{ :develop:win32:image.axd.png?direct |}}   - Run "mingw-w64-install.exe", select "x32" or "i686" as Architecture, "win32" as Threads and "sjlj" as Exception: {{ :develop:win32:image.axd.png?direct |}}
   - Continue installation, I placed my to "C:\mingw-w64".   - Continue installation, I placed my to "C:\mingw-w64".
Line 12: Line 47:
   - Download the latest source tarball from [[https://wiki.gnome.org/Projects/Vala/Release|https://wiki.gnome.org/Projects/Vala/Release]] and extract it to "C:\mingw-w64\mingw32\msys\home\{Your Username}".   - Download the latest source tarball from [[https://wiki.gnome.org/Projects/Vala/Release|https://wiki.gnome.org/Projects/Vala/Release]] and extract it to "C:\mingw-w64\mingw32\msys\home\{Your Username}".
   - Run the Mintty shortcut you created in step 7 and switch with "cd" to the vala source directory.   - Run the Mintty shortcut you created in step 7 and switch with "cd" to the vala source directory.
 +  - Run "ln -s /mingw/bin/gcc /mingw/bin/cc" since valac requires cc command instead of gcc;
 +  - Run "rm $SYSTEMROOT/system32/zlib1.dll because of it is incompatible with the toolchain;
   - Now you should be able to run the fallowing three commands without any issues: <code bash | Building and installing Vala>./configure --prefix=/mingw --host=i686-w64-mingw32   - Now you should be able to run the fallowing three commands without any issues: <code bash | Building and installing Vala>./configure --prefix=/mingw --host=i686-w64-mingw32
 make make