We saw in How to setup my Eclipse workspace how we were able to prepare eclipse for the real thing: creating, compiling and testing of programs for the TXT.
Now we are going to compile and run some example applications or SLI's and then it is time to setup our first new project.
We will also see how to track and analyze the progress of an ongoing RoboPro program using an SLI or an standalone local application with Putty and Notepad ++
In the root of the FtTxtWorkspace
you will find an overview of the available examples projects.
The FtTxtWorkspace README
There is also information about:
- compiling
- uploading/installing
- using/starting:
- a Sli in a RoboPro programming (only for SLI's).
- an application.
- how to trace with Putty and consultation of the trace log with Notepad++, See also
- How to trace with SPDlog (not yet available).
The 'TxtDepsroot contains also a
README.me` about the instruction of how to make use of these libraries and includes these in your projects
Later you can add more new projects or projects from others into this FtTxtWorkspace
.
It is also possible to have both SLI and executable projects in this FtTxtWorkspace
. Both are using the same FtxDeps
project and LinaroMap
Environment variable. Only the Build Artifact
different.
-
Add an existing Eclipse TXT project to this workspace. Copy that relevant project into the
FtTxtWorkspace
and use the Eclipse menuFile|Import
to add this project to the workspace. Check if the project properties are fine! -
Create a new project by copying an existing one. Select the project, which you prefer to copy, in the
FtTxtWorkspace
.
Go with the right mouse button to the properties and selectCopy
.
Go with the right mouse button to the properties and selectPast
.
You will see a popup-box with the question for a new name. Fill the name for your project in. Press theCopy
button.
Check the project properties of theC/C++ General
|Paths and Symbols
for the includes are fine. Probably you will need to change some paths.
Clean thesrc
file and start with coding. -
How the create a new SLI or application project from scratch has been describe in: Project setup from scratch
The Build Artifact
can be changed in the Project Properties | C/C++Build|Settings
and the tab Build Artifact
The SLI is in fact a shared library
and such a file has the extension .so
.
The Output prefix and extension are important. You may fill in another name for the SLI.
A SLI needs also for both compilers the option -fPIC been set.fPIC
An application has under LINUX and the fischertechnik TXT start mechanism no file extension.
You may fill in another name for the application.
That is all folks, have fun and success with your proper SLI's and/or applications.
- 2020-05-24,26,28 CvL 466.1.2 both, new
- Original from: on-line training SLI-programming
© 2020-04 ing. C. van Leeuwen Btw. Enschede Netherlands