Project

General

Profile

Starter Guide: Cannot build application with eclipse

Added by Mads Olav le Maire over 11 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:
"Error Launching external scanner info generator(g++ -E -P-v -dD /home/mitydsp/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp"
  • 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 over 11 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 over 11 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 over 11 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.

    (1-3/3)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)