Author Topic: Plugin DLL not recognised by SV on windows  (Read 4634 times)

justin

  • Newbie
  • *
  • Posts: 11
    • View Profile
Plugin DLL not recognised by SV on windows
« on: May 02, 2013, 13:26:58 »
Hi Chris and all,

I'm having some trouble with a vamp plugin we've created here especially for a course we're giving on sound analysis. Basically, on some computers, the plugin is simply not recognised by Sonic Visualiser. The computers belong to the university and run windows xp. Importantly, on non-university machines the plugin is recognised correctly.

Whilst this implies that in part the problem has something to do with the configuration of the university computers, other vamp libraries (e.g. the vamp example library, aubio or libextract) are recognised by SV without any problem! This suggests that there is something different about our DLL which prevents the uni machines from recognising it.

Has anyone experienced something like this before? Any idea what could be the reason for this?

Thanks!

Justin

cannam

  • Administrator
  • Sr. Member
  • *****
  • Posts: 273
    • View Profile
Re: Plugin DLL not recognised by SV on windows
« Reply #1 on: May 02, 2013, 14:15:01 »
Hi Justin -- is it possible it depends on a version of e.g. the VC++ runtime which is not installed on these machines?

Can you try the DLL in Dependency Walker (http://www.dependencywalker.com/) on one of the offending machines?

Chris

justin

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Plugin DLL not recognised by SV on windows
« Reply #2 on: May 02, 2013, 17:56:49 »
Yup, you nailed it.

The machines didn't have the VC++ runtime dll's installed and hence the plugin wasn't being recognized. Once I installed the dll's from here: http://www.microsoft.com/en-us/download/details.aspx?id=5555
the problem was solved.

In case anyone else is following this thread, I also found a link explaining how to avoid the problem in the first place by statically linking to the C/C++ runtime: http://stackoverflow.com/questions/3162325/after-building-exe-using-vs-2010-c-missing-msvcp100-dll

Thanks for the speedy solution Chris!

Update: I just tried the workaround proposed in the link I posted above, but the compiler throws a bunch of linking errors and the build fails :o Anyway, all in all problem solved  :)
« Last Edit: May 02, 2013, 18:05:57 by justin »