3/15/2017 9:33 AM | |
Posts: 7 Rating:
|
How to use Visual Studio 2015 to develop in C/C++ on the IOT2000 Preconditions:
User for development: Create a user on your IOT which will be used as the developer's account. Don't use the root account. If you screw that one up, well, you’ll be screwed, too! As user root, edit the file /etc/ssh/sshd_config and append:
(The line with ForceCommand has to be on one line and has to be indented.) Setup of Visual Studio: Install "Visual C++ for Linux Development" on top of your Visual Studio 2015. Currently, find it using Tools->Extensions and Updates->Online->Visual Studio Gallery. Enter "Linux" into the search box on the upper right. You might want to set a bookmark on the web page of that extension as you will need it as a reference. Create a project: Create a new project according to the bookmarked web page. Remember that the IOT uses an X86 architecture, not an ARM one like the raspberry pi. Currently, that documentation does not match the implementation. To setup a connection to your IOT, use Tools->Options->Cross Platform->Connection Manager. With the "Add" button, create a new connection to your IOT. I got only the Authentication type: Password to run. The Visual Studio extension does not carry all the header files supported by the IOT with it. So I simply copied all the available header files from /usr/include of the IOT to the include directories of Visual Studio. For a standard installation, these are at "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Linux\include\usr\include". WinSCP comes in handy here. Debugging: When debugging with Visual Studio, you might encounter the famous "Frame not in module" message. This results from the setting "Enable Immediate Function Binding" being turned on. So go to Project->"Project" Properties->Linker->Advanced and turn it off. If you detect that Visual Studio just gets disconnected while waiting for a breakpoint to hit, consider changing the timeout values found in /etc/ssh/sshd_config. ClientAliveInterval 60 These values give you the whole day to wait :-) Hope this helps, Baslerstaebli Attachmentsshd_config_addendum.txt (549 Downloads) |
Last edited by: Baslerstaebli at: 6/7/2017 8:43:25 AM |
|
This contribution was helpful to
3 thankful Users |
5/12/2017 8:24 PM | |
Joined: 2/8/2017 Last visit: 3/15/2024 Posts: 87 Rating:
|
Hey, here the link for the offline installer for "Visual C++ for Linux Development" VisualCPPTeam.VisualCforLinuxDevelopment Cheers RedCali |
Last edited by: RedCali at: 5/12/2017 8:25:31 PM |
|
Follow us on