Closed Terstegge closed 1 year ago
Just tried out KSDeamons fork (which integrated some more PRs), and now it works, at least with arduino-1.8.16. With the newest arduino version (arduino-2.1.0, obviously with a new electron-based UI), there are still problems. But for me thats okay - I will simply use the older arduino with the latest ESP8266 version.
For Generic ESP8266
Using the cmake toolchain technyon/Arduino-CMake-Toolchain (24 May 2024)
on ESP8266 build package 3.1.2 Arduino IDE 1.8.29
This top dir CMakeLists.txt works around the Build.opt issue. This has to go before the first 'project(...)'
cmake_minimum_required(VERSION 3.14.0)
#
# For the ESP8266, it needs a build.opt with compilation directive specialisations
# if nothing else, an empty file is required in a subdir called core
#
# create a directory when CMake generates the build system,
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/core)
file(TOUCH ${CMAKE_BINARY_DIR}/core/build.opt)
project(blinker CXX)
...
Hello, I just tried out to build the examples for ESP8266 generic board:
----------------------------------------- log starts here--------------------------------
------------------------------ log ends here ----------------------------------
I also tried out technyon's fork which stated in the readme that a bug with a missing build.opt was fixed. Sadly this version produces the same error. I also tried out to disable the compiler check by setting some variables in the CMakeLists.txt (just can't remember the details...), but then the same error occured during compiling the first cpp file for the core library. So the problem in both cases (compiler test and regular lib compile) is that .../core/build.opt is missing. Any ideas what could be wrong? I am trying to build the examples for a generic ESP8266 board.
BR, Andreas