Summary: | devel/arduino18: arduino-builder not recognize other hardware library | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Raffeale <dcp2k> | ||||||
Component: | Individual Port(s) | Assignee: | Kyle Evans <kevans> | ||||||
Status: | New --- | ||||||||
Severity: | Affects Only Me | CC: | kevans, swills, tomek | ||||||
Priority: | --- | Flags: | linimon:
maintainer-feedback?
(kevans) |
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Raffeale
2021-01-13 05:45:45 UTC
Hi, Where is WiFi.h located? Created attachment 221532 [details]
this is a patch file for freebsd arduino-builder
i have resolved it ,the problem is the arduino-builder create file in /dev/null and failed , i have made a patch ,just put patch file into /usr/ports/devel/arduino-builder/files and recompile arduino-builder from port. (In reply to Raffeale from comment #3) Hi, I'm afraid it looks like the file you've attached is just an instruction that you have a patch. Can you upload the patch in question as well, please? :-) (In reply to Kyle Evans from comment #4) what's kind of file you need? (In reply to Kyle Evans from comment #1) WiFi.h is a library in esp32 (In reply to Raffeale from comment #5) Preferably a patch, since this is what the file you've uploaded contains: https://bz-attachments.freebsd.org/attachment.cgi?id=221532 --- src/arduino.cc/builder/utils/utils.go.orig 2021-01-13 22:48:24.097459000 +0800 +++ src/arduino.cc/builder/utils/utils.go 2021-01-13 22:49:18.264758000 +0800 @@ -404,7 +404,7 @@ func NULLFile() string { if runtime.GOOS == "windows" { return "nul" } - return "/dev/null" + return "/tmp/null" } func MD5Sum(data []byte) string { patch code is above (In reply to Kyle Evans from comment #7) im sorry , maybe my network is not good! so i put the patch code in a comment! Yup, received, thanks! I'll need to look into this a little bit more -- that patch helping implies that something else has gone terribly wrong here. Hello world :-) Thanks to Kyle Evans for the port and to Raffeale for this tutorial on using Arduino18 with ESP32: https://forums.freebsd.org/threads/a-guide-for-installing-esp32-board-for-arduino-on-freebsd12.78408/ My build ends up with: Linking everything together... "/usr/local/arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc" -nostdlib "-L/usr/local/arduino/hardware/espressif/esp32/tools/sdk/lib" "-L/usr/local/arduino/hardware/espressif/esp32/tools/sdk/ld" -T esp32_out.ld -T esp32.project.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception -Wl,--start-group "/tmp/arduino_build_54872/sketch/sketch_feb09a.ino.cpp.o" "/tmp/arduino_build_54872/core/core.a" -lgcc -lesp32-camera -lpe -lfatfs -lesp-tls -lnet80211 -lsoc -lwpa_supplicant -lapp_update -ldetection -lmicro-ecc -lesp_adc_cal -ltcpip_adapter -lapp_trace -lwear_levelling -lcoap -lesp32 -lcore -lesp_ringbuf -llibsodium -lsmartconfig -lprotobuf-c -lxtensa-debug-module -limage_util -lnewlib -lunity -lm -lcoexist -lface_detection -ljson -lcxx -lesp_websocket_client -lwpa2 -ltcp_transport -lulp -lesp_event -lesp_http_server -lmqtt -lhal -lmbedtls -lfreertos -lwps -lnghttp -lface_recognition -lethernet -lbootloader_support -ldetection_cat_face -lespcoredump -lnvs_flash -lfr -lphy -lopenssl -ljsmn -lpp -llwip -lwifi_provisioning -llog -lespnow -lc_nano -lvfs -lesp_https_server -lmdns -lbtdm_app -lfreemodbus -lsmartconfig_ack -lfd -lasio -lfb_gfx -lsdmmc -lrtc -lpthread -lconsole -lmesh -lc -lesp_http_client -lspiffs -lprotocomm -lesp_https_ota -lwpa -ldriver -lbt -lspi_flash -lexpat -lheap -ldl -lefuse -lod -lstdc++ -Wl,--end-group -Wl,-EL -o "/tmp/arduino_build_54872/sketch_feb09a.ino.elf" "/usr/local/arduino/hardware/espressif/esp32/tools/esptool/esptool" --chip esp32 elf2image --flash_mode "dio" --flash_freq "80m" --flash_size "4MB" -o "/tmp/arduino_build_54872/sketch_feb09a.ino.bin" "/tmp/arduino_build_54872/sketch_feb09a.ino.elf" fork/exec /usr/local/arduino/hardware/espressif/esp32/tools/esptool/esptool: no such file or directory Error compiling for board ESP32 Wrover Module. I am using port provided xtensa 32 elf tools. The problems that remains: 1. Manual liniking xtensa tools to arduino hardware locations. 2. esptool does not run as executable (its a python script that calls `python`). I just need this like one or two times use and forget but would be nice to have it working on FreeBSD out of the box :-) Thanks! :-) Tomek Comment on attachment 221532 [details]
this is a patch file for freebsd arduino-builder
--- src/arduino.cc/builder/utils/utils.go.orig 2021-01-13 22:48:24.097459000 +0800
+++ src/arduino.cc/builder/utils/utils.go 2021-01-13 22:49:18.264758000 +0800
@@ -404,7 +404,7 @@ func NULLFile() string {
if runtime.GOOS == "windows" {
return "nul"
}
- return "/dev/null"
+ return "/tmp/null"
}
func MD5Sum(data []byte) string {
The content of attachment 221532 [details] has been deleted for the following reason:
this isn't really a diff.
Created attachment 246624 [details]
utils.go.diff
Attempt to really make this into a patch that Bugzilla will like.
|