Pages: 1 ... 30 31 [32]   Go Down
Author Topic: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches  (Read 104096 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Jantje,

I have two further questions:

1) Is it possible to add these options to the default settings when generating new projects? Otherwise you have to edit the parameters each time individually.

2) Up to now I used the version from the marketplace. New projects are generated as cpp / h instead of ino files. I dont like the ino stuff very much. With larger projects it is really hard to work with. Is it possible to switch to the cpp / h generation?

Best

Axel
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1916
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Axel
1)  I created a github issue https://github.com/jantje/arduino-eclipse-plugin/issues/186
It contains a work around that will survive changes to the project but need to be done for each new project.
2) I'm not sure I understand you. V2.2 (from the market place) does not support ino files. As you don't like .ino that should be ok, isn't it?

Jantje
Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Jantje,

thank you!

With respect to point 2) Yes I am fine with the marketplace version. I will continue to use that. I was just wondering if this is a different version/branch and you will focus on the ino version in the future. But to be shure , I am not against ino and especially the Arduino IDE. Maybe I am an old fashion developer used to .cpp and .h structures ;-)

Best

Axel

 
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1916
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

ino support is a add on.
You can read my opinion on ino files here: http://blog.baeyens.it/#post13
Best regards
Jantje
Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Apologies to all,

I believe that this had been solved somewhere but for some reason my searches doesn't show up anything. I seem to be still having the multiple definitions problem. I installed the latest version via git/maven on ubuntu 32bit and using Arduino 1.5.7.

Using the menu in the IDE to import the a library in this case the LiquidCrystal library adds the folders etc to the project. Once I try to verify/compile the compiler complains of the LiquidCrystal.h etc having been defined in the files in the libraries folder in the Arduino IDE folder.

The LiquidCrystal.h file does contain include guards.

Did I missed something while installing or setting the Eclipse Arduino IDE?

Thank you.
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1916
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

can you provide a screenshot and the console output?
Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm trying to get the Eclipse plugin to work, but somehow I get an error when I build my code.
I'm using the Eclipse Arduino Package V2.3_win32.2014-07-12_02-06-35 from the Bayens page and the Arduino IDE 1.5.7. Since I'm using Windows 7 64Bit, I also use MinGW for the compiler.
Every time I try to build, I get this error:

14:04:02 **** Incremental Build of configuration Release for project test ****
make all
'Building file: ../.ino.cpp'
'Starting C++ compile'
"H:/arduino/arduino/hardware/tools/avr/bin/avr-g++" -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=157 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR     -I"H:\arduino\arduino\hardware\arduino\avr\cores\arduino" -I"H:\arduino\arduino\hardware\arduino\avr\variants\mega" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
subdir.mk:18: recipe for target '.ino.cpp.o' failed
make: *** [.ino.cpp.o] Error -1073741515


Other than setting the Arduino IDE path in Eclipse, I did not do anything.
The file I'm trying to compile looks like this:

#include <test.h>
void setup(){
}
void loop() {
}


Eclipse also shows 2 errors in my project:
- make: *** [test.cpp.o] Error -1073741515
- recipe for target 'test.cpp.o'failed
The second error points to the file ./Release/subdir.mk


Am I missing some imports or something like that? I really appreciate your support!

Best regards
« Last Edit: August 16, 2014, 07:21:32 am by wonglokat » Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1916
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@wonglokat
This is probably related to the fact arduino no longer delivers make with Arduino IDE 1.5.7
Did you install a make?
Can you try with Aduino IDE 1.5.7?
Best regards
Jante
Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Jantje,

thanks for your quick reply. I installed make from MinGW and Eclipse does find it, when I remove make I get a different error.
With the Arduino IDE, I can compile fine.
What do you mean by "Can you try with Aduino IDE 1.5.7"?

Best regards

//Edit: I switched to Arduino IDE 1.5.6-r2 and with that everything seems to work fine so far. Thanks for this great plugin!
« Last Edit: August 16, 2014, 08:54:03 am by wonglokat » Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1916
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

oeps that had to be duino IDE 1.5.6 as that one comes with the makefile.
Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Pages: 1 ... 30 31 [32]   Go Up
Jump to: