Using the same sources, there was, however, a compile error on OS X. Most of the compilation completed normally. There was, however, a problem with building the WASP plug-ins. Following are the details:

$ uname -sr
Darwin 8.7.0 

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.4.7
BuildVersion:   8J135

$ gcc --version
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ locate glibc
/sw/lib/glib/include/glibconfig.h
/sw/lib/glib-2.0/include/glibconfig.h
/sw/share/aclocal/glibc2.m4
/sw/share/aclocal/glibc21.m4

$ fink list qt
i   qt3                               3.3.6-1029                Cross-Platform GUI application framework
p   qt3-bin                                                     [virtual package]
i   qt3-designer                      3.3.6-1029                Cross-Platform GUI application framework
i   qt3-doc                           3.3.6-1029                Cross-Platform GUI application framework
i   qt3-linguist                      3.3.6-1029                Cross-Platform GUI application framework
     qt3-mysql                         3.3.6-1027                Cross-Platform GUI application framework (MySQL Plugin)
     qt3-postgresql                    3.3.6-1027                Cross-Platform GUI application framework (PostgreSQL Plugin)
i   qt3-shlibs                        3.3.6-1029                Cross-Platform GUI application framework

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --enable-profile --enable-debug --disable-alsa --disable-oss-support "CPPFLAGS=-I/usr/local/include -I/sw/include -I/sw/include/FLAC -I/sw/include/FLAC++ -I/System/Library/Frameworks/MidiShare.framework/Versions/A/Headers -I/System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers -I/Library/Frameworks/Jack.framework/Headers" "LDFLAGS=-L/usr/local/lib -L/sw/lib -framework CoreAudio -framework CoreMidi -framework CoreServices -framework AudioUnit -framework Jack"

-----------------------------------------------------------------
Hydrogen 0.9.3-svn configuration:
-----------------------------------------------------------------

        Source code location:   .
        Prefix                  /usr/local
        Data path               /usr/local/share/hydrogen
        LDFLAGS                  -L/sw/lib -lsndfile   -lFLAC++ -lFLAC -ljack -llrdf -lraptor -lxml2

        Debug messages:         yes
        FLAC:                   yes
        LRDF:                   yes

        Jack:                   yes
        ALSA :                  no
        OSS:                    no
        PortAudio               no
        PortMidi:               no

        Features list =  (Debug) (FLAC) (Jack) (LRDF)

-----------------------------------------------------------------
Now type make to build Hydrogen.
-----------------------------------------------------------------

$ make
g++-4.0 -c -pipe -pg -g -w -g  -D__DARWIN_X11__ -DQT_THREAD_SUPPORT -I/sw/lib/qt3/mkspecs/default -I. -I. -Isrc -I/sw/include/qt -I/sw/lib/qt3/include -o src/tinystr.o src/lib/xml/tinystr.cpp
g++-4.0 -c -pipe -pg -g -w -g  -D__DARWIN_X11__ -DQT_THREAD_SUPPORT -I/sw/lib/qt3/mkspecs/default -I. -I. -Isrc -I/sw/include/qt -I/sw/lib/qt3/include -o src/tinyxml.o src/lib/xml/tinyxml.cpp
<cut>

g++-4.0 -pg -prebind -o hydrogen src/tinystr.o src/tinyxml.o src/tinyxmlerror.o src/tinyxmlparser.o src/AlsaMidiDriver.o src/DiskWriterDriver.o src/FakeDriver.o src/JackDriver.o src/NullDriver.o src/OssDriver.o src/TransportInfo.o src/AlsaAudioDriver.o src/MidiDriver.o src/PortMidiDriver.o src/PortAudioDriver.o src/LadspaFX.o src/SMF.o src/SMFEvent.o src/ADSR.o src/DataPath.o src/EventQueue.o src/FLACFile.o src/Hydrogen.o src/LocalFileMng.o src/Object.o src/Preferences.o src/Sample.o src/Song.o src/Button.o src/CpuLoadWidget.o src/ClickableLabel.o src/Fader.o src/LCD.o src/MidiActivityWidget.o src/Rotary.o src/InstrumentEditor.o src/WaveDisplay.o src/LayerPreview.o src/SongEditor.o src/SongEditorPanel.o src/PatternEditor.o src/PatternEditorPanel.o src/Mixer.o src/MixerLine.o src/AboutDialog.o src/AudioEngineInfoForm.o src/DrumkitManager.o src/ExportSongDialog.o src/FilePreview.o src/HelpBrowser.o src/HydrogenApp.o src/LadspaFXProperties.o src/LadspaFXSelector.o src/MainForm.o src/PatternFillDialog.o src/PatternPropertiesDialog.o src/PlayerControl.o src/PreferencesDialog.o src/SongPropertiesDialog.o src/SplashScreen.o src/main.o src/AboutDialog_UI.o src/AudioEngineInfoForm_UI.o src/DrumkitManager_UI.o src/ExportSongDialog_UI.o src/LadspaFXSelector_UI.o src/PatternFillDialog_UI.o src/PatternPropertiesDialog_UI.o src/PreferencesDialog_UI.o src/SongPropertiesDialog_UI.o src/moc_Button.o src/moc_CpuLoadWidget.o src/moc_ClickableLabel.o src/moc_Fader.o src/moc_LCD.o src/moc_MidiActivityWidget.o src/moc_Rotary.o src/moc_InstrumentEditor.o src/moc_WaveDisplay.o src/moc_LayerPreview.o src/moc_SongEditor.o src/moc_SongEditorPanel.o src/moc_PatternEditor.o src/moc_PatternEditorPanel.o src/moc_Mixer.o src/moc_MixerLine.o src/moc_AboutDialog.o src/moc_AudioEngineInfoForm.o src/moc_DrumkitManager.o src/moc_ExportSongDialog.o src/moc_FilePreview.o src/moc_HelpBrowser.o src/moc_HydrogenApp.o src/moc_LadspaFXProperties.o src/moc_LadspaFXSelector.o src/moc_MainForm.o src/moc_PatternFillDialog.o src/moc_PatternPropertiesDialog.o src/moc_PlayerControl.o src/moc_PreferencesDialog.o src/moc_SongPropertiesDialog.o src/moc_SplashScreen.o src/moc_AboutDialog_UI.o src/moc_AudioEngineInfoForm_UI.o src/moc_DrumkitManager_UI.o src/moc_ExportSongDialog_UI.o src/moc_LadspaFXSelector_UI.o src/moc_PatternFillDialog_UI.o src/moc_PatternPropertiesDialog_UI.o src/moc_PreferencesDialog_UI.o src/moc_SongPropertiesDialog_UI.o   -L/sw/lib -L/sw/lib/qt3/lib -L/usr/X11R6/lib -L/sw/lib -lsndfile -lFLAC++ -lFLAC -ljack -llrdf -lraptor -lxml2 -lqt-mt -lXext -lX11 -lm
/usr/bin/ld: warning prebinding disabled because dependent library: /sw/lib/libsndfile.1.dylib is not prebound
gcc -I/usr/local/include/ -Iinclude -fPIC -DPIC -Wall -O2 -g -c -o plugins/booster.o plugins/booster.c
ld -shared -o wasp_booster.so plugins/booster.o
ld: unknown flag: -shared
make[2]: *** [wasp_booster.so] Error 1
make[1]: *** [all] Error 2
make: *** [ladspa_plugins] Error 2

The "-shared" compiler option is not supported on OS X. Editing "./plugins/wasp/Makefile" I tried other compiler flags instead but each produced its own particular error: 

gcc -I/usr/local/include/ -Iinclude -fPIC -DPIC -Wall -O2 -g -c -o plugins/booster.o plugins/booster.c
ld -dylib -o wasp_booster.so plugins/booster.o
ld: plugins/booster.o illegal undefined reference for multi module MH_DYLIB output file to symbol: dyld_stub_binding_helper from section (__DATA,__la_symbol_ptr) relocation entry: 0
make[2]: *** [wasp_booster.so] Error 1
make[1]: *** [all] Error 2
make: *** [ladspa_plugins] Error 2

ld -bundle -o wasp_booster.so plugins/booster.o -undefined dynamic_lookup
ld: plugins/booster.o has external relocation entries in non-writable section (__TEXT,__text) for symbols:
restFP
saveFP
make[2]: *** [wasp_booster.so] Error 1
make[1]: *** [all] Error 2
make: *** [ladspa_plugins] Error 2

ld -bundle -o wasp_booster.so plugins/booster.o
ld: Undefined symbols:
_calloc
_free
_malloc
_powf
_strdup
dyld_stub_binding_helper
restFP
saveFP
make[2]: *** [wasp_booster.so] Error 1
make[1]: *** [all] Error 2
make: *** [ladspa_plugins] Error 2

ld -dynamic -o wasp_booster.so plugins/booster.o
ld: Undefined symbols:
_calloc
_free
_malloc
_powf
_strdup
dyld_stub_binding_helper
restFP
saveFP
make[2]: *** [wasp_booster.so] Error 1
make[1]: *** [all] Error 2

ld -dylib -o wasp_booster.so plugins/booster.o
ld: plugins/booster.o illegal undefined reference for multi module MH_DYLIB output file to symbol: dyld_stub_binding_helper from section (__DATA,__la_symbol_ptr) relocation entry: 0
make[2]: *** [wasp_booster.so] Error 1
make[1]: *** [all] Error 2
make: *** [ladspa_plugins] Error 2

A "hydrogen" binary was nevertheless produced which when launched in X11 was unable to produce any sound. This lack of sound is also probably caused by the lack of an audio backend for Jack which for OS X is CoreAudio, I imagine? (In addition, there is also no sound when I try the hydrogen.app OS X application binary (v0.9.4-svn Jan 20, 2006).)  

Alternatively, running "./configure && qmake -project && qmake && make" produced the following compile error and no binary:

g++-4.0 -c -pipe -Wall -W -Os  -D__DARWIN_X11__ -DQT_NO_DEBUG -I/sw/lib/qt3/mkspecs/default -I. -I. -Isrc/cui -Isrc/gui -Isrc/gui/PatternEditor -Isrc/lib -Isrc/gui/InstrumentEditor -Isrc/gui/SongEditor -Isrc/gui/Mixer -Isrc/gui/widgets -Isrc/lib/synth -Isrc/lib/drivers -Isrc/lib/xml -Isrc/lib/fx -Isrc/lib/smf -Iplugins/wasp/include -I/sw/include/qt -I/sw/lib/qt3/include -o HydrogenBenchmark.o src/tools/HydrogenBenchmark.cpp
src/tools/HydrogenBenchmark.cpp: In function 'int main(int, char**)':
src/tools/HydrogenBenchmark.cpp:56: error: invalid use of undefined type 'struct GenericDriver'
./src/lib/Hydrogen.h:41: error: forward declaration of 'struct GenericDriver'
make: *** [HydrogenBenchmark.o] Error 1

Any suggestions/advice would be appreciated.
E
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to