Re: Bringing an existing makefile based project into xcode
Re: Bringing an existing makefile based project into xcode
- Subject: Re: Bringing an existing makefile based project into xcode
- From: Larry Martell <email@hidden>
- Date: Sun, 25 Jan 2009 16:14:41 -0700
On Sun, Jan 25, 2009 at 3:55 PM, Fritz Anderson <email@hidden> wrote:
> 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).
Thanks for the reply Fritz. This was the problem - I had set the path
to the makefile to be the path to my xcode project. I changed that to
be the path to where my original (non xcode) project was, and now it
builds.
-larry
_______________________________________________
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