NetBeans

From Apertium
Revision as of 14:48, 2 June 2017 by Tino Didriksen (talk | contribs) (work-in-progress)
Jump to navigation Jump to search

If you want to work with the Apertium native core tools, but you really don't want to go through the arduous process of command line debugging, you can instead use a combination of initial command line setup and then have NetBeans take over.

NetBeans

First thing you need is to install NetBeans from somewhere. If on Debian/Ubuntu, sudo apt-get install netbeans will do. Once installed, you probably need to add the C/C++ plugin.

From Tools → Plugins:

  • In the Settings tab, enable all Update Centers.
  • Then in Available Plugins, hit "Check for Newest" and find the C/C++ plugin.
  • Then in Updates, hit "Check for Updates" and update all available plugins.

Lttoolbox

Initial command line setup:

svn co https://svn.code.sf.net/p/apertium/svn/trunk/lttoolbox
cd lttoolbox
autoreconf -fi
./configure --enable-debug

Then from NetBeans, File → New Project → C/C++ → C/C++ Project with Existing Sources:

Netbeans-20-new.png

Next, Browse to the folder that has the project's configure.ac file. Leave everything else as-is and Finish:

Netbeans-30-new.png

Apertium

Assuming you did all this in /home/tino/Desktop, you'd do export 'APERTIUM_CFLAGS=-I/home/tino/Desktop/lttoolbox/ -I/usr/include/libxml2/ -L/home/tino/Desktop/lttoolbox/lttoolbox/.libs/' 'APERTIUM_LIBS=-L/home/tino/Desktop/lttoolbox/lttoolbox/.libs/ -llttoolbox3'