Go Down

Topic: Arduino on Xcode Project — Official Thread (Read 369214 times) previous topic - next topic

avenue33

I am trying to bring my project from VisualMicro for Windows to embedXcode/Arduino. I managed to fix most of issues (there were not that many), but one still persists: I am not able to get SdFat library working.

[...]

I have opened a support ticket, got some good advice, but apparently not enough to fix the problem. Any more hints as where to look next?
I took the Datalogger.ino example and compiled it successfully on embedXcode.

Please ensure the main makefile lists

Code: [Select]
APP_LIBS_LIST = SPI SD

ILIA_KISIL

I am getting the noob error..... :-(

"Error: sketchbook path not found"

My setting in Arduino IDE is: "/Users/klm47954/Library/Mobile Documents/com~apple~CloudDocs/Arduino"
I also tried location "/Users/klm47954/Documents/Arduino"

But I get the same error....

P.s. My projects in the Arduino IDE work just fine with these locations set...

MacBookPro13,3 (15" TouchBar)
macOS 10.12.4 (16E195)
XCode Version 8.3.2 (8E2002)
Arduino IDE 1.8.2
embedXcode (not the + version because trying out)
Arduino Uno rev. 3

Error details:
/Users/klm47954/Library/Mobile Documents/com~apple~CloudDocs/Arduino/xcodeprojects/DSG-GearMonitor/DSG-GearMonitor/Makefiles/ArduinoAVR_180.mk:65: *** Error: sketchbook path not found.  Stop.

~/Library/Arduino15/preferences.txt:
board=uno
boardsmanager.additional.urls=
build.verbose=false
build.warn_data_percentage=75
compiler.cache_core=true
compiler.warning_level=none
console=true
console.auto_clear=true
console.error.file=stderr.txt
console.length=500
console.lines=4
console.output.file=stdout.txt
editor.antialias=true
editor.caret.blink=true
editor.code_folding=false
editor.divider.size=0
editor.external=false
editor.font=Monaco,plain,12
editor.indent=true
editor.invalid=false
editor.keys.alternative_cut_copy_paste=false
editor.keys.home_and_end_beginning_end_of_doc=false
editor.keys.shift_backspace_is_delete=true
editor.languages.current=
editor.linenumbers=false
editor.save_on_verify=true
editor.tabs.expand=true
editor.tabs.size=2
editor.update_extension=true
editor.window.height.default=600
editor.window.height.min=290
editor.window.width.default=500
editor.window.width.min=400
export.applet.separate_jar_files=false
export.application.fullscreen=false
export.application.platform=true
export.application.stop=true
export.delete_target_folder=true
gui.scale=auto
last.ide.1.8.2.daterun=1493300363
last.ide.1.8.2.hardwarepath=/Applications/Arduino.app/Contents/Java/hardware
last.screen.height=900
last.screen.width=1440
last.sketch.count=1
last.sketch.default.location=35,22,1405,878,712,6
last.sketch.default.path=/Users/klm47954/Library/Mobile Documents/com~apple~CloudDocs/Arduino/projects/DSG-GearMonitor/DSG-GearMonitor.ino
last.sketch0.location=35,22,1405,878,712,6
last.sketch0.path=/Users/klm47954/Library/Mobile Documents/com~apple~CloudDocs/Arduino/projects/DSG-GearMonitor/DSG-GearMonitor.ino
platform.auto_file_type_associations=true
preproc.color_datatype=true
preproc.enhanced_casting=true
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
preproc.output_parse_tree=false
preproc.save_build_files=false
preproc.substitute_floats=true
preproc.substitute_unicode=true
preproc.web_colors=true
programmer=arduino:avrispmkii
proxy.manual.hostname=
proxy.manual.password=
proxy.manual.port=
proxy.manual.type=HTTP
proxy.manual.username=
proxy.pac.url=
proxy.type=auto
recent.sketches=/Users/klm47954/Library/Mobile Documents/com~apple~CloudDocs/Arduino/projects/DSG-GearMonitor/DSG-GearMonitor.ino,/Users/klm47954/Library/Mobile Documents/com~apple~CloudDocs/Arduino/projects/bicolor8x8/bicolor8x8.ino,/Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino,/Applications/Arduino.app/Contents/Java/examples/01.Basics/BareMinimum/BareMinimum.ino
run.display=1
run.options=
run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=256
run.present.bgcolor=#666666
run.present.exclusive=true
run.present.stop.color=#cccccc
serial.databits=8
serial.debug_rate=9600
serial.parity=N
serial.port=/dev/cu.usbmodem1441
serial.port.file=cu.usbmodem1441
serial.port.iserial=75630313536351A0C0B2
serial.stopbits=1
sketchbook.path=/Users/klm47954/Library/Mobile Documents/com~apple~CloudDocs/Arduino
software=ARDUINO
target_package=arduino
target_platform=avr
update.check=true
update.id=9093398885407155017
upload.using=bootloader
upload.verbose=false
upload.verify=true

I think, I had similar issues but with Teensy board and therefore different makefile. Basically, the system couldn't find preferences.txt file in order to extract sketchbook path. This file is located in ~/Library/Arduino15/preferences.txt

In my case, the following line would through Error: sketchbook path not found because of the following part:

Code: [Select]
ifeq ($(wildcard $(SKETCHBOOK_DIR)),)
   SKETCHBOOK_DIR = $(shell grep sketchbook.path $(ARDUINO_180_LIBRARY_PATH)/preferences.txt | cut -d = -f 2)
endif


Namely with variable ARDUINO_180_LIBRARY_PATH. So I defined it just before this if statement:

Code: [Select]
ARDUINO_180_LIBRARY_PATH=~/Library/Arduino15

This worked for me.)

avenue33

#812
Jun 30, 2017, 04:31 pm Last Edit: Jun 30, 2017, 07:50 pm by avenue33
Code: [Select]
sketchbook.path=/Users/klm47954/Library/Mobile Documents/com~apple~CloudDocs/Arduino

The problem is, the path to the sketchbook contains special characters, which are not very friendly with GCC. ~ is considered as /Users/klm47954.

Please refer to Avoid spaces and special characters in the name and path of the projects.

dadamou1997

I am getting the error "/Users/Danny/Documents/Xcode/Arduino/Arduino/Makefiles/Step1.mk:279: *** uno board is unknown.  Stop.
"
and it shows this :



What should i do ?  :(  :(  :(

avenue33

I am getting the error "/Users/Danny/Documents/Xcode/Arduino/Arduino/Makefiles/Step1.mk:279: *** uno board is unknown.  Stop.
"
and it shows this :
[...]

What should i do ?  :(  :(  :(
Help yourself!

avenue33

The embedXcode User Manual is now available as a dedicated website.


rcwhiteley

Help yourself!


@avenue33. Just to let you know the User Manual is not available in the UK. I have the same error as above and am trying to solve it:
*** uno board is unknown.  Stop.

avenue33

#817
Dec 27, 2017, 05:29 am Last Edit: Dec 27, 2017, 09:41 am by avenue33
@rcwhiteley

The User Manual as an iBook has been discontinued since September 29, 2017.

The User Manual is now available as a website.


Diodac

Hi everyone!
I have a question. Where I can get embedXcode for El Capitan 10.11.6, Xcode 7 working with Teensy 3.2?
Thank you!!!

avenue33

Please check the download page of the embedXcode website.

Quote
For legacy systems with Xcode 8 on Mac OS X 10.11 El Capitan or macOS 10.12 Sierra, please select the embedXcode Legacy 8 installation package. It corresponds to embedXcode release 7.6.8.

Diodac

Hi avenue33,
Yeah I checked website and all available eX not working for me. Version recommended for OS X 10.11 I tried to install but during installation I get problems, eX asking for OS X 10.12.
I have pretty old MacBook Pro late 2009 with El Capitan 10.11.6 , Xcode 7.
I can't upgrade my Mac to Sierra because too old, the higher OS what I can use is 10.11.6 at the moment.

I need eX older version than is available on your website. But I didn't see around any option to download.
Thank you.

avenue33

Unfortunately, prior releases of embedXcode are no longer available.

Even if there were available, they would require very old releases of the IDEs, tools and libraries that are no longer available.

Sorry.

3Dogs

I am a new EmbedXcode user (and a novice Arduino user, to boot). I am trying to develop on the ESP-32 TTGO LORA-OLED board. I got some test code working under the Arduino IDE, but when I try to get it to compile under Xcode, it can't find some header files that are referenced from other header files.

I am using BLE, and I have included the BLE library here in the make file:
#
APP_LIBS_LIST = Wire BLE

But, some of the headers in BLE refer to files in a different location. For example, bleaddress.h references esp_gap_ble_api.h, which is located here:
~/Documents/Arduino/hardware/espressif/esp32/tools/sdk/include/bluedroid/api/esp_gap_ble_api.h

bluedroid is not a "library", so adding it to the makefile doesn't help. Also, explicitly adding the full path to the file doesn't work, either.

How do I tell Xcode (via EmbedXcode) to search this path:
~/Documents/Arduino/hardware/espressif/esp32/tools/sdk/include/bluedroid/api

??


avenue33


3Dogs

I created a ticket, and support responded with an updated make file that fixes the issue.

Now I am having a different problem. When I try to compile the code, I get the following error:

throw new BLEUuidNotFoundException;      error: exception handling disabled, use -fexceptions to enable

I searched for this error and found a thread that says to change -fno-exceptions to -fexceptions in platform.txt, but doing this had no effect (do I need to start from scratch on a new project?).


Go Up