GithubHelp home page GithubHelp logo

Comments (5)

pdwyer54 avatar pdwyer54 commented on August 27, 2024 1

We figured out this issue, it was an issue with the file encoding for 4DPlugin.cpp and 4DPlugin.h. in case it is run into in the future, if anyone runs into this again here is the solution:

  1. Right click on the 4DPlugin.cpp file, select Analyze -> Run Code Analysis on this file. If the output if this mentions something about the encoding being wrong, then this is probably the issue.
  2. Open the 4DPlugin.cpp file, then go to File -> Save 4DPlugin.cpp as...
  3. When the save window opens (hopefully it will default to where it was), click the dropdown arrow on the save button and select Save with Encoding...
  4. Confirm you want to replace the existing file.
  5. In the Advance Save Options that appears we changed Line endings to be Unix, and selected Ok.

Repeat with 4DPlugin.h

This solves this issue, it seems that the wizard encodes these files with a Mac setting so Windows does not know how to read it. I appreciate the help!

from 4d-plugin-sdk.

miyako avatar miyako commented on August 27, 2024

do you have

void PluginMain(PA_long32 selector, PA_PluginParameters params){
   //...
}

in your 4DPlugin.c file?

also, is 4DPlugin.c included in the project (the set of source files to compile) ?

if 4DPlugin.c is configured to compile as C++ code,

4D Plugin API.c should also be configure to compile in the same language.

from 4d-plugin-sdk.

pdwyer54 avatar pdwyer54 commented on August 27, 2024

There is a PluginMain method in 4DPlugin.cpp, there is no .c file as only a .cpp file was generated. I attached a photo of what was generated when using the wizard. I did not add or remove any files.

image

I kind of assume this has something to do with the fact that the 4DPlugin file is .cpp and the 4DPluginAPI file is .c

I am unsure how to check if my 4DPlugin file is included in the project, I kind of assumed because it is on the root level of the solution but if there is a way to check this I am happy to hear it. I can confirm that if I have an error in that file it does show up when I attempt to build.

So this last thing is probably the closest to what the issue is (I think). If they both compile in C I see the same error. But if I try to compile both of them in C++ 4DPluginAPI.c has a bunch of errors:

image

I assume this has something to do with casting in C vs C++. If this is the issue I can probably go through and attempt to fix all of those.
For additional references:
4DPluginAPI.c
image

4DPluginAPI.h
image

4DPlugin.cpp
image

from 4d-plugin-sdk.

pdwyer54 avatar pdwyer54 commented on August 27, 2024

I put both the 4DPlugin.cpp and the 4DPluginAPI.c to be compiled as C++, corrected all the casting errors and still get the same error.

from 4d-plugin-sdk.

dwaddell avatar dwaddell commented on August 27, 2024

I believe this has something to do with the BLOB TO DOCUMENT call and the character set being used. I haven't figured out what to do to fix this and honestly may be some 4D bug that we are dealing with in BLOB TO DOCUMENT.

from 4d-plugin-sdk.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.