Newbie Question:Using external target
Newbie Question:Using external target
- Subject: Newbie Question:Using external target
- From: Marco Bönig <email@hidden>
- Date: Tue, 29 Jun 2004 16:49:21 +0200
I want to use some microcontroller assember/compilers from sourceforge
with xcode. I defined a new empty project, added a new empty file
"pic.asm" to my project and created an external target. Now I run into
two problems, using XCode 1.1; 1.2 and 1.5beta:
1. At least I want to call the assembler with a line like
gpasm -a inhx8m /pathToSourceCodeFile
But I can not find the name of the sourcecodefile in an environment
variable. I thought it was found in the $BUILD_COMPONENTS, but the
contents is not the name of the sourcecode-file. The contents is
"$BUILD_COMPONENTS".
However, I hardwired the Arguments to "-a inhx8m
/Users/marco/Desktop/PIC/pic.asm" and it works.
Question: How can I give the pathname of the sourcecode-file to the
external build command ?
2. I want to see the errors and warnings in the Errors and Warnings
Group.
Normally errors and warnings are shown direct in my sourcecode file by
small icons on the left window side in the line, where the error
occured. But if I use external target, they are not shown.
If I build the source code out of the project window (not the
sourcecode window), errors and warnings are shown as a summary in right
upper corner (for example: Failed 1 warning 3 errors). After clicking
on the failed icon, an extra window opens, showing 1 warning and 3
errors in different lines. If I doubleclick on the line with the error
description, Xcode jumps to the source code file and marks the line
with the error number. So I think the way how the assembler gives the
error description and line number back to xcode is correct.
The difference with normal made-for-OSX-projects is, in addition, that
normal projects shows a copy of the sourcecode-file in "Groups &
Files"->"Errors and Warnings" after a build failure. Thus I think there
must be an additional step after build to use the same comfort showing
errors in external target projects than in standard-tool projects.
Question: How can I push XCode to show the error and warnings in the
"Errors and Warnings" Group.
best regards
Marco
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.