[eclipse-arduino-dev] Re: Is it possible?

  • From: Roberto Lo Giacco <rlogiacco@xxxxxxxxx>
  • To: "eclipse-arduino-dev@xxxxxxxxxxxxx" <eclipse-arduino-dev@xxxxxxxxxxxxx>
  • Date: Sat, 26 Mar 2016 16:17:10 +0100

In order to verify it wasn't my Mars.2 configuration I downloaded and
unpacked the latest product win64.2016-03-23_03-43-04.tar.gz but I'm
getting the exact same result with a freshly created project...

Is it just me? I'm using Win10, 64bits, obviously...

On Sat, Mar 26, 2016 at 3:25 PM, Roberto Lo Giacco <rlogiacco@xxxxxxxxx>
wrote:

Thanks Jan for the quick answer: my replies below.

Il sabato 26 marzo 2016, Jan Baeyens <jan@xxxxxxxxxx> ha scritto:

Is this a upgraded project?


No, brand new created from scratch using Eclipse Mars.2 C/C++ and plugin
installed from update site. Is it possible I should have installed
something in addition to the Arduino Eclipse Extensions?
That's the only plugin I've picked from the selection as it is still
uncategorised.


Because the .ino.cpp is created in a different way between V2.4 and V3 it
may be that your toolchain is not set correctly.
As I advice (in the video I need to finish before Thursday) the safest
way is to start from a fresh workspace.


I know ;) I went for a fresh project as it was just a test.


If you insist to get this project working you can check following things.
(Note that I insist on updating some projects so I know what has changed)


Not my case, but I will try updating one project after fixing this just to
better understand the changes.

Does the .ino.cpp file exist?


 Yes, in the project root

does the .ino.cpp file contain #ifdef file gards?


Yes, #ifdef __In_ECLIPSE__


is the preprocessor part of the toolchain project properties->build



I don't see the Builders section at all!


do you have a arduino folder in the root of the project (if yes delete
and go to project properties->arduino->correct and select apply ok)


No I don't have the folder.

do you have a Libraries (note the capital L) folder in the root of the
project (if so delete the folder)


 No I don't have the folder.

Check path and symbols for bad links (like arduino and Libraries)

Check the correctness of the exclude filter

Note that since I added the autoLibrary include I prefer making a new
project for to fixing the exclude filter alone.


I don't have a Paths and Symbols preference at all!!!

WTF?




Best regards
Jantje

Op 26/03/2016 om 3:32 schreef Roberto Lo Giacco:

After an update I'm now getting the following when I try to compile:

**** Incremental Build of configuration Release for project serial ****
"C:\\Software\\Eclipse CPP\\arduinoPlugin\\tools\\make\\make" all
process_begin: CreateProcess(NULL, echo "Building file: ../.ino.cpp",
...) failed.
subdir.mk:24: recipe for target '.ino.cpp.o' failed
make (e=2): Impossibile trovare il file specificato.

make: *** [.ino.cpp.o] Error 2

Build Finished (took 605ms)

I then tried to remove the space in the folder name, but with no luck.

I'm using version *3.0.0.20160323022 *and the translation for the
italian part is "Unable to find specified file"...

Isn't the .ino.cpp file the wrapper for ino files?

I then tried to work around this by creating a .cpp project, but I got a
similar error:

**** Build of configuration Release for project test2 ****
"C:\\Software\\EclipseCPP\\arduinoPlugin\\tools\\make\\make" all
subdir.mk:18: recipe for target 'test2.cpp.o' failed
process_begin: CreateProcess(NULL, echo "Building file: ../test2.cpp",
...) failed.
make (e=2): Impossibile trovare il file specificato.

make: *** [test2.cpp.o] Error 2

Build Finished (took 318ms)

Please note I've moved the installation folder to one without the space.

Last hint: in the subdir.mk file I've an error indicator beside the
second line of the following snippet:

test.cpp.o: ../test.cpp
@echo 'Building file: $<'
@echo 'Starting C++ compile'
"C:\Users\rlogiacco\Desktop\EclipseCPP\arduinoPlugin\tools\arduino\avr-gcc\4.8.1-arduino5/bin/avr-g++"
-c -g -Os -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections
-fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L
-DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR
-I"C:\Users\rlogiacco\Desktop\EclipseCPP\arduinoPlugin\packages\arduino\hardware\avr\1.6.10\cores\arduino"
-I"C:\Users\rlogiacco\Desktop\EclipseCPP\arduinoPlugin\packages\arduino\hardware\avr\1.6.10\variants\standard"
-MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -D__IN_ECLIPSE__=1 -x c++ "$<"  -o
 "$@"   -Wall
@echo 'Finished building: $<'
@echo ' '

Also note I've tried again moving the installation folder to my desktop,
just to ensure it wasn't something related to file permissions or anything
related to the path.












PNG image

PNG image

PNG image

Other related posts: