Jump to content
Conrad P

incompatible plug-in warning

Recommended Posts

A new fruit ... I'm seeing this dialog when I compile my code. And I can't for the life of me see where I'm going wrong. This all used to work, and it works on Mac, but Windows is giving me trouble.

If I try one of the sample projects (in 401138 - the later one crashes) these load fine. My stuff gets complaints... Anyone know the magic words?

 

Conrad

Screenshot 2018-03-04 19.19.10.png

Share this post


Link to post

Is this only for the latest SDK version, or 2018 in general?  The version compatibility is defined by the macro SDK_VERSION

 

Your plugin also needs the following in ModuleMain:

extern "C" Sint32 GS_EXTERNAL_ENTRY plugin_module_ver() { return SDK_VERSION; }

 

Share this post


Link to post

Hi Joshua

 

Well I have some news on this. It seems to be caused by the libcurl library that I'm trying to squeeze into the Windows build. I haven't had time to fully investigate but I suspect there's a define in the libcurl headers that may be conflicting with our SDK_VERSION define. You get away from VS quirkiness and re-discover it in a new form. On the Mac libcurl is built in so using it to access web resources from within a plug-in is a breeze. Seems like Windows has it's own way of doing http requests so I've got some reading to do. One thing I can say is that trying compile libcurl and openssl for Windows has not been an easy ride.

 

Conrad

 

-- but hey, I'm just a Greenhorn... --

Share this post


Link to post

I haven’t worked on this yet, but I’ve actually wondered if using the python engine would be easier for url requests. 

Share this post


Link to post

Well I've been there and done that. Python is ok and you can send and get JSON which translates beautifully into dictionaries. I'm using that technique to manage on online repository of device data for a year now. libcurl on the Mac was actually very easy indeed. Probably i just have to do it the MS way on Windows and that's all there is to it.

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...