• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bringing an existing makefile based project into xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bringing an existing makefile based project into xcode


  • Subject: Re: Bringing an existing makefile based project into xcode
  • From: Fritz Anderson <email@hidden>
  • Date: Sun, 25 Jan 2009 16:55:44 -0600

On 25 Jan 2009, at 4:23 PM, Larry Martell wrote:

I followed those instructions, but when I build it fails with:

make: *** No rule to make target `xxxx.cpp', needed by `xxxx.o'. Stop.

But xxxx.cpp is right these in the xcode projects's list of source files.

I haven't seen your project, nor the tutorial you mention, but I've noticed this:


The error message you report comes from GNU make. It's a makefile problem. Putting your source files into an Xcode project makes them searchable and easy to edit, but it has no effect on how and whether your makefile finds them.

I've run into this message when a file is in one of the dependencies (probably explicitly in this case, as xxxx.cpp, and not inferred from a default rule), but isn't in your directory structure where make can find it.

Some first things to check are that the directory tree containing your makefile is complete -- that xxxx.cpp really is where you think it is. (If not, move the files.) Second, that you can use the command line to cd to the makefile's directory and run a successful make there. (If not, debug the makefile, and audit its assumptions about relative/ absolute paths.)

Verify that the directory you set in Xcode's target for your make- based build is the directory that contains your makefile. Make sure it is correct for all configurations (the Debug/Release pop-up in the upper-left corner).

Also, if you're using Xcode 3.x, look into using the Organizer. You'll miss out on the indexing you get with project-based development, but it's a good intermediate between the command line and a full IDE.

	— F

--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/ >


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Bringing an existing makefile based project into xcode
      • From: Larry Martell <email@hidden>
References: 
 >Bringing an existing makefile based project into xcode (From: Larry Martell <email@hidden>)

  • Prev by Date: Bringing an existing makefile based project into xcode
  • Next by Date: Re: Bringing an existing makefile based project into xcode
  • Previous by thread: Bringing an existing makefile based project into xcode
  • Next by thread: Re: Bringing an existing makefile based project into xcode
  • Index(es):
    • Date
    • Thread