Comments (5)
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:
- 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.
- Open the 4DPlugin.cpp file, then go to File -> Save 4DPlugin.cpp as...
- 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...
- Confirm you want to replace the existing file.
- 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.
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.
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.
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:
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
from 4d-plugin-sdk.
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.
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)
- Source files created by Plugin Wizard make Xcode quit unexpectedly
- Thread-safe entry-points HOT 6
- Direct support for Direct2D HOT 3
- Execute Collection methods HOT 6
- Allow PA_NewProcess to start a pre-emptive 4D process HOT 1
- PA_GetWindowPtr incorrect HOT 1
- PA_GetCollectionElement
- Support for C_VARIANT
- Provide a class storage HOT 1
- Support null object property in UnifyVarKind
- Calling PA_ResizeArray with an ARRAY BLOB that contains elements can crash 4D HOT 1
- Generated code line ending
- This repository: Introduce a concept!
- Pass PA_ObjectRef in PA_OpenDialog
- PA_SetBlobParameter in preemptive Thread does not work HOT 1
- PA_Get4DVersion returns no version in preemptive threads HOT 4
- Thread safe entry points HOT 11
- What version of 4D does this API support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 4d-plugin-sdk.