Pages: 1 ... 24 25 [26] 27 28 ... 45   Go Down
Author Topic: Arduino on Xcode Project — Official Thread  (Read 133804 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Xcode code-sense doesn't seem to be powerful enough to manage virtual functions within classes. Serial.print() is a virtual function.
Yes. One should not forget that Apples does not care too much about C++ in Xcode. Xcode is mainly made for C and ObjC. Although they try to make a decent C++ compiler, proper C++ code sense is clearly not their top priority.
Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Xcode code-sense doesn't seem to be powerful enough to manage virtual functions within classes. Serial.print() is a virtual function.
Yes. One should not forget that Apples does not care too much about C++ in Xcode. Xcode is mainly made for C and ObjC. Although they try to make a decent C++ compiler, proper C++ code sense is clearly not their top priority.

I more than agree with you! Xcode is aimed at OS X and iOS.

Now, I'm not tied to Xcode and can consider another IDE. The tests of the makefiles were successful with NetBeans.

I only need some help from someone knowing NetBeans well.
Logged


Ivrea
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for this project!!  smiley smiley

the site is currently in maintenance, when he comes back online?
Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for this project!!  smiley smiley

the site is currently in maintenance, when he comes back online?

The maintenance only concerns the download section.

Weebly limits the size of the file to 5 MB, and both the documentation and the installation package are larger than that.

I'm currently assessing alternatives to Weebly.
« Last Edit: June 19, 2013, 05:55:55 am by avenue33 » Logged


Ivrea
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for this project!!  smiley smiley

the site is currently in maintenance, when he comes back online?

The maintenance only concerns the download section.

Weebly limits the size of the file to 5 MB, and both the documentation and the installation package are larger than that.

I'm currently assessing alternatives to Weebly.

I'm sorry, I need the latest version
you can load it on google drive, skydrive, mega, etc. ....?
thank you!
Logged

Ivrea
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the software works perfectly, but I commented several rows in arduino robot that blocked compilation. Is this normal?

thank you very much!
« Last Edit: June 22, 2013, 11:16:43 am by matti157 » Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

the software works perfectly, but I commented several rows in arduino robot that blocked compilation. Is this normal?

thank you very much!

Yes, it is.

Actually, it depends on which lines you have commented. For example, commenting an #include "library_name.h" may raise an error if the library is required.

Best method is trials and errors!
Logged


France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The next release of the User Manual is going to be an iBook available on the iBookStore.



Discover the preview!

The iBook has been submitted and is currently under review and awaiting validation.
« Last Edit: June 27, 2013, 01:34:57 pm by avenue33 » Logged


France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Please find a new release of embedXcode

embedXcode • Jun 30, 2013 release 55 • User Manual as E-Book

The User Manual is now a free e-book to be available on the iBookStore, allowing a much lighter installation package. The iBook is awaiting validation.



Dealing with iBooks Author has been especially painful and slow, due to my old Mac.

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• Tutorial: http://embedxcode.weebly.com/tutorial
Logged


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

Today I've downloaded and installed the release 55 of your package for Xcode (release 4.6.3) on a MBP with Mountain Lion installed (rev. 10.8.4). I'm using Arduino IDE 1.0.5 without any problems.

I've followed instructions in Zulkarnine video's, but when I try to compile the default project, I got a lot of errors. It seems like Xcode doesn't find Arduino libraries or some project files.

The first error is on line 38 of LocalLibrary.h:

#include "WProgram.h"

'WProgram.h' file not found

but Xcode does not report any error on lines 24, 30 and 32 with the same code.

Then, trying building the project, I got a lot of errors on file ArduinoRobot.cpp, where Xcode reports a lot of "XXXX was not declared in this scope" on line 6, 8, 18, 19, 22 and 25, as you can see in attached image

If I comment those lines, Xcode reports the same errors in Sensors.cpp

Any ideas or suggestions for me?
Thanks for your time and your work.


* XcodeArduino.png (246.46 KB, 1147x518 - viewed 28 times.)
Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Which release of Arduino are you using: 1.0.x or 1.5.x?

Edit the main makefile and change the line

Code:
EXCLUDE_LIBS = Firmata WiFi Esplora OneWire

into

Code:
EXCLUDE_LIBS = Firmata WiFi Esplora OneWire Robot_Control Robot_Control/utility Robot_Motor

Those folders include the libraries for the Arduino Robot.
Logged


France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Today I've downloaded and installed the release 55 of your package for Xcode (release 4.6.3) on a MBP with Mountain Lion installed (rev. 10.8.4). I'm using Arduino IDE 1.0.5 without any problems.

Thank you for the details. I'm using the same software configuration.

I've followed instructions in Zulkarnine video's, but when I try to compile the default project, I got a lot of errors. It seems like Xcode doesn't find Arduino libraries or some project files.

The first error is on line 38 of LocalLibrary.h:

#include "WProgram.h"

'WProgram.h' file not found

but Xcode does not report any error on lines 24, 30 and 32 with the same code.


Lines 38 et sq. are only called if the Arduino release is prior to 1.0, i.e. 23:

Code:
#elif defined(ARDUINO) && (ARDUINO < 100)  // Arduino 23 specific
#include "WProgram.h"

I don't experience any error with the pre-processing statements with the same software configuration.

Then, trying building the project, I got a lot of errors on file ArduinoRobot.cpp, where Xcode reports a lot of "XXXX was not declared in this scope" on line 6, 8, 18, 19, 22 and 25, as you can see in attached image

If I comment those lines, Xcode reports the same errors in Sensors.cpp

Any ideas or suggestions for me?
Thanks for your time and your work.

Please refer to my previous post for the solution.
Logged


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

Thank you very much for your answer!

The error in LocalLibrary.h is still present, but is not a problem.

Now all things works fine.
Is it possible to modify makefile for all future new projects?
« Last Edit: July 01, 2013, 01:46:36 pm by riccardobianchi » Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure, I plan to release a new version with the fix.

I'm still waiting for the e-book to be validated...
Logged


France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Please find a new release of embedXcode

embedXcode • Jul 02, 2013 release 56 • Stability enhancement for Arduino Robot

The following line in the main makefile excludes the libraries of the Arduino Robot.

Code:
EXCLUDE_LIBS = Firmata WiFi Esplora OneWire Robot_Control Robot_Control/utility Robot_Motor

The User Manual as an e-book is still under review for « quality assurance ».

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy smiley
Logged


Pages: 1 ... 24 25 [26] 27 28 ... 45   Go Up
Jump to: