Eclipse Yocto Autotool Project Add Folder

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Eclipse Yocto Autotool Project Add Folder

3,322 次查看
ritesh_panchal
Contributor I

i am using Eclipse Yocto ADT plugin for application development.

I have created Yocto ADT Autotool project.

In the project i can use function of any file from "/opt/poky/1.8/sysroots/cortexa9hf-vpf-neon-poky-linux-gnueabi/user/include".

But i want to use files from other directory. so i add paths in "C/C++ General/Path and symbols/include directories".

Now function reference can be found by eclipse. I can also Jump to defination by F3.

But when i compile i get "fatal error: No file or directory"

So how to add other folder with no error?

0 项奖励
回复
3 回复数

1,767 次查看
Yuri
NXP Employee
NXP Employee

Hello,

   Looks like it is necessary to add include path in “C/C++ Build ->Settings -> ARM C compiler -> Includes”.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,767 次查看
ritesh_panchal
Contributor I

Hello,

In C/C++ Build ->Settings -> there is no option like ARM C compiler -> Includes. This is because i am using Eclipse Yocto ADT Autotool Project.

Please see attached image.

Screenshot from 2015-08-14 15_00_47.png

If i create Executable ANSI C project ARM C Compiler options will appear.

I am using Yocto ADT project because i don't need to add Cross compiler settings or environment variable. I am following the steps as per given in the Yocto Developer manual.

If i create Executable Project i need to add all Environment variable.

I have added SDK folder path as per snapshot below.

Screenshot from 2015-08-14 15_05_40.png

So whats the reason i am getting No files or directory error.?

0 项奖励
回复

1,767 次查看
Yuri
NXP Employee
NXP Employee

The following may be useful :

Yocto Application Development Using Eclipse IDE

Regards,

Yuri.

0 项奖励
回复