Difference between revisions of "Dev:IDE Windows"

From Synfig Studio :: Documentation
Jump to: navigation, search
(Creation of the page, install of Git, Clone the code)
 
m (Some additions)
Line 47: Line 47:
 
If you already installed Git, you can skip this section.
 
If you already installed Git, you can skip this section.
  
Visit the original website [[https://git-for-windows.github.io/|https://git-for-windows.github.io/]] and click on the big download button.<br />
+
Visit the original website https://git-for-windows.github.io/ and click on the big download button. If you don't see it, go and see an ophthalmologist :P<br />
 
You will be redirected on the GitHub page with the last version, offered as 32 and 64bit.
 
You will be redirected on the GitHub page with the last version, offered as 32 and 64bit.
  
Line 101: Line 101:
 
exit
 
exit
 
</pre>
 
</pre>
 +
 +
=== Download and install Cygwin ===
 +
 +
Download Cygwin setup binary (http://www.cygwin.com/).<br />
 +
Save it into ''C:\synfig-build\cygwin-dist\'' directory.
 +
 +
Run Cygwin setup (with administrator rights) and install with the default parameters.<br />
 +
It should be intalled in ''C:\cygwin''.
 +
 +
=== Download and install NSIS ===
 +
 +
Download and install NSIS '''''>=3.0''''' (http://nsis.sourceforge.net/).<br />
 +
Don't use ''2.46'', it will fail!<br />
 +
Install it full into ''C:\synfig-build\NSIS\'' directory.
 +
 +
=== You plan to build 64-bit version? You need 7zip ===
 +
For the 64-bit build only!
 +
Download and install 7zip (''http://downloads.sourceforge.net/sevenzip/7z920-x64.msi'').<br />
 +
Install into ''C:\synfig-build\7zip\'' directory.
 +
 +
=== First build ! ===
 +
Be aware that it was downloading components and compiling during about one hour for me.<br />
 +
It depends on you bandwith, the speed of your computer and hard disk type!<br />
 +
But it should be only for this first build if you follow it carefully :)
 +
 +
Open Cygwin console (with administrator privileges) and run the build script:<br />
 +
<pre>bash C:/synfig-build/synfig/autobuild/synfigstudio-cygwin-mingw-build.sh</pre>
 +
 +
You can go and take a coffee (or a cocoa, depending on your age ;) )<br />
 +
Installation bundle will be written to ''C:\synfig-build\''
 +
 +
== Netbeans from Windows ==
 +
 +
(Tested with Netbeans 8.0.2)
 +
What Netbeans is?
 +
Done following the video tutorial made by Konstantin Dmitriev (in russian ;)) and adapted for Windows.
 +
Assuming the source will be installed in C:\synfig-build\synfig\ as expected.

Revision as of 19:01, 22 August 2015

Want to setup an IDE to debug / develop synfig ? (under Windows)

Here, we will not discuss of witch IDE is better or if real hacker do all with vi/emacs

Install GIT, other tools and clone the code

Clone the code my dear

This assume you read the section "Clone the code from git"
note end


Before to setup any IDE, you will have to prepare the synfig-build environment under Windows. It requires administrator rights.

Here is the original "Usage notes" from synfigstudio-cygwin-mingw-build.sh (by Konstantin Dmitriev). We will follow it step-by-step!

# * Download and install Git (http://msysgit.github.io/).
# * Open Git Bash and execute following commands:
# ** mkdir C:\synfig-build
# ** cd C:\synfig-build
# ** git clone https://github.com/synfig/synfig.git
# ** mkdir cygwin-dist
# ** cd synfig
# ** git config --global core.autocrlf input
# ** exit
# * Download Cygwin setup binary (http://www.cygwin.com/) and save it into C:\synfig-build\cygwin-dist\ directory.
# * Run Cygwin setup and install with the default parameters.
# * Download and install NSIS >=3.0 (http://nsis.sourceforge.net/). Install into C:\synfig-build\NSIS\ directory.
# * (64-bit build only!) Download and install 7zip (http://downloads.sourceforge.net/sevenzip/7z920-x64.msi). Install into C:\synfig-build\7zip\ directory.
# * Open Cygwin console (with administrator previlegies) and run the build script:
# ** bash C:/synfig-build/synfig/autobuild/synfigstudio-cygwin-mingw-build.sh
# * Installation bundle will be written to C:\synfig-build\
#
#
# = Other notes =
# * Builds from current repository, current revision. So you should manually checkout the desired revision to build
# * Executing script without arguments makes a full clean build and produces installer package
# * You can pass arguments to the script to invoke particular stage. 
#	Available stages: mkprep, mketl, mksynfig, mksynfigstudio, mkpackage
#	Example: 
#		synfigstudio-cygwin-mingw-build.sh mkpackage
# * You can pass a custom command to be invoked in the build environment.
#	Example (executes make with respect to the build environment):
#		synfigstudio-cygwin-mingw-build.sh make -j2

Warning! Your attention please!

Be aware that the lines with ** have to be executed in Git Bash. If you don't, you will meet some nasty side-effects during the first build and you may lose your sanity!
note end


Download and install Git

If you already installed Git, you can skip this section.

Visit the original website https://git-for-windows.github.io/ and click on the big download button. If you don't see it, go and see an ophthalmologist :P
You will be redirected on the GitHub page with the last version, offered as 32 and 64bit.

You will install it with (most of) the default values, like on the screenshots below (featuring my mouse cursor as a Guest Star).

1.
Welcome Screen.
Press Next.
GitWinSetup 01.png
2.
GNU GPL License Notice.
Press Next.
GitWinSetup 02.png
3.
In this page, you should check everything.
Press Next.
GitWinSetup 03.png
4.
Choose "Use Git from Git Bash only".
It would permit you to avoid some mess with other tools.
Press Next.
GitWinSetup 04.png
5.
Choose "Checkout Windows-style, commit Unix-style line endings".
Press Next.
GitWinSetup 05.png
6.
Choose "Use MiniTTY".
It has more possibilities.
Press Next
GitWinSetup 06.png
7.
Let this one unchecked.
It doesn't take so much time anyway.
Press Next.
GitWinSetup 07.png
8.
Uncheck this one, no need to read.
Press Finish.
GitWinSetup 08.png

Clone the Code

Start Git Bash as Administrator and type exactly all the following commands at the prompt.
If you don't, you will notice it soon!

mkdir C:\synfig-build
cd C:\synfig-build
git clone https://github.com/synfig/synfig.git
mkdir cygwin-dist
cd synfig
git config --global core.autocrlf input
exit

Download and install Cygwin

Download Cygwin setup binary (http://www.cygwin.com/).
Save it into C:\synfig-build\cygwin-dist\ directory.

Run Cygwin setup (with administrator rights) and install with the default parameters.
It should be intalled in C:\cygwin.

Download and install NSIS

Download and install NSIS >=3.0 (http://nsis.sourceforge.net/).
Don't use 2.46, it will fail!
Install it full into C:\synfig-build\NSIS\ directory.

You plan to build 64-bit version? You need 7zip

For the 64-bit build only! Download and install 7zip (http://downloads.sourceforge.net/sevenzip/7z920-x64.msi).
Install into C:\synfig-build\7zip\ directory.

First build !

Be aware that it was downloading components and compiling during about one hour for me.
It depends on you bandwith, the speed of your computer and hard disk type!
But it should be only for this first build if you follow it carefully :)

Open Cygwin console (with administrator privileges) and run the build script:

bash C:/synfig-build/synfig/autobuild/synfigstudio-cygwin-mingw-build.sh

You can go and take a coffee (or a cocoa, depending on your age ;) )
Installation bundle will be written to C:\synfig-build\

Netbeans from Windows

(Tested with Netbeans 8.0.2) What Netbeans is? Done following the video tutorial made by Konstantin Dmitriev (in russian ;)) and adapted for Windows. Assuming the source will be installed in C:\synfig-build\synfig\ as expected.