Jump to content
leviscar

How to compile a Delphi plugin

Recommended Posts

leviscar

Hi All,

could you please share a brief guide about compiling a DVBViewer Delphi plug-in?
I would like to modify the Delphi code of a plugin (shared by another, but no longer updated since 2013),

and then re-compile it.

Which tools/compilers are needed? Auxiliaries DVBViewer libraries are needed too?
Thanks. 

Share this post


Link to post
hackbart

This depends on the plugin. In general you only need a Delphi 6 or newer compiler. Free Pascal/Lazarus should also run fine. All our plugins, we published so far, do not require third party libraries.

  • Thanks 1

Share this post


Link to post
leviscar

I have tried to compile using Lazarus, after converting the Delphi project to the Lazarus format, using the dedicated conversion feature. 

But the compilation failed.

 

I suspect because some libraries are missing. At the beginning of the code (UPlugin.pas file) I see: 

uses Windows, Controls, Classes, Messages, DVBViewerServer_TLB,
  uplugininterfaces, Graphics, DateUtils, SysUtils, Math, IniFiles, ExtCtrls, OleServer,
  version;

But I only have the following files:

DVBViewerServer_TLB.pas, plgGlobals.pas, RegExpr.pas, uplugininterfaces.pas, version.pas

Are there other library files that I should include in the project? Where can I find them?

Share this post


Link to post
leviscar

I did other tests. It seems that the libraries are correctly loaded. So the problem has to been looked for somewhere else.
Probably the modular code is not fully compatible whit Lazarus, or some little adjusts could be needed to compile it using Lazarus.... :ermm:

Share this post


Link to post
leviscar

Successfully compiled using Embarcadero DX.10. I will test if the obtained .dll works as expected.... 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...