Go Down

Topic: Arduino on Xcode Project — Official Thread (Read 307247 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!

Go Up