#14251 closed defect (fixed)
herrie-1.9.2 doesnot compile
Reported by: | pc@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | herrie-1.9.2 error | Cc: | ed@… |
Port: |
Description
Command output: ./src/audio_output_coreaudio.c:161: error: request for member 'mBytesPerPacket' in something not a structure or union (...)
Change History (10)
comment:1 Changed 17 years ago by skymoo (Adam Mercer)
Cc: | ed@… added |
---|
comment:2 Changed 17 years ago by ed@…
What version of Mac OS X are you using? The code was originally developed for OS X 10.4 and slightly updated to work with 10.5, but the mBytesPerPacket field has already been in use since 10.4.
I haven't ever used Herrie on OS X 10.3 or lower, but I'm willing to add support for it.
comment:3 Changed 17 years ago by pc@…
I am on OS X 10.4 . Don't know what I am doing wrong, i.e. '# port install mpd' also exists with errors - on the other hand, there *are* ports which install just fine ... if I could provide you with some more debug-information, just instruct me :-)
comment:4 Changed 17 years ago by ed@…
It seems line 161 isn't really needed - it already gets properly calculated. On my MacBook with 10.5, it seems Herrie works like it should when I remove the line. Could you see what happens on your machine?
comment:5 Changed 17 years ago by pc@…
I removed the line, then: :/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_herrie/work/herrie-1.9.2$ sudo cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_herrie/work/herrie-1.9.2" && make all # Compiling audio_output_coreaudio.o ./src/audio_output_coreaudio.c:33:37: error: CoreAudio/AudioHardware.h: No such file or directory (...) many others
=> it seems that I am not able to compile the c-code, because then appear more errors as if i do a simple 'port install herrie' ... (I am only known with java, bash, sql, not i.e. C ). I cannot find the package #include <CoreAudio/AudioHardware.h> (find ./ -name AudioHardware.h)
but when I do, these errors are not given, only the following ones: $ sudo port install herrie (...) Command output: ./src/audio_output_coreaudio.c:154: error: 'kAudioFormatLinearPCM' undeclared (first use in this function) ./src/audio_output_coreaudio.c:158: error: request for member 'mSampleRate' in something not a structure or union ./src/audio_output_coreaudio.c:159: error: request for member 'mChannelsPerFrame' in something not a structure or union ./src/audio_output_coreaudio.c:167: error: 'kAudioDevicePropertyBufferSize' undeclared (first use in this function) ./src/audio_output_coreaudio.c:176: error: 'kAudioDevicePropertyPreferredChannelsForStereo' undeclared (first use in this function) ./src/audio_output_coreaudio.c: In function 'audio_output_play': ./src/audio_output_coreaudio.c:206: error: 'UInt32' undeclared (first use in this function) ./src/audio_output_coreaudio.c:206: error: parse error before 'len' ./src/audio_output_coreaudio.c:210: error: 'len' undeclared (first use in this function) ./src/audio_output_coreaudio.c:213: error: request for member 'mSampleRate' in something not a structure or union ./src/audio_output_coreaudio.c:214: error: request for member 'mChannelsPerFrame' in something not a structure or union ./src/audio_output_coreaudio.c:216: error: request for member 'mSampleRate' in something not a structure or union ./src/audio_output_coreaudio.c:217: error: request for member 'mChannelsPerFrame' in something not a structure or union ./src/audio_output_coreaudio.c:220: error: 'kAudioDevicePropertyStreamFormat' undeclared (first use in this function) ./src/audio_output_coreaudio.c:222: error: 'size' undeclared (first use in this function) ./src/audio_output_coreaudio.c:223: error: 'false' undeclared (first use in this function) ./src/audio_output_coreaudio.c: At top level: ./src/audio_output_coreaudio.c:271: error: parse error before 'n' ./src/audio_output_coreaudio.c: In function 'audio_output_volume_adjust': ./src/audio_output_coreaudio.c:273: error: 'Float32' undeclared (first use in this function) ./src/audio_output_coreaudio.c:273: error: parse error before 'vl' ./src/audio_output_coreaudio.c:274: error: 'UInt32' undeclared (first use in this function) ./src/audio_output_coreaudio.c:282: error: 'false' undeclared (first use in this function) ./src/audio_output_coreaudio.c:283: error: 'kAudioDevicePropertyVolumeScalar' undeclared (first use in this function) ./src/audio_output_coreaudio.c:283: error: 'size' undeclared (first use in this function) ./src/audio_output_coreaudio.c:283: error: 'vl' undeclared (first use in this function) ./src/audio_output_coreaudio.c:285: error: 'vr' undeclared (first use in this function) ./src/audio_output_coreaudio.c:287: error: 'vn' undeclared (first use in this function) ./src/audio_output_coreaudio.c:287: error: 'n' undeclared (first use in this function) make: * [audio_output_coreaudio.o] Error 1 (I gave you all the errors 'cause it seems you have fixed some?)
comment:6 Changed 17 years ago by pc@…
ups, should have used the 'preview' button, 'cause know I am not able to reformat my former posting ... ugly mess, sorry :-(
comment:7 follow-up: 8 Changed 17 years ago by ed@…
Aha! That's not a bug in Herrie - it looks like you did not install the CoreFoo developer package when installing the developer tools. :-)
comment:9 Changed 16 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | new → closed |
cc'ing maintainer