zonque / PulseAudioOSX

PulseAudio for Mac OS X
https://github.com/zonque/PulseAudioOSX/wiki
77 stars 9 forks source link

Failed to load PulseAudio.plugin in iTunes #4

Open thaliahuj opened 12 years ago

thaliahuj commented 12 years ago
  1. success to compile PulseAudio.plugin in Xcode,
  2. copy PulseAudio.plugin to library\Audio\Plug-Ins\HAL\;
  3. run iTunes;
  4. error:

Dec 9 11:16:37 lizxmatoiMac iTunes[4565]: Error loading /Library/Audio/Plug-Ins/HAL/PulseAudio.plugin/Contents/MacOS/PulseAudio: dlopen(/Library/Audio/Plug-Ins/HAL/PulseAudio.plugin/Contents/MacOS/PulseAudio, 262): Symbol not found: _json_object_array_add\n Referenced from: /Library/Frameworks/PulseAudio.framework/Contents/MacOS/lib/libpulse.0.dylib\n Expected in: flat namespace\n in /Library/Frameworks/PulseAudio.framework/Contents/MacOS/lib/libpulse.0.dylib

Dec 9 11:16:37 lizxmatoiMac iTunes[4565]: Cannot find function pointer New_PAHAL_PlugIn for factory 45F4645C-E875-4364-9296-95837C4B7292 in CFBundle/CFPlugIn 0x21a4e50 </Library/Audio/Plug-Ins/HAL/PulseAudio.plugin> (bundle, not loaded)

zonque commented 12 years ago

On 12/12/2011 02:02 AM, thaliahuj wrote:

  1. success to compile PulseAudio.plugin in Xcode,
  2. copy PulseAudio.plugin to library\Audio\Plug-Ins\HAL\;
  3. run iTunes;
  4. error:

Dec 9 11:16:37 lizxmatoiMac iTunes[4565]: Error loading /Library/Audio/Plug-Ins/HAL/PulseAudio.plugin/Contents/MacOS/PulseAudio: dlopen(/Library/Audio/Plug-Ins/HAL/PulseAudio.plugin/Contents/MacOS/PulseAudio, 262): Symbol not found: _json_object_array_add\n Referenced from: /Library/Frameworks/PulseAudio.framework/Contents/MacOS/lib/libpulse.0.dylib\n Expected in: flat namespace\n in /Library/Frameworks/PulseAudio.framework/Contents/MacOS/lib/libpulse.0.dylib

Dec 9 11:16:37 lizxmatoiMac iTunes[4565]: Cannot find function pointer New_PAHAL_PlugIn for factory 45F4645C-E875-4364-9296-95837C4B7292 in CFBundle/CFPlugIn 0x21a4e50 </Library/Audio/Plug-Ins/HAL/PulseAudio.plugin> (bundle, not loaded)

I guess you didn't run the fixup scripts that do all the ugly relocation voodoo? Are you sure you built all this using the scripts I provided? They are unfortunately mandatory.

Daniel

thaliahuj commented 12 years ago

Where is the fixup scripts?

thaliahuj commented 12 years ago

I build source code by "https://github.com/zonque/PulseAudioOSX/wiki/Building-from-source"

zonque commented 12 years ago

On 12/12/2011 02:54 AM, thaliahuj wrote:

Where is the fixup scripts?

Well, in the git:

https://github.com/zonque/PulseAudioOSX/blob/master/deploy/fixup_framework.sh

The whole issue around making such libraries work on OSX is a huge mess, and this is the cleanest approach I could come up with :-/

Daniel

zonque commented 12 years ago

On 12/12/2011 02:58 AM, thaliahuj wrote:

I build source code by "https://github.com/zonque/PulseAudioOSX/wiki/Building-from-source"

Hmm. If you called deploy.sh, the fixup script should have been called automatically.

thaliahuj commented 12 years ago

Is it right that I compile PulseAudio.plugin in Xcode ?

thaliahuj commented 12 years ago

run ./deploy.sh

error:

\ BUILD FAILED **

The following build commands failed: PulseAudioHelper: PBXCp build/Release/PulseAudioHelper.app/Contents/Frameworks/Growl.framework /Library/Frameworks/Growl.framework CompileC build/PulseAudioHelper.build/Release/PulseAudioHelper.build/Objects-normal/x86_64/GrowlNotifications.o /Users/hujie/iTunes_Plugin/PulseAudioOSX/PulseAudioHelper/GrowlNotifications.m normal x86_64 objective-c com.apple.compilers.gcc.4_2 CompileC build/PulseAudioHelper.build/Release/PulseAudioHelper.build/Objects-normal/x86_64/main.o /Users/hujie/iTunes_Plugin/PulseAudioOSX/PulseAudioHelper/main.m normal x86_64 objective-c com.apple.compilers.gcc.4_2 CompileC build/PulseAudioHelper.build/Release/PulseAudioHelper.build/Objects-normal/i386/GrowlNotifications.o /Users/hujie/iTunes_Plugin/PulseAudioOSX/PulseAudioHelper/GrowlNotifications.m normal i386 objective-c com.apple.compilers.gcc.4_2 CompileC build/PulseAudioHelper.build/Release/PulseAudioHelper.build/Objects-normal/i386/main.o /Users/hujie/iTunes_Plugin/PulseAudioOSX/PulseAudioHelper/main.m normal i386 objective-c com.apple.compilers.gcc.4_2 (5 failures)

thaliahuj commented 12 years ago

run ./bootstrap_machine.sh

Error: Port json-c; not found To report a bug, see http://guide.macports.org/#project.tickets Error: Port do not found To report a bug, see http://guide.macports.org/#project.tickets ---> Cleaning sudo Error: Port port not found To report a bug, see http://guide.macports.org/#project.tickets Error: Port install not found To report a bug, see http://guide.macports.org/#project.tickets

zonque commented 12 years ago

On 12.12.11 04:52, thaliahuj wrote:

run ./bootstrap_machine.sh

Error: Port json-c; not found To report a bug, see http://guide.macports.org/#project.tickets Error: Port do not found To report a bug, see http://guide.macports.org/#project.tickets ---> Cleaning sudo Error: Port port not found To report a bug, see http://guide.macports.org/#project.tickets Error: Port install not found To report a bug, see http://guide.macports.org/#project.tickets

Ah. Someone posted a patch to fix this recently, but I forgot to apply it. Sorry for that. Can you check again?

Daniel

thaliahuj commented 12 years ago

Could you provide an install package to me ?

thaliahuj commented 12 years ago

Dear Daniel,

Thanks for your reply.

I had succeeded to compile install package at another computer.

Now I have a new issue how to use PulseAudio.plugin in iTunes.

BR, hujie.