plerup / makeEspArduino

A makefile for ESP8266 and ESP32 Arduino projects
GNU Lesser General Public License v2.1
513 stars 131 forks source link

build_opt.h: No such file or directory #189

Closed lugdunum-1964 closed 1 year ago

lugdunum-1964 commented 1 year ago

After a "make clean" or during the first make I get an error: build_opt.h: No such file or directory

The culprit appears to be the default multi-threaded make. Setting BUILD_THREADS=1 or running "make -j 1" fixes the issue.

Maybe there is a dependency missing somewhere?

-- Regards Lyon Lemmens

everslick commented 1 year ago

I have the same, but I worked around it by sticking

BUILD_OPT_H := $(shell touch $(BUILD_DIR)/build_opt.h)

in my Makefile.

lugdunum-1964 commented 1 year ago

Thanks!! That almost works. BUILD_DIR may not exist, so I changed it to:

BUILD_OPT_H := $(shell test -d $(BUILD_DIR) || mkdir -p $(BUILD_DIR); touch $(BUILD_DIR)/build_opt.h )

plerup commented 1 year ago

Ok, that was an ugly prebuild thingy in platform.txt. Will fix

lugdunum-1964 commented 1 year ago

Cheers!

plerup commented 1 year ago

Finally got around to fix this. Please check latest version.