Go Down

Topic: Arduino on Xcode Project — Official Thread (Read 163731 times) previous topic - next topic

Ferio

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.

avenue33


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.

matti157

thanks for this project!!  :) :)

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

avenue33

#378
Jun 19, 2013, 10:15 am Last Edit: Jun 19, 2013, 12:55 pm by avenue33 Reason: 1

thanks for this project!!  :) :)

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.

matti157



thanks for this project!!  :) :)

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!

matti157

#380
Jun 22, 2013, 05:19 pm Last Edit: Jun 22, 2013, 06:16 pm by matti157 Reason: 1
the software works perfectly, but I commented several rows in arduino robot that blocked compilation. Is this normal?

thank you very much!

avenue33


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 [font=Courrier]#include "library_name.h"[/font] may raise an error if the library is required.

Best method is trials and errors!

avenue33

#382
Jun 27, 2013, 08:19 pm Last Edit: Jun 27, 2013, 08:34 pm by avenue33 Reason: 1
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.

avenue33

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

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.

avenue33

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

Edit the main makefile and change the line

Code: [Select]
EXCLUDE_LIBS = Firmata WiFi Esplora OneWire

into

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

Those folders include the libraries for the Arduino Robot.

avenue33


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: [Select]
#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.

#387
Jul 01, 2013, 08:41 pm Last Edit: Jul 01, 2013, 08:46 pm by riccardobianchi Reason: 1
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?

avenue33

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

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

avenue33

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: [Select]
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 :)

Go Up