breve plugins on PC

Hello, sorry to bother with this kind of question, but I can't get this problem solved.

I'm developing a plugin to use the serial port, I have read the documentation several times and now I don't get code errors but linker errors, I thought that it may be for the arguments, but already chequed it over so many times and everything seems to be fine for me.

Then, I thought about compiling the examples (the ones that comes with breve), but that also gave me the linker problem ( [Linker error] undefined reference to `brNewBreveCall' ), I'm using windows XP, and Dev-C++ ( it uses Mingw as its compiler), now what I think it's that maybe I need to give the linker some arguments, but then, I'm kinda lost.

I hope someone can help me with this, I already tried everything that my brain have popped and now, I'm out of ideas

breve plugins on PC

I think that the documentation may be outdated when it comes to building plugins on Windows. Instead of linking against the binary, you should link against the file "lib\libbreve.a" which comes with the breve distribution.

I don't have a Windows machine here to test with myself, but please let me know if that works and I will update the documentation accordingly.

- jon

breve plugins on PC

Well, looks like I have to apologize, I wasn't reading the "original" documentation, I had an "improved" copy, more a translation than a real improved, but above all, it was incomplete, now, I really sorry, but it was not a waste of time, I tried linking it to "lib\libbreve.a" and that threw lots of "undefined references", but, when linking to the breve.exe, everything went just fine.

By the way, that plugin I'm working on, still doesn't work, I just tried to compile the examples, but if that works, I'm definitively putting it on here, maybe it could be useful for someone.

And an advice to the ones that works with windows + graphical enviroments:
use the console, it won't hurt you, and will make your work easier.

Thanks a lot Jon.

breve plugins on PC

I'm just trying to dig into Windows-Plugin development but have the same problem of not knowing what to use for linking. Though my origin doesn't lie in the C++ corner I remember that the .a-File is a library in unix-format so I cant use it for linking. But Fimbulvetr said he linked against the .exe? Is that possible, I thought an .exe is finished in the linking process and therefore without use .. ?!
I'm real sorry if I only try to get some C++ basics again ..

breve plugins on PC

After a lot of time and problems (thanks to all who have tried to help), I finally found one thing, breve doesn't find the plugin

I know it's kinda weird, but then, I was about to give up, when I looked at this, so, maybe there can be still hope.
If there's anyone who has faced that before or maybe have an idea, any help is appreciated.

breve plugins on PC

Perhaps you read some of my posts and noticed that I also had (have) much problems developing plugins for breve. Sure I do not know your concrete problem but perhaps I can support you a little.

The problem that breve does not find your plugin can lie in the fact that the .dll is not located or the dll was not compiled/linked correctly. For the first case there is a nice little tool called "filemon". With that you can log every file access your OS is doing - and so proof if the dll is really accessed.

For the second case I can only offer you that I send you a very basic plugin which I can guarantee to run. Or vice versa you send me one to test on my platform. I think that would clear some aspects. PM me if you want so with your email.

BTW: I have refreshed some C-knowledge and still I claim that linking against an .exe-file does not make any sense, because an exe is finished linking.

breve plugins on PC

Unfortunately, I have nothing to add to this topic. Developing plugins, as of now, is a bit much for my time constraints.

On the other hand, I would love to see this plugin once it is finished. A serial port accessor would be an incredible help for my robot simulation, which I will eventually need to link to a physical robot. Until now, I thought I was going to have to develop my algorithms in breve, then port them to C manually in order to compile in the robot's language, then send that over to the PIC. The bot has a serial link, though, so being able to alter things in breve and have the results immediately represented in the physical bot will/would be very nice!

Lots of luck!

~Moto

breve plugins on PC

Hmm, except one little thing I have made the connection complete. But not with serial link, but with TCP/IP Sockets. I have a very similar task: A GP-breeding program creates individuals which are (or shall be) tested on a real robot and a breve model.

As I mentioned, the server is running as a plugin but I have several problems managing the communication between the plugin and the breve engine. Because the server would block the whole breve engine I put it in its own thread. But thread-communication is a painful task so I asked John for a solution. As you can read in the "General Questions about Plugin Dev and Threading"-Thread he was so nice to compile a thread-safe version of breve.
If I solve the compiler problems, I finally (after weeks and weeks) have a communicating plugin 8)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.