Hi,

Unless you add yourself in the build system and configure the proper cmake
variables in your CMakeLists.txt scripts (take a look at other channels for
samples) it won't get built statically.

Since it is not built statically, your plugin will need to export the
proper entry point, and be installed in the plugin install path. Plugins
have a naming structure which allows them to be identified more easily. If
your plugin is called "myping" then you should have it built as
"myping-client.so" and have it installed in <install_prefix>/lib/freerdp
(on my 64-bit system it is <install_prefix>/lib/x84_64-linux-gnu/freerdp).

This is where the plugin loader will look for plugins. I intend to add
other ways to provide your own plugins later on, such that you could for
instance configure additional plugin paths in the registry.

On Thu, Dec 6, 2012 at 3:35 PM, salil kanitkar <slashf...@gmail.com> wrote:

> Apologies for shamelessly replying to my own question, but can someone at
> least point out if I have an error in my command line?
> Is there another alternative than using /vc: for loading static virtual
> channel plugin for 1.1.0?
>
>
> On Wed, Dec 5, 2012 at 6:23 PM, Grindelwald G <grindelwal...@gmail.com
> >wrote:
>
> > I have a simple ping app - that sends a string over a virtual channel. I
> > have it compiled as a .so file.
> > It gets loaded & works fine over FreeRDP-0.8.2
> >
> > However, for FreeRDP-1.1.0 - when I load it, I get a crash.
> > I have put the libmyping-client.so file at /usr/local/lib/freerdp/ and I
> > use following cmd line -
> > ./client/X11/xfreerdp --sec rdp /vc:libmyping /u:<my-username>
> > /v:<Win7-Host-IP>
> >
> > I tracked it down to function -
> freerdp_channels_load_static_addin_entry()
> > This function is returning NULL since CLIENT_STATIC_ADDIN_TABLE does not
> > have details about libmyping.
> > As a result at file libfreerdp/common/addin.c - in function -
> > freerdp_load_channel_addin_entry(), the varable "entry" gets assigned to
> > NULL since freerdp_load_static_channel_addin_entry - which is basically
> > pointing to freerdp_channels_load_static_addin_entry() returns NULL.
> > Effectively, this results in a call to
> > freerdp_load_dynamic_channel_addin_entry(). Finally the crash/segfault
> > actually happens in dlsym() system call.
> >
> > So my question is - there must be some way of loading a custom static
> > virtual channel plugin without having to add an entry in that
> > CLIENT_STATIC_ADDIN_TABLE and doing a recompilation of freerdp, rite?
> > Or am I missing something fundamental?
> >
> > Thanks!
> > -G
> >
> >
> ------------------------------------------------------------------------------
> > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> > Remotely access PCs and mobile devices and provide instant support
> > Improve your efficiency, and focus on delivering more value-add services
> > Discover what IT Professionals Know. Rescue delivers
> > http://p.sf.net/sfu/logmein_12329d2d
> > _______________________________________________
> > Freerdp-devel mailing list
> > Freerdp-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/freerdp-devel
> >
>
>
>
> --
> Salil
>
> "Train yourself to let go of everything you fear to lose" - Master Yoda
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Freerdp-devel mailing list
> Freerdp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freerdp-devel
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to