IDF-azure can not compile

djoshi
Posts: 53
Joined: Wed Jan 12, 2022 9:59 pm

IDF-azure can not compile

Postby djoshi » Thu Jan 20, 2022 1:14 pm

Hi

Using Git, I have downloaded esp-azure.

If i am correct in first need to set the target device which is ESP32, but its seems to fail at this stage even before making a build.

This is what i am getting:
G:\Test Projects\esp-azure\examples\iothub_client_sample_mqtt>idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'g:\test projects\esp-azure\examples\iothub_client_sample_mqtt\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory 'g:\test projects\esp-azure\examples\iothub_client_sample_mqtt\build'
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 'g:\test projects\esp-azure\examples\iothub_client_sample_mqtt'"...
-- Found Git: C:/Users/djosh/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/djosh/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/djosh/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/djosh/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file G:/Test Projects/esp-azure/examples/iothub_client_sample_mqtt/sdkconfig
Traceback (most recent call last):
File "C:/esp-idf/tools/kconfig_new/confgen.py", line 640, in <module>
main()
File "C:/esp-idf/tools/kconfig_new/confgen.py", line 260, in main
config = kconfiglib.Kconfig(args.kconfig)
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 947, in __init__
self._init(filename, warn, warn_to_stderr, encoding)
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 1085, in _init
self._parse_block(None, self.top_node, self.top_node).next = None
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 2982, in _parse_block
prev = self._parse_block(None, parent, prev)
File "C:\Users\djosh\.espressif\python_env\idf4.4_py3.8_env\lib\site-packages\kconfiglib.py", line 2970, in _parse_block
raise KconfigError(
kconfiglib.KconfigError: G:/Test Projects/esp-azure/examples/iothub_client_sample_mqtt/build/kconfigs_projbuild.in:6: 'G:/Test' not found (in 'source "G:/Test"'). Check that environment variables are set correctly (e.g. $srctree, which is unset or blank). Also note that unset environment variables expand to the empty string.
CMake Error at C:/esp-idf/tools/cmake/kconfig.cmake:266 (message):
Failed to run confgen.py
(C:/Users/djosh/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe;C:/esp-idf/tools/kconfig_new/confgen.py;--kconfig;C:/esp-idf/Kconfig;--sdkconfig-rename;C:/esp-idf/sdkconfig.rename;--config;G:/Test
Projects/esp-azure/examples/iothub_client_sample_mqtt/sdkconfig;--defaults;G:/Test
Projects/esp-azure/examples/iothub_client_sample_mqtt/sdkconfig.defaults;--env-file;G:/Test
Projects/esp-azure/examples/iothub_client_sample_mqtt/build/config.env).
Error 1
Call Stack (most recent call first):
C:/esp-idf/tools/cmake/build.cmake:528 (__kconfig_generate_config)
C:/esp-idf/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:7 (project)


-- Configuring incomplete, errors occurred!
See also "G:/Test Projects/esp-azure/examples/iothub_client_sample_mqtt/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
I am using the ESP-IDF 4.4-rc1 CMD to for this project.

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: IDF-azure can not compile

Postby chegewara » Thu Jan 20, 2022 2:10 pm

djoshi wrote: kconfiglib.KconfigError: G:/Test Projects/esp-azure/examples/iothub_client_sample_mqtt/build/kconfigs_projbuild.in:6: 'G:/Test' not found (in 'source "G:/Test"').
How about not using spaces in folders name?

djoshi
Posts: 53
Joined: Wed Jan 12, 2022 9:59 pm

Re: IDF-azure can not compile

Postby djoshi » Thu Jan 20, 2022 2:13 pm

Yes, that solved it.

Why does spacing cause an issue?

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: IDF-azure can not compile

Postby chegewara » Thu Jan 20, 2022 2:17 pm

Because its windows?

djoshi
Posts: 53
Joined: Wed Jan 12, 2022 9:59 pm

Re: IDF-azure can not compile

Postby djoshi » Thu Jan 20, 2022 2:22 pm

OK

Thanks

I got working

Who is online

Users browsing this forum: awegel, FrankJensen, Google [Bot], StanInexeon, zelenecul and 128 guests