Stable version to be found:

And other formats as well (may be) on the Stable HOWTOs page

If necessary use the Discussion page to give comments.

Discussion Page Content if any

HOWTO

Develop Gnumeric with Anjuta HOWTO, copyright (c) 2009 Vlad Anuchin

Revision History

Revision History is done automatically according to the HOWTO History, so fill the comment line below the edit window accordingly.

Are you the spreadsheet expert that thinks that it can always can be done better? With Gnumeric in Anjuta you can.

Beginning

Licence

      Permission is granted to copy, distribute and/or modify this
      document under the terms of the GNU Free Documentation License,
      Version 1.2 or any later version published by the Free Software
      Foundation; with no Invariant Sections, no Front-Cover Texts and
      no Back-Cover Texts.  A copy of the license is included in the
      section entitled "GNU Free Documentation License".

GNU Free Documentation License

HOWTO Content

Prospective Audience

Setup

  1. Get Gnumeric Source Code
    • Create a Project folder e.g.: /home/yourname/Projects/Gnumeric/
    • Download source code (tar file) from Source Download Page into the Project directory

      • Since you're starting out I'd suggest 'stable release'
    • Extract from the tar file
  2. Get Anjuta
    • Anjuta is a development environment that can handle Gnumeric project (written in C)

    • Install by typing 'sudo apt-get install anjuta'
  3. Create Gnumeric project in Anjuta
    • The most 'difficult' step in the whole process of setup: due to irregularities
    • Menu 'File|New|Project From Existing Sources':
      • dev_anjuta_gnumeric_anjuta.project.import.png

    • ...Forward:
      • anjuta.project.confirmation.png

    • if after 'Apply' a message comes up like this:
      • anjuta.project.import.error.png

      • Watch out for the line number (e.g.: 42) it could be different for different versions of source
      • Edit line 40 (just before 42:) in Makefile.am of the project directory:

        anjuta.makefile.am.png

      • delete space before LC_ALL (there should only be a TAB as per Makefile Overview) anjuta.makefile.am.new.png

      • save file :) and repeat Project import in Anjuta

  4. First Run
    • Build
      1. Menu 'Build|Build Project':

        anjuta.build.png b. Click 'Execute'

        • Build takes a bit of time: on my machine 8 mins with 335 warnings)
    • Execute
      1. Menu 'Run|Execute' will brings up dialog:

        anjuta.run.png

      2. Put ./src/.libs/gnumeric for 'Program'; then 'Apply'

      3. The familiar Gnumeric UI comes up:

        gnumeric.png

      4. And Anjuta looks like this:

        anjuta.running.png

      5. To end gracefully:
        1. Close Gnumeric by Closing the window or 'File|Quit'
        2. Press 'Enter' in the Anjuta Terminal

Debugging

  1. Add a break point
  2. Debug
  3. Examine Variables
  4. Change code
  5. Rebuild
  6. Run

Add a new function in Gnumeric

Create your own Plugin

  1. Why
    • To keep things organised
    • With fresh code not to overwrite it
    • Save it separatelly
    • Submit as a module to Gnumeric project
  2. How
    1. Template
    2. Function list
    3. Registration
    4. Test
      1. Build
      2. Run

Submit your code to Gnumeric project

  1. Should it be in the Howto?

Install

dev_anjuta_gnumeric (last edited 2009-08-27 20:13:35 by VladAnuchin)