Yes. I test this library under Win10.
The steps are as follow:
1) Clone the repository
Code: Select all
git clone --recursive https://github.com/espressif/esp-idf.git
git clone https://github.com/loboris/ESP32_TFT_library.git
git clone https://github.com/loboris/ESP32_spiffs_example.git
2) Copy "component.mk" to "ESP32_TFT_library/components/spiffs_image" from "ESP32_spiffs_example/components/spiffs_image"
copy "component.mk" to "ESP32_TFT_library/components/mkspiffs" from "ESP32_spiffs_example/components/mkspiffs"
3) Modify "ESP32_TFT_library/components/spiffs_image/Makefile.projbuild"
4) Replace the whole directory 'ESP32_TFT_library\components\mkspiffs' with 'ESP32_spiffs_example\components\mkspiffs'
5) Execute 'make menuconfig', select 'Running on ESP-WROVER_KIT' and configure 'Default serial port'
6) Ececuting 'make clean','make flash' and 'make copyfs' are ok.
But, I can't execute "make flashfs" and "make makefs"
Can you help me fix the error? Thank you!
Code: Select all
aclas@Lenovo-PC MSYS /d/AWEN/esp/ESP32_TFT_library
$ make makefs
Makefile:65: 警告:未定义的变量“TARGET_CXXFLAGS”
Building mkspiffs ...
main.cpp: 在函数‘void processArgs(int, const char**)’中:
main.cpp:591:83: 错误:在 C++98 中‘args’必须由构造函数而不是‘{...}’初始化
std::vector<TCLAP::Arg*> args = {&packArg, &unpackArg, &listArg, &visualizeArg};
^
main.cpp:591:83: 错误:could not convert ‘{(& packArg), (& unpackArg), (& listArg), (& visualizeArg)}’ from ‘<花括号内的初始值列表>’ to ‘std::vector<TCLAP::Arg*>’
make[1]: *** [Makefile:65:mkspiffs.exe] 错误 1
make: *** [/d/AWEN/esp/ESP32_TFT_library/components/mkspiffs/Makefile.projbuild:10:mkspiffs] 错误 2
aclas@Lenovo-PC MSYS /d/AWEN/esp/ESP32_TFT_library
$ make flashfs
Makefile:65: 警告:未定义的变量“TARGET_CXXFLAGS”
Building mkspiffs ...
main.cpp: 在函数‘void processArgs(int, const char**)’中:
main.cpp:591:83: 错误:在 C++98 中‘args’必须由构造函数而不是‘{...}’初始化
std::vector<TCLAP::Arg*> args = {&packArg, &unpackArg, &listArg, &visualizeArg};
^
main.cpp:591:83: 错误:could not convert ‘{(& packArg), (& unpackArg), (& listArg), (& visualizeArg)}’ from ‘<花括号内的初始值列表>’ to ‘std::vector<TCLAP::Arg*>’
make[1]: *** [Makefile:65:mkspiffs.exe] 错误 1
make: *** [/d/AWEN/esp/ESP32_TFT_library/components/mkspiffs/Makefile.projbuild:10:mkspiffs] 错误 2