c plugin issues
"Anand Veeraswamy" <[email protected]> Sat, 27 Aug 2005 00:10:25 +0100
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============73227706697246253==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0010_01C5AA9B.B9930500"
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01C5AA9B.B9930500
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi All,
I am having issues in creating c, c++ plugin's. I am trying to run the =
sample plugin program "cSampleDemo.tz"
I have installed the MinGW for windows. I am using windows XP. I am =
using the latest command line version of breve.
Here is what I do....
1) I copy the cSampleDemo.tz and cSample.c files to the plugin folder =
which contains the "slBrevePluginAPI.h" file
2) I rename the CSample.c file to cSample_plugin.c so that I get a =
cSample_plugin.o file when I compile the c file
3) I then use MinGW and run the following commands
a) gcc -c cSample_plugin.c --->This gives me the cSample_plugin.o =
file.
b) dlltool -z cSample_plugin.def cSample_plugin.o ----> This gives =
me the cSample_plugin def file which appears like a text pad file
c) The next step confuses me a little...according to the =
documentation the next command should be
ld -shared -o myPlugin.o myPluginFuncs.o myPluginFuncs.def =
path_to_breve_binary.exe=20
=20
Here what is the myPlugin.o file??
Anyway I ignored the myPlugin.o file and used the following =
command
ld -shared -o cSample_plugin.o cSample_plugin.def =
c:\breve\bin\breve.exe=20
This gives me a executable file called a.exe.
4) I then compile the cSampleDemo.tz example program as usual which =
gives me the error saying that cSample_plugin.o is not a valid windows =
image.
I unable to find out what mistake I am making......
It would be wonderful if someone could point out the problem or could =
give me instructions on how to install C, C++ plug-ins....
Thanks in advance.
Anand.
------=_NextPart_000_0010_01C5AA9B.B9930500
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 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I am having issues in creating c, c++ =
plugin's. I=20
am trying to run the sample plugin program "cSampleDemo.tz"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I have installed the MinGW for =
windows. I am=20
using windows XP. I am using the latest command line version of=20
breve.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Here is what I do....<BR>1) I copy the=20
cSampleDemo.tz and cSample.c files to the plugin folder which contains =
the=20
"slBrevePluginAPI.h" file<BR>2) I rename the CSample.c file to =
cSample_plugin.c=20
so that I get a cSample_plugin.o file when I compile the c file<BR>3) I =
then use=20
MinGW and run the following commands<BR> a) gcc -c=20
cSample_plugin.c --->This gives me the cSample_plugin.o=20
file.<BR> b) dlltool -z cSample_plugin.def=20
cSample_plugin.o ----> This gives me the cSample_plugin def =
file which=20
appears like a text pad file<BR> c) The next step =
confuses me=20
a little...according to the documentation the next command should=20
be</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
ld -shared -o myPlugin.o myPluginFuncs.o =
myPluginFuncs.def=20
path_to_breve_binary.exe </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
Here what is the myPlugin.o file??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
Anyway I ignored the myPlugin.o file and used the =
following=20
command</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
ld -shared -o =
cSample_plugin.o cSample_plugin.def=20
c:\breve\bin\breve.exe </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
This gives me a executable file called =
a.exe.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>4) I then compile the cSampleDemo.tz =
example=20
program as usual which gives me the error saying that cSample_plugin.o =
is not a=20
valid windows image.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I unable to find out what mistake I am=20
making......</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>It would be wonderful if someone =
could point=20
out the problem or could give me instructions on how to install C, C++=20
plug-ins....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Anand.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0010_01C5AA9B.B9930500--
--===============73227706697246253==
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
--===============73227706697246253==--