Skip to content

Fix build error on MacOSX #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fix build error on MacOSX #200

wants to merge 1 commit into from

Conversation

pg-ito
Copy link

@pg-ito pg-ito commented Feb 12, 2017

I fixed build error on MacOSX.
Please consider merge.

build-log comparison

  • befor
"/path/to/Arduino/hardware/espressif/esp32/tools/esptool" --chip esp32 elf2image --flash_mode "dio" --flash_freq "80m" --flash_size "4MB" -o "/var/folders/XXXXXXXX/esp32_hello_world3.ino.bin" "/var/folders/XXXXXXXX/esp32_hello_world3.ino.elf"
  • after
"/path/to/Arduino/hardware/espressif/esp32/tools/esptool.py" --chip esp32 elf2image --flash_mode "dio" --flash_freq "80m" --flash_size "4MB" -o "/var/folders/XXXXXXXX/esp32_hello_world3.ino.bin" "/var/folders/XXXXXXXX/esp32_hello_world3.ino.elf"

@me-no-dev
Copy link
Member

it si correct. Did you run get.py?

@pg-ito
Copy link
Author

pg-ito commented Feb 12, 2017

Thanks your reply.
Yes, I run get.py.
I did it according to the following procedure.

https://github.com/espressif/arduino-esp32#instructions-for-mac

@me-no-dev
Copy link
Member

you should have the esptool binary then ;) it should be there with the esptool.py and the rest.

@pg-ito
Copy link
Author

pg-ito commented Feb 12, 2017

I have esptool binary in the same directory of esptool.py.
But, esptool binary doesn't work...
(I'm using python 2.7.13)

Error loading Python lib '/var/folders/XX/XXXXXXXXXXXXXXXXXXXXX/T/_XXXXXXX/Python': dlopen(/var/folders/XX/XXXXXXXXXXXXXXXXXXXXX/T/_XXXXXXX/Python, 10): no suitable image found.  Did find:
	/var/folders/XX/XXXXXXXXXXXXXXXXXXXXX/T/_XXXXXXX/Python: code signature invalid for '/var/folders/XX/XXXXXXXXXXXXXXXXXXXXX/T/_XXXXXXX/Python'

@dibaggioj
Copy link

I'm also having the same error as @pg-ito is (#218).

After I tried @pg-ito's fix here, and made sure the pyserial was installed, the Arduino IDE successfully compiled my project.

@me-no-dev
Copy link
Member

are you also running on older OSX than 10.12?

@dibaggioj
Copy link

@me-no-dev yes, I'm on MacOSX 10.10.5 and upgrading is not an option for me, unfortunately.

@me-no-dev
Copy link
Member

@pg-ito give the esptool in this zip a go and report :)
esptool-mac-10.9.zip

@dibaggioj
Copy link

@me-no-dev that new esptool is working for me on MacOSX 10.10.5

@pg-ito
Copy link
Author

pg-ito commented Mar 6, 2017

I'm using MacOSX v.10.10.5(14F2109)on Mac mini (Late 2014).

Thanks for new esptool (^ ^)
I'll try it.

@me-no-dev me-no-dev closed this Aug 1, 2017
darkxst pushed a commit to darkxst/arduino-esp32 that referenced this pull request Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants