I get a new computer with macOS Catalina. Now I want't to install the developer environment. I use the following commands:
sudo easy_install pip
download : https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.ta...
mkdir -p ~/esp
cd ~/esp
tar -xzf ~/Downloads/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz
add this: “export PATH=$HOME/esp/xtensa-esp32-elf/bin:$PATH” to ~/.profile without quotes ””
Git clone the OVMS ESP IDF repository:
git clone *https://github.com/openvehicles/esp-idf.git* <https://github.com/openvehicles/esp-idf.git>
cd esp-idf
git submodule update --init –recursive
-add this: “export IDF_PATH=~/esp/esp-idf” to ~/.profile without quotes ””
Git clone the OVMS v3 repository and init the build configuration:
git clone *https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3.git* <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3.git>
cd Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3
git submodule update --init --recursive
cp support/sdkconfig.default.hw31 sdkconfig
make menuconfig
If I run the make app command I get the following error:
make app
Toolchain path: /Users/kommykt/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
App "ovms3" version: 3.2.005-81-g00ab9db0
Generating esp32.project.ld
Traceback (most recent call last):
File "/Users/kommykt/esp/esp-idf/tools/ldgen/ldgen.py", line 113, in <module>
main()
File "/Users/kommykt/esp/esp-idf/tools/ldgen/ldgen.py", line 88, in main
sections_infos.add_sections_info(sections_info_file_obj)
File "/Users/kommykt/esp/esp-idf/tools/ldgen/generation.py", line 618, in add_sections_info
raise ParseException("File " + sections_info_file.name + " is not a
valid sections info file. " + p.message)
pyparsing.ParseException: File /Users/kommykt/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/app_trace/libapp_trace.a.sections_info is not a valid sections info file. (at char 0), (line:1, col:1)
make: *** [/Users/kommykt/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/esp32/esp32.project.ld] Error 1
On 26 Oct 2019, at 19:57, Tamás Kovács <kommykt@gmail.com> wrote:
I get a new computer with macOS Catalina. Now I want't to install the developer environment. I use the following commands:
sudo easy_install pip
download : https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.ta... <https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz>
mkdir -p ~/esp
cd ~/esp
tar -xzf ~/Downloads/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz
add this: “export PATH=$HOME/esp/xtensa-esp32-elf/bin:$PATH” to ~/.profile without quotes ””
<>Git clone the OVMS ESP IDF repository:
<>- git clone https://github.com/openvehicles/esp-idf.git <https://github.com/openvehicles/esp-idf.git>
cd esp-idf
git submodule update --init –recursive
-add this: “export IDF_PATH=~/esp/esp-idf” to ~/.profile without quotes ””
<>Git clone the OVMS v3 repository and init the build configuration:
git clone https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3.git <https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3.git>
cd Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3
git submodule update --init --recursive
cp support/sdkconfig.default.hw31 sdkconfig
make menuconfig
If I run the make app command I get the following error:
make app Toolchain path: /Users/kommykt/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: crosstool-ng-1.22.0-80-g6c4433a Compiler version: 5.2.0 App "ovms3" version: 3.2.005-81-g00ab9db0 Generating esp32.project.ld Traceback (most recent call last): File "/Users/kommykt/esp/esp-idf/tools/ldgen/ldgen.py", line 113, in <module> main() File "/Users/kommykt/esp/esp-idf/tools/ldgen/ldgen.py", line 88, in main sections_infos.add_sections_info(sections_info_file_obj) File "/Users/kommykt/esp/esp-idf/tools/ldgen/generation.py", line 618, in add_sections_info raise ParseException("File " + sections_info_file.name <http://sections_info_file.name/> + " is not a valid sections info file. " + p.message) pyparsing.ParseException: File /Users/kommykt/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/app_trace/libapp_trace.a.sections_info is not a valid sections info file. (at char 0), (line:1, col:1) make: *** [/Users/kommykt/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/esp32/esp32.project.ld] Error 1
As it happens I've been trying the same on my mac (10.15). I created a little install script and a seperate environment script.
dev.sh :
#!/bin/sh
sudo easy_install pip
pip install --user pyserial
brew install ccache cmake ninja
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -m pip install --user -r /Users/plord/src/ovms/esp/esp-idf/requirements.txt
set -e
XTENSA=xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz
if [ ! -d esp ] then if [ ! -f ${XTENSA} ] then wget https://dl.espressif.com/dl/${XTENSA} fi mkdir esp cd esp tar -xzf ../${XTENSA}
git clone https://github.com/openvehicles/esp-idf.git
cd esp-idf
git submodule update --init --recursive
cd ../..
fi
. env.sh
if [ ! -d Open-Vehicle-Monitoring-System-3 ] then git clone https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3.git cd Open-Vehicle-Monitoring-System-3 else cd Open-Vehicle-Monitoring-System-3 git pull fi cd vehicle/OVMS.V3 git submodule update --init --recursive cp support/sdkconfig.default.hw31 sdkconfig make menuconfig make app
env.sh :
PATH=$(pwd)/esp/xtensa-esp32-elf/bin:$PATH export PATH
IDF_PATH=$(pwd)/esp//esp-idf export IDF_PATH
Build completed
I didn't see any obvious difference to what you ran.
Pete
participants (2)
-
Peter Lord -
Tamás Kovács