Header files not found by ECLIPSE

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Header files not found by ECLIPSE

Postby Vader_Mester » Mon Mar 19, 2018 11:42 am

Hi Guys,

I'm a bit new to Eclipse. I followed the steps in setting up the projects to work with esp-idf.

It seems that Eclipse is unable to find the header files in the esp-idf directory, and therefore things like ESP specific variables and type definitions (uint8_t for example) are not found.

Any idea how to get around this issue?

Thanks
Vader[BEN]

Edited the topic content and name to be a bit more generic.

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

dark_sides08
Posts: 1
Joined: Mon Mar 19, 2018 1:53 pm

Re: Header files not found by ECLIPSE

Postby dark_sides08 » Mon Mar 19, 2018 1:56 pm

Hello,

Maybe you can see my setting
Capture.PNG
setting
Capture.PNG (16.95 KiB) Viewed 6949 times

and see if it will works for you.


Yudha

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Header files not found by ECLIPSE

Postby kolban » Mon Mar 19, 2018 2:49 pm

This video may be a little dated, but it may shed some light on the puzzle.

https://www.youtube.com/watch?v=bYh2w0HzS7s

When you create a "Project" in Eclipse, you get to configure that project by telling it where to look for include files that it should consider for resolution either for compilation or for code viewing. Maybe review the video and see if it sheds some light on the story. If not, then maybe you can post back with what you tried and the actual results?

See also:

https://www.youtube.com/watch?v=X47hh-IvJ5M
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: Header files not found by ECLIPSE

Postby Vader_Mester » Mon Mar 19, 2018 7:06 pm

I watched the video, and it helped, although I might be messing up something badly. Will do some checks...
It's not as simple on Windows as on linux though :(

BTW you have a wonderful style and voice for these kinds of videos, keep up the good work 8-)

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: Header files not found by ECLIPSE

Postby Vader_Mester » Tue Mar 20, 2018 9:15 am

I finally managed to get around the issue.

Somehow Eclipse had problems if I had some build files already in the new project...
So i reset everything and now everything is found.

Thanks for the support.

PS: This information should be included in the docomentation, so noobs like me can see it right away.

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

Who is online

Users browsing this forum: No registered users and 61 guests