Re: breve plug-ins

"Anand Veeraswamy" <[email protected]> Thu, 1 Sep 2005 03:33:51 +0100
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============93582628335001372==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_002C_01C5AEA5.F8C71280"

This is a multi-part message in MIME format.

------=_NextPart_000_002C_01C5AEA5.F8C71280
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Jon,

I was able to make the C,C++ plug-ins work by using the following =
command as was suggested by you in one of the previous threads
g++ -I.. -shared -o c++Sample_plugin.o c++Sample.cpp ./plugin.a


Thanks for the help.

Now here is what I want to do. I have 25 patches. Using breve I can get =
a list of these 25 patch objects. I need to pass this list to the C++ =
plug-in program so that I can implement a path finding algorithm in C++ =
and C++, after performing the calculations should return the optimum =
path back to breve in the form of a list which contains the patch =
objects in an order which the vehicle needs to follow.=20

What is the best way of doing this?

If I were to pass a list of the 25 patch objects to C++, do I need to =
declare the list members as strings??=20

Am I better off doing the calculations in breve itself?

Anand.
  ----- Original Message -----=20
  From: jon klein=20
  To: [email protected]=20
  Sent: Tuesday, August 30, 2005 1:47 PM
  Subject: Re: [breve] breve plug-ins




  On Aug 30, 2005, at 8:04 AM, Anand Veeraswamy wrote:


    Hi All,

    Has anyone used C,C++ plug-in's in Breve.

    If so please let me what GNU tool is the best to be used with Breve =
to write the plug-in's.

    Also please give me the steps needed to run the plug-in's in Breve.




  Hi,
  you may want to look in the mailing list archives to find the answer =
to this.  The=20
  question came up a few months ago about how to build the plugins on =
Windows.
  Some people apparently were having trouble with the instructions given =
in the=20
  documentation but got it to work with a few changes:


  It looks like there was a thread or two in April:


  http://lists.spiderland.org/pipermail/breve/2005-April/thread.html


  - jon klein


-------------------------------------------------------------------------=
-----


  _______________________________________________
  breve mailing list
  [email protected]
  http://lists.spiderland.org/mailman/listinfo/breve

------=_NextPart_000_002C_01C5AEA5.F8C71280
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2722" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY=20
style=3D"WORD-WRAP: break-word; khtml-nbsp-mode: space; =
khtml-line-break: after-white-space"=20
bgColor=3D#ffffff>
<DIV>
<DIV><FONT face=3DArial size=3D2>Jon,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I was able to make the C,C++ plug-ins =
work by using=20
the following command as was suggested by you in one of the previous=20
threads</FONT></DIV>
<DIV>g++ -I.. -shared -o c++Sample_plugin.o c++Sample.cpp =
/plugin.a<BR></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now here is what I want to do. I have =
25 patches.=20
</FONT><FONT face=3DArial size=3D2>Using breve I can get a list of these =
25 patch=20
objects. I need to pass this list to the C++ plug-in program so that I =
can=20
implement a path finding algorithm in C++ and C++, after performing the=20
calculations should return the optimum path back to breve in the form of =
a list=20
which contains the patch objects in an order which the vehicle needs to =
follow.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What is the best way of doing =
this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I were to pass a list of the 25 =
patch objects to=20
C++, do I need to declare the list members as =
strings??&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Am I better off doing the calculations =
in breve=20
itself?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Anand.</FONT></DIV></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A [email protected] href=3D"mailto:[email protected]">jon =
klein</A>=20
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
[email protected]=20
  href=3D"mailto:[email protected]">[email protected]</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, August 30, 2005 =
1:47=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [breve] breve =
plug-ins</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20
  size=3D2></FONT><BR></DIV><BR>
  <DIV>
  <DIV>On Aug 30, 2005, at 8:04 AM, Anand Veeraswamy wrote:</DIV><BR=20
  class=3DApple-interchange-newline>
  <BLOCKQUOTE type=3D"cite">
    <DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Has anyone used C,C++ plug-in's in=20
    Breve.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>If so please let me what GNU tool =
is the best=20
    to be used with Breve to write the plug-in's.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Also please give me the steps =
needed to run the=20
    plug-in's in Breve.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><BR=20
    class=3Dkhtml-block-placeholder></DIV></BLOCKQUOTE><BR></DIV>
  <DIV>Hi,</DIV>
  <DIV>you may want to look in the mailing list archives to find the =
answer to=20
  this.&nbsp; The&nbsp;</DIV>
  <DIV>question came up a few months ago about how to build the plugins =
on=20
  Windows.</DIV>
  <DIV>Some people apparently were having trouble with the instructions =
given in=20
  the&nbsp;</DIV>
  <DIV>documentation but got it to work with a few changes:</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><BR=20
  class=3Dkhtml-block-placeholder></DIV>
  <DIV>It looks like there was a thread or two in April:</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><BR=20
  class=3Dkhtml-block-placeholder></DIV>
  <DIV><A=20
  =
href=3D"http://lists.spiderland.org/pipermail/breve/2005-April/thread.htm=
l">http://lists.spiderland.org/pipermail/breve/2005-April/thread.html</A>=
</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><BR=20
  class=3Dkhtml-block-placeholder></DIV>
  <DIV>- jon klein</DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>breve =
mailing=20
  =
list<BR>[email protected]<BR>http://lists.spiderland.org/mailman/listi=
nfo/breve<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_002C_01C5AEA5.F8C71280--

--===============93582628335001372==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve

--===============93582628335001372==--