以下是安装说明,看不懂USB Professional Audio Link
---------------------------
Release Notes
The following tools are required to compile the custom projects:
Xcode 4.3
Steps to compile the custom extension:
1.
Double click the .dmg SDK image to mount it.
2.
Copy all files and directories include in the .dmg image to your hard disk.
3.
Open a Terminal an step into the directory you copied the files.
4.
Step into the SDK/Mac/source directory.
# cd SDK/Mac/source
5.
Execute the xc.sh file to start XCode with the right environment variables.
# ./xc.sh
6.
Open the custom extension XCode project in the SDK directory
SDK/Mac/source/custom_extension/xxx/xxx.xcodeproj (xxx is your custom name).
7.
Edit your custom .cpp file in the project that is inherited from the class UsbpalCustomExtension.
The .cpp files contains several entry points to initialize and serve your hardware.
8.
Compile the project.
The result in form of a .kext kernel extension is produced in the SDK/Mac/source/custom_extension/xxx/xxx/Release directory.
9.
The following files need to be installed on your Mac to work with your device:
SDK/Mac/source/custom_extension/xxx/xxx/Release/xxx_CUSTOM_EXT.kext (your custom kernel extension loaded by the driver)
driver_files/Release/xxx.kext (the driver for the hardware)
driver_files/Release/xxx.plugin (the MIDI plugin)
The following steps are needed to install the driver manually.
Unloaded the old driver (not needed at the first time):
# sudo kextunload /System/Library/Extensions/xxx_CUSTOM_EXT.kext
# sudo kextunload /System/Library/Extensions/xxx.kext
Set the right user group:
# sudo chown -R root:wheel /System/Library/Extensions/xxx_CUSTOM_EXT.kext
# sudo chown -R root:wheel /System/Library/Extensions/xxx.kext
10.
For a user friendly installation you should provide a .mpkg installer, that contains the drivers and your control panel.
Apple provides a tool PackageMaker that can be used to build a package.
Also thrid party tools exist to build installer packages.
尤其是下面这句话,看不明白,是不是要找到对应的硬件ID呀
7.Edit your custom .cpp file in the project that is inherited from the class UsbpalCustomExtension.
The .cpp files contains several entry points to initialize and serve your hardware.