• 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
Need help setting up XCode project to port Solaris libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help setting up XCode project to port Solaris libraries


  • Subject: Need help setting up XCode project to port Solaris libraries
  • From: Rick Mann <email@hidden>
  • Date: Thu, 16 Nov 2006 12:14:19 -0800

I thought there was documentation online addressing these kinds of issues, but I really couldn't find it. I found some stuff for porting Unix projects to Mac OS X, but that doesn't include the use of XCode.

I'm working on a port of a Solaris project, and part of that requires porting a little library called nvpair. If I can figure out the best way to port this little library, then others should go more easily.

nvpair in Solaris is made up of the following files:

usr/src/common/nvpair/nvpair.c
usr/src/common/nvpair/nvpair_alloc_system.c
usr/src/uts/common/sys/nvpair.h
usr/src/lib/libnvpair/libnvpair.h
usr/src/lib/libnvpair/libnvpair.c

As one might expect, libnvpair.c includes "libnvpair.h", which in turn include <sys/nvpair.h>.

The problem is that nvpair.c includes things like <sys/varargs.h> and <stdarg.h>.

I don't know how to properly (by "properly" I also mean a best- practices kind of way) include files and configure search paths in XCode to use the Mac OS X versions of these files when they exist, and to use the Solaris versions, which I will include in my port, when they don't.

Obviously, while I can make changes to the source files to accommodate the differences in the Mac OS X versions of common functionality, the fewer changes, the better (someday I'd love to give these changes back to the Solaris community).

Thanks for all your help!

--
Rick


_______________________________________________ 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: Need help setting up XCode project to port Solaris libraries
      • From: Philip Aker <email@hidden>
  • Prev by Date: dedicated network build problems
  • Next by Date: Re: Need help setting up XCode project to port Solaris libraries
  • Previous by thread: Re: dedicated network build problems
  • Next by thread: Re: Need help setting up XCode project to port Solaris libraries
  • Index(es):
    • Date
    • Thread