Re: Using SystemConfiguration API inside KEXT
Re: Using SystemConfiguration API inside KEXT
- Subject: Re: Using SystemConfiguration API inside KEXT
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 11 May 2010 18:18:49 +0200
Le 11 mai 2010 à 18:11, John B Brown a écrit :
> Unless you have a sub-directory under /usr/include/ called /usr/include/SystemConfiguration/ your call will not find any files in that directory using #include <SystemConfiguration/SystemConfiguration.h> as the #include directive.
>
We are talking about Mac OS X development.
AFAIK, all Mac OS X compilers know how to handle a framework and know how to find a header in a Framework bundle.
This include directive is perfectly valid, or would be if it was an user space program, but Kernel Extension can't use user space framework, so whatever (useless) compiler flag you add, it will not works.
-- Jean-Daniel
> On my machine running Mac OS 10.6.3 and Xcode 3.2.2 the only files SystemConfiguration.h are in sub-directories "Headers" in all cases, not in any sub-directory "SystemConfiguration."
>
> Use findutils! Set your #include accordingly. It might help also to use '-I"some tree"' in your C flags to the compiler, like
>
> -I/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks\/SystemConfiguration.framework/Versions/A/Headers
>
> or wherever 'locate SytemConfiguration.h' finds that you like and that is found on your system.
>
> You might have to go to [ftp://ftp.gnu.org/gnu/] to find a real working source for findutils; the piece of crap Apple gives you in their system load is just that, a piece of crap. You have practically zero control over what it finds when their version of 'updatedb' runs. Needless to say, updatedb does NOT exist in your path so you must go to some considerable trouble to run it whenever you wish.
>
> By the way, is your NKE a sneaker control, a navigation system, or some sort of motion detector?
>
> On 5/11/10 9:11 AM, Andy Huang wrote:
>> Hi,
>>
>> I am developing a NKE. Now I need to call SystemConfiguration framework API
>> to find primary interface. When I tried to include
>> <SystemConfiguration/SystemConfiguration.h>, I always get compiliation error
>> saying not able to find the header file. Any ideas? TIA.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden