Forums » Software Development »
Starter Guide: Cannot build application with eclipse
Added by Mads Olav le Maire about 12 years ago
Hi,
Having unpacked the AM-1808 eval kit, and installed the virtual ubuntu mchine in virtualbox, I experience problems when trying to follow the starter guide for a quick intro.
- First, testing the toolchain failed. Although I found information about the required environmental variable script on the toolchain install page, it should be mentioned.
- When following the eclipse project setup I encounter errors when building:
- The specs.cpp is an empty file.
Has there been any changes to the toolchain/build system that makes it incompatible with the starter guide?
regards
Mads-l
Replies (3)
RE: Starter Guide: Cannot build application with eclipse - Added by Conor O about 12 years ago
Sorry for the drive by answer - hope Critical Link don't mind (I'm not an employee).
There are a few missing bits which other documents fill in. Plus the toolchain changed.
From the command line, you need to set up the environment first. The latest toolchain will have a /usr/local/oecore-i686 directory, older ones are different. From the gcc docs:
For toolchains 4.5.4 (most recent):
mitydsp$ . /usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi
OR For ToolChains 4.3.3 and below:
mitydsp$ . /usr/local/angstrom/arm/environment-setup
(The $ is the command prompt - don't type that! - and the leading . is important).
Then go
mitydsp$ arm-angstrom-linux-gnueabi-gcc -v
I use the command line exclusively - I didn't bother with Eclipse at all. To make a hello world C program just go:
mitydsp$ arm-angstrom-linux-gnueabi-gcc -o hello hello.c
Hope this helps, Conor.
RE: Starter Guide: Cannot build application with eclipse - Added by Tim Iskander about 12 years ago
Conor
Thanks for jumping in! Critical Link appreciates users on the forum sharing their knowledge... its what makes the forums work at peak efficiency!
Mads-l
If you still have any issues, please let us know.
cheers
/Tim
RE: Starter Guide: Cannot build application with eclipse - Added by Conor O about 12 years ago
Sure thing Tim!
I should also point out that on the recent VM images, both toolchains are present. You may be constrained to use the older toolchain when compiling programs (NOT the kernel!) for the module as shipped; using the newer toolchain with an older filesystem image will likely result in versioning issues with the dynamic libraries (at least for C++ it does). Of course, if you update the module's flash to a newer filesystem image with newer .so files or use the appropriate opkg install commands (See the CL Wiki) to update them, then use the newer toolchain.
Conor.