[MonoDevelop] Autotools Addin in SVN

Marek Sieradzki marek.sieradzki at gmail.com
Thu Jun 8 05:52:48 EDT 2006


Dnia 05-06-2006, pon o godzinie 18:54 +0000, Scott Ellington napisał(a):
> Hello everyone,
> 
> I have merged the Autotools Addin into trunk.  Right now it will only
> work on simple projects with a simple build process.  In other words, it
> can't handle things like IKVM and other situations which need custom
> build commands.
> 
> In order for a language binding to take advantage of autotools
> functionality it will need to implement an extension point in the
> autotools addin.  Currently there is only one: /Autotools/SimpleSetup .
> Once the addin is capable of handling more complex functionality, more
> will be added.
> 
> To connect to the current extension point, one will need to implement
> the ISimpleAutotoolsSetup interface.  This will provide some basic
> information to the Autotools addin ( compiler command, flags, etc.).
> 
> I have not added the implementations to SVN yet.  Lluis is working on
> adding conditional dependencies for addins, so language bindings can
> implement this functionality without being dependent on the Autotools
> addin.  Until then, I had created a simple addin which implements
> ISimpleAutotoolsSetup for C# and Boo.  You can install it from my
> repository: http://www.salmonsalvo.net/myaddins/ . The source is here:
> http://salmonsalvo.net/upload/SampleAutotools.tar.gz
> 
> To use the addin, simply right-click on the solution in the Solution
> Pad.  There will be an option: "Deploy as Autotools Project".  Selecting
> this will silently populate your solution directory with the necessary
> files.
> 
> I have tested this on a few different types of solutions successfully,
> but there are likely issues, so please test.
> 
> Thanks to Matthias Braun for the base code that started the addin.

I created simple console solution in C# in MonoDevelop. It is made in my
normal user directory. When I click Deploy as autotools projects I get:

/opt/mono is directory where only root can get.

Wystąpił wyjątek: Exception has been thrown by the target of an
invocation.

System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.UnauthorizedAccessException:
Access to the path
"/opt/mono/lib/monodevelop/AddIns/MonoDevelop.Autotools/exe.wrapper.in.template" is denied.
  at System.IO.FileStream..ctor (System.String name, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
FileOptions options) [0x00000] 
  at System.IO.FileStream..ctor (System.String name, FileMode mode)
[0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode)
  at MonoDevelop.Autotools.AutotoolsContext.GetTemplateStream
(System.String id) [0x00000] 
  at MonoDevelop.Autotools.SimpleProjectMakefileHandler.CreateExeWrapper
(MonoDevelop.Autotools.AutotoolsContext context, System.String assembly,
System.String baseDir) [0x00000] 
  at MonoDevelop.Autotools.SimpleProjectMakefileHandler.Deploy
(MonoDevelop.Autotools.AutotoolsContext ctx,
MonoDevelop.Projects.CombineEntry entry) [0x00000] 
  at MonoDevelop.Autotools.SolutionMakefileHandler.Deploy
(MonoDevelop.Autotools.AutotoolsContext ctx,
MonoDevelop.Projects.CombineEntry entry) [0x00000] 
  at MonoDevelop.Autotools.SolutionDeployer.Deploy
(MonoDevelop.Projects.Combine combine) [0x00000] 
  at MonoDevelop.Autotools.AddinCommandHandler.OnDeploy () [0x00000] 
  at <0x00000> <unknown method>
  at (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke (object,object[])
  at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000] --- End of inner exception stack trace ---

  at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000] 
  at System.Reflection.MethodBase.Invoke (System.Object obj,
System.Object[] parameters) [0x00000] 
  at MonoDevelop.Components.Commands.CommandHandlerInfo.Run
(System.Object cmdTarget) [0x00000] 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand
(System.Object commandId, System.Object dataItem) [0x00000] 
-- 
Marek Sieradzki <marek.sieradzki at gmail.com>



More information about the Monodevelop-list mailing list