makeEspArduino icon indicating copy to clipboard operation
makeEspArduino copied to clipboard

build_opt.h: No such file or directory

Open lugdunum-1964 opened this issue 2 years ago • 4 comments

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

lugdunum-1964 avatar Nov 14 '22 06:11 lugdunum-1964

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

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

in my Makefile.

everslick avatar Nov 14 '22 07:11 everslick

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 )

lugdunum-1964 avatar Nov 14 '22 07:11 lugdunum-1964

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

plerup avatar Nov 14 '22 09:11 plerup

Cheers!

lugdunum-1964 avatar Nov 17 '22 22:11 lugdunum-1964

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

plerup avatar May 14 '23 17:05 plerup