Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic questions on building from darwin source



How do I build parts of the Darwin open source? Are there useful instructions anywhere? Is there any easy way to check out ALL of the source (everything necessary to build x86) for a particular version, rather than checking out each module separately?

---

I'm finding Apple's open-source stuff to be very frustrating to use. I want to develop some functionality like lsof, so I got the source and started looking through it. It's very convoluted, and supports many many platforms, so determining how it does the one thing I want to do on Darwin is a pain.

I thought it would be better if I could build it in XCode and step through it in the debugger, but of course it doesn't have an XCode project. So I thought I'd just build it with make, but that wants to check out more stuff. That's where I ran into problems.

First it tells me to look here: http://www.opensource.apple.com/tools/ cvs/docs.html, but that just takes me to http://developer.apple.com/ opensource/index.html, which is very generic. The CVS link on that page doesn't help much either.

The problem is that the build script asks me what branch I want to use, suggests a few. I want the latest, but I don't know what the branch names are. I tried a few of the suggested names, but none that I tried worked.

FWIW, I've included a transcript of the make process so far. Thanks for any help!

==================================

twinaero:~/darwin/lsof-8 rmann$ make
echo "Creating pseudo-copy of sources in the build directory...";
Creating pseudo-copy of sources in the build directory...
Configuring lsof...
Unknown Darwin release: 8.8.1
Assuming Darwin 1.4

-----------------------------------------------------------------

It's necessary to check out some XNU kernel header files from the
open source CVS repository.  See this URL for more information:

   http://www.opensource.apple.com/tools/cvs/docs.html

You must first specify your registered Darwin user name in order
to access the open source repository.  The companion Darwin user
name password must be stored in ~/.cvspass.

You must also specify the open source branch from which the headers
should be obtained.

What is your registered Darwin user name? email@hidden

--------------------------------------------------------------------

Now you must specify the open source branch of the CVS repository
from which the header files will be checked out.  These are some
likely open source branches:

    Darwin 1.2.1: xnu-3-1
    Darwin 1.3.1: xnu-4-2
    Darwin 1.4.1: xnu-9-1
    Mac OS X 10.0   (4K78): Apple-123-5
    Mac OS X 10.0.4 (4Q12): Apple-124-13
    Mac OS X 10.1   (5G64): Apple-201
    Mac OS X 10.1.1 (5M28): Apple-201-5
    Mac OS X 10.1.2 (5P48): Apple-201-14

Please specify a branch to use.  (It needn't be one of the suggested
ones.)


What branch?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.