Re: [anjuta-devel] Trying to contribute to language-support-cpp-java: how to build and install separately?



Hi Edward,

Le 01/11/2010 09:40, Edward Brinkmann a écrit :
I tried creating a "Project
from existing sources" and selecting the folder of this plugin from the
anjuta sources, but this led to makefile errors, probably because this
plugin is tied in with the rest of the anjuta source.

This will not work. This options is used to import an already existing autotools project in Anjuta. It roughly only creates a file with .anjuta extension in your project directory so Anjuta can recognize this directory as a project directory. It works only on a complete project not on a part and as Anjuta already has an .anjuta file it's useless in this case.


I also tried
creating a new Anjuta Plugin project and copying all relevant files from
the language-support-cpp-java plugin over, replacing the default ones
the project had created. This eventually installed, but now every time I
start Anjuta I get a message that the plugin failed to load because of
an unknown symbol, which are some random characters and digits.

This option is used to create a new Anjuta plugin, you cannot overwrite a few files and expect that it will work fine.


Is there a separate source package for this plugin somewhere?

No.

How can I build the plugin separately so I can add features to it?

There is nothing plan to do this. The easiest solution is to get the source of Anjuta and change the plugin inside Anjuta tree. It's better to get the sources using git, so you can synchronize with the master branch at any time. If you plan to do some complex changes, it is even better to create a branch and work in it.

Else, if you really want to develop your plugin as a separate project, it's possible but you need to understand how autotools is working. You need to write a file named configure.ac in your project directory and a Makefile.am in each directory of your project. You can look at the anjuta-extras project which include several plugins outside Anjuta project.


Regards,

Sébastien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]