Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

MYCrypto not building

#3

I think there's something I'm not understanding about Xcode. The path I put in Xcode's Source Trees preference ~/Development/MYUtilities seems to be correct: The files do show up in Xcode now. But the project doesn't build. Here's what Xcode tells me:

Build failed (2 errors)

Line Location MYErrorUtils.m:0: Command /Developer/usr/bin/gcc-4.0 failed with exit code 1 Line Location MYErrorUtils.m:0: i686-apple-darwin9-gcc-4.0.1: no input files Line Location MYErrorUtils.m:0: i686-apple-darwin9-gcc-4.0.1: warning: '-x objective-c' after last input file has no effect Line Location MYErrorUtils.m:0: i686-apple-darwin9-gcc-4.0.1: ~/Development/MYUtilities/MYErrorUtils.m: No such file or directory Line Location Tool:0: Command /bin/sh failed with exit code 1 Line Location Tool:0: doxygen: Command not found.

Note that I don't have the iPhone SDK on this machine (I'm just building the Xcode flavor).

Mac OS X 10.5.6 Xcode 3.1.2

I apologize if I've overlooked something obvious again.

Reported by Joel Norvell · April 14th, 2009 @ 02:39 PM

State: resolved
Milestone: 0.3
Assigned to: snej snej

Activity

  1. snej
    snej
    • State changed from new to open

    That's kind of weird! Hmm...

    OK, here's my guess: maybe Xcode's IDE understands the "~" in the path you specified, but GCC itself doesn't. That would explain what you're getting.

    Try changing the path in the Xcode prefs to "/Users/joel/Development/MYUtilities" (or whatever ~ expands to.) Let me know if that resolves the problem.

    April 14th, 2009 @ 02:56 PM

  2. Joel Norvell
    Joel Norvell

    Thanks, Jens. Expanding the path solved the first problem!

    And the second problem is that I didn't have Doxygen on my system.

    I have just installed it in my Applications folder (and rebooted), but I'm still having this problem:

    Building target “MYCrypto” of project “MYCrypto” with configuration “Debug” — (1 error)

        cd /Users/joel/Development/MYCrypto
    /bin/sh -c /Users/joel/Development/MYCrypto/build/MYCrypto.build/Debug/MYCrypto.build/Script-27EAF0C60F8BD4ED0091AF95.sh
    
    

    doxygen: Command not found.

        doxygen: Command not found.
        doxygen: Command not found.
    
    

    Build failed (1 error)

    I'm guessing that I either need to launch Doxygen and do something with it or else move it to a different location. I'm looking through the documentation (Apple's and Doxygen's), but if you know what I'm doing wrong, or not doing, I'd very much appreciate being told!

    April 14th, 2009 @ 03:48 PM

  3. snej
    snej

    Oh, good point — I should move the Doxygen build step to a new optional target, so it won't prevent people from building without it.

    For now you can either (1) Flip open the target in the project tree and delete the Run Script build phase; or (2) Add the 'doxygen' tool to your shell path, with a command something like: sudo ln -s /Applications/Doxygen.app/Contents/Resources/doxygen /usr/bin (customize this according to where you put the Doxygen app, and where you want the tool to go.)

    Isn't it fun being the first guinea-pig? ;-)

    April 14th, 2009 @ 04:03 PM

  4. Joel Norvell
    Joel Norvell

    It builds now :-)

    Thanks once more Jens!

    I'm glad to be the first guinea-pig, as long as you're willing to put up with my lack of experience ;-)

    I had to the delete the Run Script build phase though.

    I tried:

    sudo ln -s /Applications/Doxygen.app/Contents/Resources/doxygen /usr/bin

    and that created some strange new build error!

    (I didn't have a good idea of where to destination was supposed to be on my machine so I tried /usr/bin)

    Do you know what command would undo the "ln -s ..." to remove the "clutter" I created? I tried crawling around my file system with "cd" but couldn't find the directory /usr/bin

    I guess it's time to dig out my old copy of Kernighan and Pike!

    April 14th, 2009 @ 04:53 PM

  5. snej
    snej
    • Milestone set to 0.3
    • State changed from open to resolved

    I'm glad it built! I've updated the documentation now, and pushed a new revision of the project file that skips Doxygen if it's not installed.

    To remove the symlink you can just run:

    sudo rm /usr/bin/doxygen

    You must have a /usr/bin directory if you've got the developer tools installed ... it's where a lot of really core tools like 'gcc' and 'make' live.

    April 14th, 2009 @ 06:53 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.