digitalmars.D.announce - D for Xcode 1.0b1
- Michel Fortin (31/31) Oct 21 2007 This is the first beta release of my D plugin for Xcode. This plugin is
- =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= (4/7) Oct 22 2007 Great work! Is is possible to relicense it under "GPL v2 or later",
- Michel Fortin (6/14) Oct 22 2007 I'll do that.
- Oskar Linde (5/9) Oct 22 2007 I gave it a quick test and it seems to work wonderfully. Debugging, code...
- Hendrik Renken (1/1) Oct 22 2007 thanks man! wonderful work.
- luca (8/8) Oct 23 2007 Hi Michel, can you help me?
- Michel Fortin (15/23) Oct 23 2007 It looks like you're trying to link against the Mac OS X 10.4 Universal
- luca (3/22) Oct 23 2007 Now all works well.
This is the first beta release of my D plugin for Xcode. This plugin is inspired from Alan West's D plugin for Xcode [1], and use the Xcode plugin interface documented by Damien Bobillot [2] (Apple doesn't publish a plugin developement kit alas!). [1]: http://www.alanz.com/d/xcode/ [2]: http://maxao.free.fr/xcode-plugin-interface/ You can find the plugin here: <http://michelf.com/projects/d-for-xcode/> Basically, it does the following: * It adds to Xcode the GDC D compiler and the appropriate build rules so that D source files are recognised and are as easy to compile as C, C++, and Objective-C ones. Once you've added a D source file to a project or target, options specific to the D compiler will apear in the build settings. * It allows Xcode to track dependencies between files (by looking for `import` declarations) and automatically recompile files when a dependency has been modified. * It allows the Xcode debugger to work with D files: setting breakpoints and stepping thru the code works as you'd expect it. * It provides "perfect" syntax highlighting using the lexer from Digital Mars' D front end. * It populates the Code Sense editor function popup with functions, classes, and some other constructs the D front end parser can find in your D source file. The plugin works on Mac OS X 10.4.10, with Xcode 2.4.1. I have no idea how it performs on the very-soon-to-be-released Mac OS X 10.5 Leopard (which has Xcode 3). I do not expect it to work unmodified though. -- Michel Fortin michel.fortin michelf.com http://michelf.com/
Oct 21 2007
Michel Fortin wrote:The plugin works on Mac OS X 10.4.10, with Xcode 2.4.1. I have no idea how it performs on the very-soon-to-be-released Mac OS X 10.5 Leopard (which has Xcode 3). I do not expect it to work unmodified though.Great work! Is is possible to relicense it under "GPL v2 or later", so that I can include it with the gdcmac package once it's stable ? --anders
Oct 22 2007
On 2007-10-22 03:17:05 -0400, Anders F Björklund <afb algonet.se> said:Michel Fortin wrote:I'll do that. -- Michel Fortin michel.fortin michelf.com http://michelf.com/The plugin works on Mac OS X 10.4.10, with Xcode 2.4.1. I have no idea how it performs on the very-soon-to-be-released Mac OS X 10.5 Leopard (which has Xcode 3). I do not expect it to work unmodified though.Great work! Is is possible to relicense it under "GPL v2 or later", so that I can include it with the gdcmac package once it's stable ?
Oct 22 2007
Michel Fortin wrote:This is the first beta release of my D plugin for Xcode. This plugin is inspired from Alan West's D plugin for Xcode [1], and use the Xcode plugin interface documented by Damien Bobillot [2] (Apple doesn't publish a plugin developement kit alas!).I gave it a quick test and it seems to work wonderfully. Debugging, code sense and everything else. Great job! -- Oskar
Oct 22 2007
Hi Michel, can you help me? ***** hellod1:0: Command /usr/bin/gdc failed with exit code 1 Tool:0: can't locate file for: -lgphobos Tool:0: warning -L: directory name (/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/default) does not exist Thanks. Luca.
Oct 23 2007
On 2007-10-23 17:29:12 -0400, luca <21052 serviziopostale.it> said:Hi Michel, can you help me? ***** hellod1:0: Command /usr/bin/gdc failed with exit code 1 Tool:0: can't locate file for: -lgphobos Tool:0: warning -L: directory name (/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/default) does not existIt looks like you're trying to link against the Mac OS X 10.4 Universal SDK and that the compiler is searching for the library within the SDK instead of looking at the standard system path. Assuming building against the 10.4 SDK is what you want, here's my solution: add libgphobos.a to the SDK using a symlink, like this: cd /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin sudo mkdir default sudo ln -s /usr/lib/libgphobos.a default/libgphobos.a I'll see if I can arrange things better. Handling this from inside the the plugin would be ideal. -- Michel Fortin michel.fortin michelf.com http://michelf.com/
Oct 23 2007
Now all works well. Thank you. Luca.hellod1:0: Command /usr/bin/gdc failed with exit code 1 Tool:0: can't locate file for: -lgphobos Tool:0: warning -L: directory name (/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/default) does not existIt looks like you're trying to link against the Mac OS X 10.4 Universal SDK and that the compiler is searching for the library within the SDK instead of looking at the standard system path. Assuming building against the 10.4 SDK is what you want, here's my solution: add libgphobos.a to the SDK using a symlink, like this: cd /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin sudo mkdir default sudo ln -s /usr/lib/libgphobos.a default/libgphobos.a I'll see if I can arrange things better. Handling this from inside the the plugin would be ideal.
Oct 23 2007