Sloeber / arduino-eclipse-plugin

A plugin to make programming the arduino in eclipse easy
https://eclipse.baeyens.it/
415 stars 131 forks source link

V4 Folder names with spaces are not supported as good as in V3 #643

Closed giuliano-favro closed 7 years ago

giuliano-favro commented 7 years ago

`14:14:28 Incremental Build of configuration Release for project RCX400Focuser "D:\sviluppo\eclipse-test\arduinoPlugin\tools\make\make" all 'Building file: ../RCX400Focuser.cpp' 'Starting C++ compile' "D:\sviluppo\eclipse-test\/arduinoPlugin/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"D:\sviluppo\eclipse-test\arduinoPlugin\packages\arduino\hardware\avr\1.6.17\cores\arduino" -I"D:\sviluppo\eclipse-test\arduinoPlugin\packages\arduino\hardware\avr\1.6.17\variants\mega" -MMD -MP -MF"RCX400Focuser.cpp.d" -MT"RCX400Focuser.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../RCX400Focuser.cpp" -o "RCX400Focuser.cpp.o" 'Finished building: ../RCX400Focuser.cpp' ' ' make: *** No rule to make target 'D:/work/Progetti/Focheggiatore', needed by 'RCX400Focuser.elf'. Stop.

14:14:29 Build Finished (took 677ms) `

real project folder Path is "D:\work\Progetti\Focheggiatore telescopio\Firmware foc\RCX400Focuser"

jantje commented 7 years ago

Do not use spaces. They are known to cause problems.

giuliano-favro commented 7 years ago

I'm actually use version 3 of Arduino plugin, with project in the same path Without any problem...

Il 27/01/2017 01:24, jantje ha scritto:

Do not use spaces. They are known to cause problems.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Sloeber/arduino-eclipse-plugin/issues/643#issuecomment-275556285, or mute the thread https://github.com/notifications/unsubscribe-auth/AKy9G6MPZry_cUOXzYR802glDZiYJ9rtks5rWTkggaJpZM4LuoUo.

jantje commented 7 years ago

Version 3 and 4 use a different makefile. With the makefile in V3 the spaces were handled ok but there were issues with sh and bash in the path being a problem as many people have cygwin or mingw or git in their path. Also whether it works with spaces or not is very dependent on the platform.txt file provided with the board. This is out of my control. so in general: Better be safe than sorry : so do not use spaces.

giuliano-favro commented 7 years ago

Thanks for the response: I've converted the project to V4 without using space in dir names.

jantje commented 7 years ago

I have been looking in this issue more closely and basically make can not handle spaces. There are tricks, but it remain tricks.

wimjongman commented 7 years ago

Is ANT an option?

jantje commented 7 years ago

make is an integral part of the way cdt works. Even if we found a make that supports windows mac and linux it still would be hard to get things to work properly because of the commands coming from platform.txt. So basically sloeber does not fully control the command making it even harder to support spaces.

jantje commented 7 years ago

Thinking about this. gnu arm eclipse seems to have found a "working solution" though they do not have the "platform.txt" problem