Page 1 of 1

Build for SBC

Posted: Sat Jun 06, 2020 6:09 am
by kstukey7
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...

Re: Build for SBC

Posted: Mon Jun 08, 2020 10:57 am
by Patrick
How are you trying to run the program on the SBC?

You would need to install Mono, etc.

-Patrick

Re: Build for SBC

Posted: Mon Jun 08, 2020 11:40 am
by kstukey7
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.

Re: Build for SBC

Posted: Mon Jun 08, 2020 12:21 pm
by Patrick
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