Trouble setting up Eclipse to build esp-adf projects?

Jimrux
Posts: 4
Joined: Wed Jan 08, 2020 7:56 pm

Trouble setting up Eclipse to build esp-adf projects?

Postby Jimrux » Mon Jan 20, 2020 1:33 am

I am having trouble setting up my Eclipse environment to build esp-adf examples. I have no trouble building esp-idf examples from Eclipse or the command line. I can build esp-adf files from the command line. I installed the Eclipse esp-idf plugin. My path variables in Eclipse are :

Code: Select all

ADF_PATH /home/jim/esp/esp-adf
IDF_PATH /home/jim/esp/esp-idf
PATH /home/jim/miniconda3/bin:/home/jim/esp/xtensa-esp32-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/x86_64-linux-gnu:/snap/bin:/opt/picc:/opt/microchip/xc8/v1.44/bin:/opt/microchip/xc32/v2.05/bin:/opt/microchip/xc16/v1.33/bin:/opt/microchip/xc16/v1.35/bin:/opt/microchip/xc8/v2.00/bin:/opt/microchip/xc8/v1.44/bin:/opt/microchip/xc32/v2.05/bin:/opt/microchip/xc16/v1.33/bin:/opt/microchip/xc16/v1.35/bin:/opt/microchip/xc8/v2.00/bin
When I try to build from within Eclipse I get the error:

Code: Select all

Building in: /home/jim/eclipse-workspace/vad/build
cmake --build . -- -v
[0/1] /usr/bin/cmake -S/home/jim/eclipse-workspace/vad -B/home/jim/eclipse-workspace/vad/build
CMake Error at CMakeLists.txt:5 (include):
  include could not find load file:

    /home/jim/esp/esp-adf:/home/jim/esp/esp-adf/CMakeLists.txt
Even though CMakeLists.txt is at /home/jim/esp/esp-adf/CMakeLists.txt and contains:

Code: Select all

execute_process(COMMAND git describe --always --tags --dirty
                OUTPUT_VARIABLE ADF_VER
                OUTPUT_STRIP_TRAILING_WHITESPACE)
add_definitions(-DADF_VER=\"${ADF_VER}\")

if(!IDF_PATH)
set(ENV{IDF_PATH} "$ENV{ADF_PATH}/esp-idf/")
endif()
set(EXTRA_COMPONENT_DIRS $ENV{ADF_PATH}/components)
Can anyone help me get Eclipse set up properly to build esp-adf files?
Thanks,
Jim

nimbusgb
Posts: 9
Joined: Wed Dec 20, 2017 6:18 am

Re: Trouble setting up Eclipse to build esp-adf projects?

Postby nimbusgb » Tue Mar 31, 2020 7:17 pm

Did you manage to get this solved?

I am trying to do some development on ADF using eclipse.

Could do with some guidance!

Who is online

Users browsing this forum: No registered users and 39 guests