Build error with no errors reported <resolved>

Make your own CNC Control Apps

Moderator: cnckeith

Post Reply
Ryan Patterson
Posts: 42
Joined: Wed Oct 16, 2024 3:30 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Build error with no errors reported <resolved>

Post by Ryan Patterson »

I tried the API a few weeks ago and am excited to get going with it. But having issues and have no idea what could be the problem. The linked video best explains. I have tried this as a C#, .net and WPF project all with the same issue. I have the Target CPU to any and tried .net framework versions 4.7.2 , 4.8, and 4.8.1. Dev computer is a Surface Pro9 Snap Dragon processor . If you need more info let me know.




Centroid_Jacob
Posts: 82
Joined: Wed Oct 19, 2022 4:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: Yes
CPU10 or CPU7: No

Re: Build error with no errors reported

Post by Centroid_Jacob »

Hi Ryan,

Ah, your Surface 9 Pro might be the issue.
I don't believe we support ARM processors, like the Snap Dragon, at this time.
You could try another development device and see if you have better luck, or maybe download my example project from GitHub and see if it has the same issue: https://github.com/jacobholes/CentroidA ... _PowerFeed


The only other thing I can see that might cause an issue would be building for "Any CPU".

As of CNC12 v5.08, we build CNC12 and the Centroid API for x64 systems. You can try changing the CPU profile from "Any CPU" to "x64" and that might work if Microsoft's ARM compatibility layer is as good as they say it is, but I can't make any promises.

Instructions for changing the CPU in Visual Studio is here:
When requesting support please read this post first.

A fresh report makes it easier to assist you. To make a report check this post


Ryan Patterson
Posts: 42
Joined: Wed Oct 16, 2024 3:30 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Build error with no errors reported

Post by Ryan Patterson »

Changing the target CPU did not correct the issue. I will try with my other dev computer to rule out the ARM processor. If it makes a difference CNC12 runs on the Surface Pro9. I am traveling at the moment so it will be a bit before I can get to my other computer.


Centroid_Jacob
Posts: 82
Joined: Wed Oct 19, 2022 4:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: Yes
CPU10 or CPU7: No

Re: Build error with no errors reported

Post by Centroid_Jacob »

Ryan,

I did some research on Visual Studio for ARM and couldn't come up with a solid solution. You might have luck if you try building for .Net 8.0 and have your system on the newest Microsoft Update, I see some additional support was added for ARM64 debugging back in September that looks like it improved x64 emulation but I can't say if that would do the trick or not.

Officially, we don't support ARM devices so it's awesome to hear that CNC12 works at all! That compatibility layer really is something.
When requesting support please read this post first.

A fresh report makes it easier to assist you. To make a report check this post


Ryan Patterson
Posts: 42
Joined: Wed Oct 16, 2024 3:30 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Build error with no errors reported

Post by Ryan Patterson »

I have tested now on an Intel i7 with the same results. Blank/empty project with reference set. The project will not run if I have the API declared. Can you share the source for one of your projects to test? VB.net or C#.

Edit: I tried the project you posted in GitHub. The attached image is the errors I get with your code. I am using the dll that was installed with CNC12 could it be a different version than what you are using?
Attachments
2024-11-12_8-50-40.png


Centroid_Jacob
Posts: 82
Joined: Wed Oct 19, 2022 4:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: Yes
CPU10 or CPU7: No

Re: Build error with no errors reported

Post by Centroid_Jacob »

Ryan,

I'm building and testing with CNC12 v5.20 but just to check if different versions matter, I installed v5.10 but kept the v5.20 DLL and received no errors.

Of the three messages in your error log, none of them are caused by the CentroidAPI.

The first warning is a result of me changing .Net Versions, I get that warning as well but the project builds fine.

The two actual errors below that are because you downloaded files from the internet and Microsoft flags them as unsafe by default.

Please see this link: https://learn.microsoft.com/en-us/answe ... ts-being-i

In particular, this answer here to remove the 'mark of the web' so Visual Studio allows the forms to be used.
mark of the web.png
And report back if the Project then builds or if it still exits without error after that.



Also a few questions that might help point us in the correct direction:
What version of Visual Studio are you using?
What version of CNC12 is installed?
Can you attach a report from the i7 machine?
Is CNC12 running when you are attempting the build?
When requesting support please read this post first.

A fresh report makes it easier to assist you. To make a report check this post


Ryan Patterson
Posts: 42
Joined: Wed Oct 16, 2024 3:30 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Build error with no errors reported

Post by Ryan Patterson »

Update: Not sure what I did differently but I have a working project now. It looks like it needs to use .net 6.0 and target PC set to X64.


Post Reply