Opened 14 years ago

Closed 6 years ago

#25995 closed defect (fixed)

hydrogen 0.9.4 build fail 'CloseComponent' was not declared in this scope

Reported by: macports@… Owned by: mf2k (Frank Schima)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: willy.wolff.0@…, mp@…
Port: hydrogen

Description (last modified by ryandesign (Ryan Carsten Schmidt))

10.6.4
Xcode 3.2.3 (1688)

Log from first 'warning':

:info:build libs/hydrogen/src/object.cpp:242: warning: format not a string literal and no format arguments
:info:build libs/hydrogen/src/object.cpp:244: warning: format not a string literal and no format arguments
:info:build g++ -o libs/hydrogen/src/IO/coreaudio_driver.o -c -O3 -fomit-frame-pointer -funroll-loops -DFLAC_SUPPORT -DCOREAUDIO_SUPPORT -DLADSPA_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -I/opt/local/include -I. -Igui/src -I3rdparty/install/include -Ilibs/hydrogen/include -I/opt/local/libexec/qt4-mac/include -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/include/QtGui libs/hydrogen/src/IO/coreaudio_driver.cpp
:info:build g++ -o libs/hydrogen/src/event_queue.o -c -O3 -fomit-frame-pointer -funroll-loops -DFLAC_SUPPORT -DCOREAUDIO_SUPPORT -DLADSPA_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -I/opt/local/include -I. -Igui/src -I3rdparty/install/include -Ilibs/hydrogen/include -I/opt/local/libexec/qt4-mac/include -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/include/QtGui libs/hydrogen/src/event_queue.cpp
:info:build g++ -o libs/hydrogen/src/IO/fake_driver.o -c -O3 -fomit-frame-pointer -funroll-loops -DFLAC_SUPPORT -DCOREAUDIO_SUPPORT -DLADSPA_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -I/opt/local/include -I. -Igui/src -I3rdparty/install/include -Ilibs/hydrogen/include -I/opt/local/libexec/qt4-mac/include -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/include/QtGui libs/hydrogen/src/IO/fake_driver.cpp
:info:build g++ -o libs/hydrogen/src/lash/LashClient.o -c -O3 -fomit-frame-pointer -funroll-loops -DFLAC_SUPPORT -DCOREAUDIO_SUPPORT -DLADSPA_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -I/opt/local/include -I. -Igui/src -I3rdparty/install/include -Ilibs/hydrogen/include -I/opt/local/libexec/qt4-mac/include -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/include/QtGui libs/hydrogen/src/lash/LashClient.cpp
:info:build g++ -o libs/hydrogen/src/xml/tinyxml.o -c -O3 -fomit-frame-pointer -funroll-loops -DFLAC_SUPPORT -DCOREAUDIO_SUPPORT -DLADSPA_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -I/opt/local/include -I. -Igui/src -I3rdparty/install/include -Ilibs/hydrogen/include -I/opt/local/libexec/qt4-mac/include -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/include/QtGui libs/hydrogen/src/xml/tinyxml.cpp
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp: In constructor 'H2Core::CoreAudioDriver::CoreAudioDriver(int (*)(uint32_t, void*))':
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:85: warning: 'AudioHardwareGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1119)
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:89: warning: 'AudioHardwareGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1119)
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:95: warning: 'AudioDeviceGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2367)
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:102: warning: 'AudioDeviceGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2367)
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:113: warning: 'AudioDeviceGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2367)
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:113: warning: 'AudioDeviceGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2367)
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp: In member function 'virtual int H2Core::CoreAudioDriver::init(unsigned int)':
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:147: error: 'Component' was not declared in this scope
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:147: error: expected `;' before 'compOutput'
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:148: error: aggregate 'ComponentDescription descAUHAL' has incomplete type and cannot be defined
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:156: error: 'compOutput' was not declared in this scope
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:156: error: 'FindNextComponent' was not declared in this scope
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:162: error: 'OpenAComponent' was not declared in this scope
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:169: warning: 'AudioHardwareGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1119)
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:173: warning: 'AudioHardwareGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:1119)
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp: In member function 'virtual void H2Core::CoreAudioDriver::disconnect()':
:info:build libs/hydrogen/src/IO/coreaudio_driver.cpp:271: error: 'CloseComponent' was not declared in this scope
:info:build scons: *** [libs/hydrogen/src/IO/coreaudio_driver.o] Error 1
:info:build scons: building terminated because of errors.
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_hydrogen/work/hydrogen-0.9.4" && scons -j4 DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_hydrogen/work/destroot prefix=/opt/local alsa=0 coreaudio=1 coremidi=0 flac=1 jack=0 lash=0 libarchive=0 lrdf=0 oss=0 portaudio=0 portmidi=0 " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for hydrogen): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for hydrogen is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_hydrogen/main.log

Attachments (1)

main.log (140.3 KB) - added by willy.wolff.0@… 12 years ago.

Download all attachments as: .zip

Change History (11)

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to xenith@…
Port: hydrogen added

In the future please fill in the Port field and Cc the port's maintainer.

comment:3 in reply to:  2 Changed 14 years ago by macports@…

Replying to ryandesign@…:

In the future please fill in the Port field and Cc the port's maintainer.

Huh, I did do that...don't know why it didn't go through.

comment:4 Changed 14 years ago by xenith (Justin Seabrook-Rocha)

hydrogen has always had problems compiling on 10.6. Upstream has never fixed the problem.

Should build and install fine on 10.5 though.

comment:5 in reply to:  4 ; Changed 14 years ago by macports@…

I actually got it to build from source using these directions (method 2): http://trac.assembla.com/hydrogen/wiki/development:compileOSX

Wouldn't know how to incorporate my success into macports.

comment:6 in reply to:  5 Changed 14 years ago by eliericha@…

I've tried building from source using the direction u pointed, but i still get the same error (or the same kind of error to be more precise)

In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:0,
                 from /System/Library/Frameworks/AudioUnit.framework/Headers/AudioComponent.h:45,
                 from /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h:21,
                 from libs/hydrogen/src/IO/CoreAudioDriver.h:33,
                 from libs/hydrogen/src/hydrogen.cpp:76:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147:120: error: format string argument not a string type

Command was :

export QTDIR=/Users/elie/local/
scons prefix=/Users/elie/local alsa=0 coreaudio=1 coremidi=1 flac=1 jack=1 lash=0 libarchive=0 lrdf=1 oss=0 portaudio=0 portmidi=0 bundle=1

QTDIR doesn't point to libexec/qt4-mac because it doesn't exist. I've noticed that through the build process, "/include" is appended to QTDIR to find the headers needed, whereas on my machine those headers are in ~/local/include. This why i set QTDIR to ~/local

so any updates or hints?

Replying to macports@…:

I actually got it to build from source using these directions (method 2): http://trac.assembla.com/hydrogen/wiki/development:compileOSX

Wouldn't know how to incorporate my success into macports.

comment:7 Changed 12 years ago by willy.wolff.0@…

Cc: willy.wolff.0@… added

Cc Me!

Changed 12 years ago by willy.wolff.0@…

Attachment: main.log added

comment:8 Changed 12 years ago by willy.wolff.0@…

I have the same prob with 0.9.2 version. See main.log i've attached.

comment:9 Changed 10 years ago by mp@…

Cc: mp@… added

Cc Me!

comment:10 Changed 6 years ago by mf2k (Frank Schima)

Owner: xenith deleted
Status: newassigned

See #58250.

comment:11 Changed 6 years ago by mf2k (Frank Schima)

Owner: set to mf2k
Resolution: fixed
Status: assignedclosed

In 0a65061e2e2ccd901eaf4228fb75ad11ea002d85/macports-ports (master):

hydrogen: Update to version 1.0.0-beta1

  • First release to use QT5
  • Use cmake 1.1 portgroup
  • Add license
  • Remove no longer needed patchfiles

Fixes: #25995
Fixes: #35167

Note: See TracTickets for help on using tickets.