Build for SBC

Supporting Visual Studio on Windows
kstukey7
Fresh meat
Posts: 2
Joined: Fri Jun 05, 2020 11:34 am
Contact:

Build for SBC

Postby kstukey7 » Sat Jun 06, 2020 6:09 am

I'm getting an "Exec format error" when I try to run any program on my SBC4. I assume this is due to something I've done wrong when building the program in Visual Studio.

I'll note that the program runs fine out of VS with the Net.EnableServer... on my desktop.

I've tried using one of the basic example codes from Phidgets as well, with the same results.

I know they have a working with C and SBC video out there, but their account was just shut down...

User avatar
Patrick
Lead Developer
Posts: 3199
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Build for SBC

Postby Patrick » Mon Jun 08, 2020 10:57 am

How are you trying to run the program on the SBC?

You would need to install Mono, etc.

-Patrick

kstukey7
Fresh meat
Posts: 2
Joined: Fri Jun 05, 2020 11:34 am
Contact:

Re: Build for SBC

Postby kstukey7 » Mon Jun 08, 2020 11:40 am

First, thanks for the quick reply!

I haven't installed anything beyond the C/C++ packages from through the web interface.

What all is necessary to run a C# program?

I have been creating a project through the web interface, uploading the .exe file, and then setting it to run on startup.

User avatar
Patrick
Lead Developer
Posts: 3199
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Build for SBC

Postby Patrick » Mon Jun 08, 2020 12:21 pm

The SBC doesn't support .NET out of the box. You'll need to install Mono from the command line interface.

See: https://www.phidgets.com/docs/Language_ ... Linux_Mono

-Patrick


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 1 guest