Difference between revisions of "Dev:IDE Linux"

From Synfig Studio :: Documentation
Jump to: navigation, search
m (First build !: typo 3)
m (Add Anjuta as IDE)
Line 4: Line 4:
  
 
''Here, we will not discuss of witch IDE is better or if real hacker do all with vi/emacs''
 
''Here, we will not discuss of witch IDE is better or if real hacker do all with vi/emacs''
 +
 +
== Anjuta from gnu/linux ==
 +
[http://anjuta.org/ What Anjuta is?]
 +
=== First build !===
 +
 +
This will generate all needed makefile
 +
 +
* Open {{Literal|autobuild/synfigstudio-linux-build.sh}} and change {{Literal|<nowiki>DEBUG=</nowiki>0}} to {{Literal|<nowiki>DEBUG=1</nowiki>}} (line 74)
 +
* Build from {{Literal|autobuild/synfigstudio-linux-build.sh}}
 +
* During this time install {{Literal|anjuta}} from synaptic or whatever ... (from xubuntu 14.10 you must instal Anjuta 3.14 from this [https://launchpad.net/~inizan-yannick/+archive/ubuntu/development ppa] for example : see [https://bugzilla.gnome.org/show_bug.cgi?id=728295#c17 here] why)
 +
 +
when anjuta installed and synfig builded....
 +
 +
=== Import synfig (etl / core / studio) projects in Anjuta ===
 +
 +
* Open Anjuta, in {{Literal|Action}} choose {{Literal|Import a project}} and choose your code location (synfig/ETL , synfig/synfig-core or synfig/synfig-studio)
 +
* Select a project name and Import
 +
* At the project backend choice, select {{Literal|Autotools}} and go for it (if you keept the default project name, replace the existing project with the new one)
 +
* Wait a minute ... project loaded !
 +
 +
Repeat for each synfig project
 +
 +
''Your now able to build from Anjuta.''
 +
 +
=== Want to debug maybe ?===
 +
 +
* From Anjuta {{c|<Menu>|<Execute>|<Program Paramter>|Program}} : select synfig-studio binary {{Literal|/home/user/synfig/bin}} (i also setup the working directory)
 +
* Now you need to clean the project and build it again (but this time from anjuta)
 +
* Anjuta {{c|<Menu>|<Build>|Clean}}
 +
* Anjuta {{c|<Menu>|<Build>|Build}}
 +
 +
''you (shouldbe) are ready to debug / improve / patch and share !''
  
 
== Eclipse from gnu/linux ==
 
== Eclipse from gnu/linux ==
 +
[http://eclipse.org/ What Eclipse is?]
 
=== First build !===
 
=== First build !===
  
Line 27: Line 60:
 
# Select your toolchain  ... and click Finish ... and Wait a little ...  
 
# Select your toolchain  ... and click Finish ... and Wait a little ...  
  
your now able to build from eclipse.
+
''Your now able to build from Eclipse.''
  
 
=== Want to debug maybe ?===
 
=== Want to debug maybe ?===
Line 33: Line 66:
 
* From {{Literal|Project Explorer}} panel, select your project properties (alt+enter / menu-project or right clicking)
 
* From {{Literal|Project Explorer}} panel, select your project properties (alt+enter / menu-project or right clicking)
 
* In {{Literal|Run/Debug Setting}} click "New" or "Edit..." , in C/C++ Application , browse and select the synfig-studio binary from {{Literal|/home/user/synfig/bin}}
 
* In {{Literal|Run/Debug Setting}} click "New" or "Edit..." , in C/C++ Application , browse and select the synfig-studio binary from {{Literal|/home/user/synfig/bin}}
 +
 +
''you (shouldbe) are ready to debug / improve / patch and share !''

Revision as of 21:51, 13 December 2014

This assume you already cloned the code from git

Want to setup an IDE to debug / develop synfig ?

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

Anjuta from gnu/linux

What Anjuta is?

First build !

This will generate all needed makefile

  • Open "autobuild/synfigstudio-linux-build.sh" and change "DEBUG=0" to "DEBUG=1" (line 74)
  • Build from "autobuild/synfigstudio-linux-build.sh"
  • During this time install "anjuta" from synaptic or whatever ... (from xubuntu 14.10 you must instal Anjuta 3.14 from this ppa for example : see here why)

when anjuta installed and synfig builded....

Import synfig (etl / core / studio) projects in Anjuta

  • Open Anjuta, in "Action" choose "Import a project" and choose your code location (synfig/ETL , synfig/synfig-core or synfig/synfig-studio)
  • Select a project name and Import
  • At the project backend choice, select "Autotools" and go for it (if you keept the default project name, replace the existing project with the new one)
  • Wait a minute ... project loaded !

Repeat for each synfig project

Your now able to build from Anjuta.

Want to debug maybe ?

  • From Anjuta "<Menu> → <Execute> → <Program Paramter> → Program" : select synfig-studio binary "/home/user/synfig/bin" (i also setup the working directory)
  • Now you need to clean the project and build it again (but this time from anjuta)
  • Anjuta "<Menu> → <Build> → Clean"
  • Anjuta "<Menu> → <Build> → Build"

you (shouldbe) are ready to debug / improve / patch and share !

Eclipse from gnu/linux

What Eclipse is?

First build !

This will generate all needed makefile

  • Open "autobuild/synfigstudio-linux-build.sh" and change "DEBUG=0" to "DEBUG=1" (line 74)
  • Build from "autobuild/synfigstudio-linux-build.sh"
  • During this time install "eclipse" & "eclispe-cdt" packages from synaptic or whatever ...

when eclipse installed and synfig builded....

Import synfig (etl / core / studio) projects in Eclipse

Open Eclipse, choose your desired place for the workspace (i recommend not in ./synfig folder if you want to commit, better just above)

For each synfig component (etl / core / studio ...)

  1. Eclipse / Menu / Makefile project with existing code
  2. Choose your project name (etl / core / studio ...)
  3. Select code location (synfig/ETL , synfig/synfig-core or synfig/synfig-studio)
  4. Select your toolchain ... and click Finish ... and Wait a little ...

Your now able to build from Eclipse.

Want to debug maybe ?

  • From "Project Explorer" panel, select your project properties (alt+enter / menu-project or right clicking)
  • In "Run/Debug Setting" click "New" or "Edit..." , in C/C++ Application , browse and select the synfig-studio binary from "/home/user/synfig/bin"

you (shouldbe) are ready to debug / improve / patch and share !