jet_:
So I guess you are rei-vilo from github? Is timknapen here too? I'm jeromelebel. So we are back only 2 version of Xcode project (for each repository). This is a total mess.
Yes, it is.
Actually, I started the project. Tim Knapen tool a branch. Then I closed my repository and now I'm working on a fork.
I issued pull requests to Tim Knapen repository.
I fully agree we need to pool resources and maintain one single repository.
Because I own a chipKIT UNO32 board, I use MPIDE which can address both platforms.
My goal is to build the makefile(s) I could use for Arduino and chipKIT boards from Xcode.
jet_:
by the way, why 4_3??? Xcode 4.3 is not released?
I've made a confusion about which program was concerned by the .2: .2 stands for Xcode 4.2 and not for the second release of the makefile.
It's fixed now.
To avoid confusion, I posted the MPIDE on Xcode 4.2 project on this mpideOnXCode42 repository.
Creating another repository not related to any previous repositories, was definitely not what I had in mind... The number of repository is not a problem if all are forks from each others, and if in all branches contains only one version of the code.
I hoped to convince "timknapen" to remove either 4_2 or 4_3 from his repository (and eventually he could create a branch to work on the second version), then you and I would have to merge, and eventually apply our diffs again on the remaining Xcode project.
HaakonStorm:
Regarding the xcodeuino.com site, I can have something up and running just as
soon as we spec our requirements. I am thinking along the lines of a simple Joomla!
installation with a 1.6-based Template from somewhere, with modules for
jet_:
Creating another repository not related to any previous repositories, was definitely not what I had in mind... The number of repository is not a problem if all are forks from each others, and if in all branches contains only one version of the code.
I opened a new repository because I don't want to impose the MPIDE on Xcode project on Arduino on Xcode. Reviewing and accepting a pull request ask for time.
Converting a repository into a branch isn't that difficult.
Both projects share the same issues.
I think Haakon Storm has the solution with the xcodeuino.com website.
I still believe it would be better to either create a branch in your repository, or even fork your own fork. That way, ArduinoOnXcode and your project could be benefit from each others.
Sorry for the mess. I just wanted to quickly share my findings about the code sense issue on XCode4 with Avenue and all the others.
Because I didn't really know if my solution was stable and I don't understand one bit of git, I just created a new folder and appended _3.
I had already run in trouble with git before, so there was also a _2 folder... had nothing to do with XCode 4.2 ... uhm yes... sorry about that.
I've cleaned it up now. There is again only one XCode4 project and I will try to learn about git as soon as possible so I can join the branching and pulling and pushing fun.
Also I don't use Lion or XCode4 myself, so all I'm doing is just suggesting some solutions, but I will be slower than the people who actually use XCode 4. I'm still on Snow Leopard and XCode 3.2.
I was looking through your version of the XCode project on github and noticed that you have a way to allow paths to use '~/' for the user path. How did you manage to do that?
When I was testing this, my makefile didn't understand ~/ as the current user's home path??
Everyone else:
I will continue making a bit of a mess of the repository for a while as I start learning git and try to set my repo up as a collaborative project.
This repo only makes sense if all of you can update to it and add your improvements.
I think I should split the repo up into 4 projects because of the changes introduced in Arduino 1.0 :
Arduino0022OnXCode3 : Template for Arduino 0022 with XCode 3.2 on OSX Snow Leopard
Arduino1OnXCode3 : Template for Arduino 1.0 with XCode 3.2 on OSX Snow Leopard
Arduino0022OnXCode4: Empty project for Arduino 0022 with XCode4 on OSX Lion
Arduino1OnXCode4: Empty project for Arduino 1 with XCode4 on OSX Lion
What do you guys think? Does this make sense? I would split it up like this because making an XCode project that works with both Arduino 002x and Arduino 1.0 will become quite complicated. There are too many renamed files...
Or should we just abandon 0022 and go ahead with the latest and greatest version of Arduino.. ?
I still don't get it, from your picture I can see how you add it in XCode, that's not the problem. My problem was that the makefile didn't understand ~/ and couldn't translate it into /Users/YourUserName/
That's what I'm curious about!
oh and I think I'll be able to fix code sense for the Arduino libraries too. I will test & upload it as soon as I can get to the Lion machine.
# print info
info:
@echo "------------------------ some info for debugging ------------------";
@echo "\nUsing AVRDUDE: " $(AVRDUDE);
@echo "\nUsing board: " $(BOARD);
@echo "\nUsing BF_CPU: " $(BF_CPU);
@echo "\nUsing SKETCHBOOK_PATH: " $(SKETCHBOOK_PATH);
...
The result:
------------------------ some info for debugging ------------------
Using AVRDUDE: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude
Using board: Arduino_UNO
Using BF_CPU: 16000000L
Using SKETCHBOOK_PATH: /Users/OlS/Documents/Arduino/_Projets
...
somehow by doing the $(addprefix ..) doesn't expand the ~/ in LIBRARY_PATHS.
Just passing a build setting as a single variable does expand the ~/
I'm cleaning that up in my makefile, because ~/ is awesome!
There is a little trick to it:
You need to add all the sources ( .c, .cpp and .h files) to the 'Compile sources' build phase of the Fake Target. This fake target is only used for triggering the code completion in Xcode 4.
In the project navigator click on your project > Targets > fake target > build phases > expand "Compile sources"
press the "+" button at the bottom and in the list that pops up, just select all your .c, .cpp and .h files.
To add your own libraries, just drag them into the source tree with these options:
You will still have to add the path to those files in the build settings
I posted two suggestions on the GitHub issues list:
#3— Codesense not working all the time in Xcode 3.2
Serial.print() is still in black :~
#4— Auto-Launch of the Console
Serial console parameters
Close serial console before upload OK
Open serial console after upload Error: screen /dev/tty.usbmodem641 -b19200 Must be connected to a terminal. How to make the connection with the terminal?
#12— User libraries easy declaration
Just type the name of the folder of your library
Example:
I've secured the xcodeuino.com domain (I considered xcodeui.no for .Norway but relented;) and web
hosting with mySQL databases for a year. I planned to implement it as a Joomla!-site but talking
with a collegue I've decided to use Drupal instead. This means I no longer know
what modules are good or not, so if you have any preferences, let me know.
I'm thinking something like this:
Forums: Drupal Advanced Forum module(s) (screenshots: http://drupal.org/node/867944)
Wiki: demo of the wiki-installation module http://acme.yourbizwiki.com/ (login with test/test!!)
File upload functionality
Unregistered/Registered/Admin/SuperAdmin granularity for permissions
Lets start with just one discussion board, put it on the front page, and go from there
as we build the wiki, coordinate our efforts and get to master how git works with
branching and pulling and requesting
If everything goes according to plan, it should be live monday and open for registrations.
Again guys, thank you so much for all the work you've put in to creating makefiles and what not
to get xcode+arduino running together. I'm way behind atm but will get up to speed asap.