Configuring a project in Eclipse¶
See DSP_Hello_World#Compiling-for-the-ARM for setting up eclipse to build for DSPLib.
First steps¶
To set up a project in Eclipse, you must have the cross compiler tools installed.
Start Eclipse and select File | New | C++ Project... Supply the project name and set the location of the project. For project type, select Cross-Compile Project and Cross GCC for the toolchain. Click Next and set the Tool command prefix to "arm-angstrom-linux-gnueabi-". The Tool command path should be "/usr/local/angstrom/arm/bin" or whatever path is required to get to the toolchain bin directory. Hit Next and then click on the "Advanced" button to bring up the project properties (this can also be accessed by right-clicking on the project once it's created and clicking on properties...).
In the properties dialog, set up any build variables you need. Two standard ones will be DSPLINK and LIBDSP, which are set to point to the directories where the DSPLink files and our MityDSP DSP library files are. Under C/C++ Build | Settings, Set up the directories to include and library directories you need, such as the MityDSP libdsp library ("${LIBDSP}" including the quotes). Similarly, under the Linker Libraries setting, add the name of any libraries you need to link to (without the "lib" prefix or ".so" suffix, so "libdsp.so" becomes, simply, "dsp"). Be sure to include the thread library "pthread". Click Okay to accept these settings. You'll need to add a link to the DSPLink library, as well, which must be put into Miscellaneous | Other objects, since the naming of the library file doesn't follow standard Linux conventions.
Click Finish to create the project.
At this point your project should be ready to go.
Go to top