Re: Compiling IOHIDFamily?
Re: Compiling IOHIDFamily?
- Subject: Re: Compiling IOHIDFamily?
- From: Kevin Van Vechten <email@hidden>
- Date: Sun, 10 Oct 2004 21:54:44 -0700
Hi Steve,
Unfortunately it's not quite that simple, though it would be nice if it were, wouldn't it? The problem boils down to the missing header file, IOUPSPlugIn.h, which is found in the PowerManagement project. You can use the "installhdrs" build target to install the PowerManagement headers. As with any Darwin project, the DSTROOT environment variable will dictate where the sources are installed.
$ cd PowerManagement
$ sudo -s
# mkdir /tmp/PowerManagementHeaders
# export DSTROOT=/tmp/PowerManagementHeaders
# make installhdrs DSTROOT=/tmp/PowerManagementHeaders
... check /tmp/PowerManagementHeaders to make sure it looks OK ...
# ditto /tmp/PowerManagementHeaders /
[If you're on a pure darwin system, you'll need to use pax(1) or tar(1) instead of ditto(1)]
- Kevin
On Oct 8, 2004, at 10:04 PM, Steve Gehrman wrote:
I just downloaded IOHIDFamily and it doesn't compile.
Suggestions?
<x-tad-smaller>Building target “IOHIDLib” with build style “Deployment” (optimization:level ‘size’, debug-symbols:on) — (62 errors, 9 warnings)
</x-tad-smaller><x-tad-smaller> /usr/bin/g++-3.3 -c -F/Users/steve/Development/build -I/Users/steve/Development/build/include -I/Users/steve/darwin/IOHIDFamily-86.15/IOHIDFamily -IIOHIDLib -arch ppc -fno-common -fpascal-strings -Os -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -pipe "-fmessage-length=0" -g -Wp,-header-mapfile,/Users/steve/Development/build/intermediate/IOHIDFamily.build/IOHIDLib.build/IOHIDLib.hmap IOHIDLib/IOHIDDeviceClass.cpp -o /Users/steve/Development/build/intermediate/IOHIDFamily.build/IOHIDLib.build/Objects-normal/ppc/IOHIDDeviceClass.o
</x-tad-smaller><x-tad-smaller>IOHIDLib/IOHIDDeviceClass.cpp: In member function `kern_return_t IOHIDDeviceClass::CreateLeafElements(const __CFDictionary*, __CFSet*, const void*, long int*, const __CFString*, IOHIDElementStruct*)':
IOHIDLib/IOHIDDeviceClass.cpp:1730: error: parse error before string constant
IOHIDLib/IOHIDDeviceClass.cpp:1730: error: parse error before `)' token
IOHIDLib/IOHIDDeviceClass.cpp:1730: error: parse error before string constant
IOHIDLib/IOHIDDeviceClass.cpp:1730: error: parse error before `)' token
</x-tad-smaller><x-tad-smaller> /usr/bin/g++-3.3 -c -F/Users/steve/Development/build -I/Users/steve/Development/build/include -I/Users/steve/darwin/IOHIDFamily-86.15/IOHIDFamily -IIOHIDLib -arch ppc -fno-common -fpascal-strings -Os -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -pipe "-fmessage-length=0" -g -Wp,-header-mapfile,/Users/steve/Development/build/intermediate/IOHIDFamily.build/IOHIDLib.build/IOHIDLib.hmap IOHIDLib/IOHIDIUnknown.cpp -o /Users/steve/Development/build/intermediate/IOHIDFamily.build/IOHIDLib.build/Objects-normal/ppc/IOHIDIUnknown.o
</x-tad-smaller><x-tad-smaller>In file included from IOHIDLib/IOHIDIUnknown.cpp:31:
IOHIDLib/IOHIDUPSClass.h:28:34: IOKit/ps/IOUPSPlugIn.h: No such file or directory
In file included from IOHIDLib/IOHIDIUnknown.cpp:31:
IOHIDLib/IOHIDUPSClass.h:68: warning: ISO C++ forbids declaration of `IOUPSPlugInInterface' with no type
IOHIDLib/IOHIDUPSClass.h:68: error: parse error before `;' token
IOHIDLib/IOHIDUPSClass.h:89: error: 'IOUPSEventCallbackFunction' is used as a type, but is not defined as a type.
IOHIDLib/IOHIDUPSClass.h:125: error: type specifier omitted for parameter `IOUPSEventCallbackFunction'
IOHIDLib/IOHIDUPSClass.h:125: error: parse error before `,' token
IOHIDLib/IOHIDUPSClass.h:187: error: `IOUPSEventCallbackFunction' was not declared in this scope
IOHIDLib/IOHIDUPSClass.h:187: error: parse error before `,' token
IOHIDLib/IOHIDIUnknown.cpp: In function `void* IOHIDLibFactory(const __CFAllocator*, const __CFUUID*)':
IOHIDLib/IOHIDIUnknown.cpp:39: error: `kIOUPSPlugInTypeID' undeclared (first use this function)
IOHIDLib/IOHIDIUnknown.cpp:39: error: (Each undeclared identifier is reported only once for each function it appears in.)
In file included from IOHIDLib/IOHIDIUnknown.cpp:31:
IOHIDLib/IOHIDUPSClass.h:28:34: IOKit/ps/IOUPSPlugIn.h: No such file or directory
In file included from IOHIDLib/IOHIDIUnknown.cpp:31:
IOHIDLib/IOHIDUPSClass.h:68: warning: ISO C++ forbids declaration of `IOUPSPlugInInterface' with no type
IOHIDLib/IOHIDUPSClass.h:68: error: parse error before `;' token
IOHIDLib/IOHIDUPSClass.h:89: error: 'IOUPSEventCallbackFunction' is used as a type, but is not defined as a type.
IOHIDLib/IOHIDUPSClass.h:125: error: type specifier omitted for parameter `IOUPSEventCallbackFunction'
IOHIDLib/IOHIDUPSClass.h:125: error: parse error before `,' token
IOHIDLib/IOHIDUPSClass.h:187: error: `IOUPSEventCallbackFunction' was not declared in this scope
IOHIDLib/IOHIDUPSClass.h:187: error: parse error before `,' token
....
..
</x-tad-smaller>
-steve
_______________________________________________
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
_______________________________________________
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