Pro / open62541-esp32

open62541 OPC UA example for an ESP32 Microcontroller
The Unlicense
47 stars 19 forks source link

Performing configure step for 'open62541_build' FAILED #7

Open kogi84 opened 3 years ago

kogi84 commented 3 years ago

Hello, a great project, thank you for that! I get an error, maybe someone can help me? Where do I have to configure the compiler again? [855/921] Performing configure step for 'open62541_build' FAILED: esp-idf/open62541/open62541_build-prefix/src/open62541_build-stamp/open62541_build-configure cmd.exe /C "cd /D C:\Users\RK\eclipseWorkspaceESP32\open62541-esp32\build\open62541 && C:\Users\RK\esp\esp-idf-4.0.2\tools\cmake\3.13.4\bin\cmake.exe -DUA_ARCHITECTURE=freertosLWIP -DUA_ENABLE_AMALGAMATION=ON -DUA_NAMESPACE_ZERO=FULL -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=ON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=ON -DUA_ENABLE_TYPEDESCRIPTION=OFF -DUA_ENABLE_STATUSCODE_DESCRIPTIONS=ON -DUA_LOGLEVEL=300 -DUA_ENABLE_NODESET_COMPILER_DESCRIPTIONS=OFF -DUA_FILE_NS0_BLACKLIST=C:/Users/RK/eclipseWorkspaceESP32/open62541-esp32/components/open62541/../../nodes_blacklist.txt -GNinja C:/Users/RK/eclipseWorkspaceESP32/open62541-esp32/components/open62541/repo && C:\Users\RK\esp\esp-idf-4.0.2\tools\cmake\3.13.4\bin\cmake.exe -E touch C:/Users/RK/eclipseWorkspaceESP32/open62541-esp32/build/esp-idf/open62541/open62541_build-prefix/src/open62541_build-stamp/open62541_build-configure" -- The C compiler identification is unknown -- The CXX compiler identification is unknown

igrr commented 3 years ago

I suspect the issue is that CMake step for open62541 is started without passing the C compiler from the top-level project. Therefore CMake tries to find the compiler. But on Windows, it is quite common to not have a C compiler in PATH (or not have it at all), therefore this step fails. I think this can be fixed by passing the Xtensa cross-compiler to open62541_build subproject. I don't have a Windows environment now to verify this, though.