I want to use xCode under mac as a GUI to compile and build my project for Maple, when I add the libmaple header files, the xCode allocate a lot of errors in the header files. Is there any way I can use the xCode to compile my projects.
I want to use xCode under mac as a GUI to compile and build my project for Maple
(6 posts) (3 voices)-
Posted 4 years ago #
-
Did you changed the C compiler used by XCode or are you trying to use the one that comes with XCode?
Do you know that the version of the C compiler used by XCode generates code for Cortex-M3? How did you prove this?Posted 4 years ago # -
When creating a project in XCode, select an external target project. Then, edit the build options so that
make
is ran when compiled, whenmake install
is ran when the project is run.You'll need to include your libmaple location in your PATH, and make sure XCode knows about that location too.
The compiler XCode selects is irrelevant since the makefile libmaple comes with uses the codesourcery GCC compiler.
If you want to use XCode with code sense, create a project that contains libmaple, and include that project's xcodeproj file into your own project.
-robodude666
Posted 4 years ago # -
robodude666 - interesting!
I assume this is for "Build" tab in the project info; is that correct?
I can't find any options to define anything to run when compiling.
I'm using XCode 3.2.Posted 4 years ago # -
Here's a document that might help:
http://web.ist.utl.pt/jose.alberto.coelho/mac/MakefilesXcode.pdf
It maybe describes the process for an older version of XCode (2.4, I think?), but the general process is still about the same.
- Create an Empty Project.
- Add an External Target.
- Edit the External Target's settings so that Make is ran when compiling/running.You can also do some googling around. There are plenty of tutorials and templates of how to setup XCode to be used with Arduino and AVRDude makefiles. The basic concept still applies.
I used to have full XCode 3.2 + libmaple templates, but unfortunately lost them while installing Mac OS X Lion from scratch.
-robodude666
Posted 4 years ago # -
robodude666 - Thank you very much for that link.
It isn't quite as convenient as 'native' development (error messages aren't tagged into source editor windows), but it is usable!-)
Posted 3 years ago #
Reply
You must log in to post.