Sebastian Moors kirjoitti:
Lauri Lehmus schrieb:
David Bolton kirjoitti:
Sebastian Moors wrote:
I'm stuck now with some weird QT linker errors ( well, i've got some
undefined references to QDir and QMutex),
but the rest of the windows build seems nice now.
I got stuck on the linker errors too. I didn't have the expertise to
tell which libraries it was having trouble linking against or how to fix it.
David
Mingw or MSVC? And are you using dynamic or static runtime?
At the moment i'm using Ming with dynamic libraries.
I made a test tomorrow with qmake and mingw. I was able to compile the
mandelbrot
example from Qt4.5 without problems, so i suggest that it is related to
scons.
Lauri, if i remember correctly, you said once that you have used qmake.
Do you still have those qmake project files?
It would be great if you could post those. If not, i'm going to try an
older version of hydrogen with qmake to check if that works.
So I'm using MSVC and here are the qmake files I use to create .vcproj
files.
.Lauri.
######################################################################
# Automatically generated by qmake (2.01a) ke 25. helmi 19:42:59 2009
######################################################################
include (../../features.pri)
TEMPLATE = vclib
TARGET = libhydrogen
QMAKE_CXXFLAGS += /D__PRETTY_FUNCTION__="__FUNCTION__" /wd4305
/D_CRT_SECURE_NO_WARNINGS /DPTW32_STATIC_LIB
CONFIG += qt warn_on thread staticlib precompile_header
DESTDIR = ..
INCLUDEPATH += ../.. include
OBJECTS_DIR = objs
win32 {
INCLUDEPATH += ../../3rdparty/install/include
INCLUDEPATH += ../../3rdparty/install/libs/libpthread
INCLUDEPATH += ../../3rdparty/install/libs/libsndfile
INCLUDEPATH += ../../3rdparty/install/libs/flac
INCLUDEPATH += ../../3rdparty/install/libs/portaudio
INCLUDEPATH += ../../3rdparty/install/libs/portmidi
INCLUDEPATH += ../../../../source/pthreads-w32-2-8-0-release
INCLUDEPATH += ../../../../source/libarchive-2.6.0/libarchive
}
DEFINES += $$H2DEFINES
#DEPENDPATH += . \
# src \
# include\hydrogen \
# src\fx \
# src\IO \
# src\lash \
# src\sampler \
# src\sequencer \
# src\smf \
# src\synth \
# src\table \
# src\xml \
# include\hydrogen\fx \
# include\hydrogen\IO \
# include\hydrogen\sampler \
# include\hydrogen\sequencer \
# include\hydrogen\smf \
# include\hydrogen\synth
#
INCLUDEPATH += .
PRECOMPILED_HEADER = src/precompiled.h
# Input
HEADERS += src/flac_file.h \
src/Precompiled.h \
include/hydrogen/action.h \
include/hydrogen/adsr.h \
include/hydrogen/audio_engine.h \
include/hydrogen/data_path.h \
include/hydrogen/event_queue.h \
include/hydrogen/globals.h \
include/hydrogen/h2_exception.h \
include/hydrogen/hydrogen.h \
include/hydrogen/instrument.h \
include/hydrogen/LashClient.h \
include/hydrogen/LocalFileMng.h \
include/hydrogen/midiMap.h \
include/hydrogen/note.h \
include/hydrogen/Object.h \
include/hydrogen/Pattern.h \
include/hydrogen/playlist.h \
include/hydrogen/Preferences.h \
include/hydrogen/sample.h \
include/hydrogen/Song.h \
include/hydrogen/SoundLibrary.h \
include/hydrogen/timehelper.h \
src/IO/AlsaAudioDriver.h \
src/IO/AlsaMidiDriver.h \
src/IO/CoreAudioDriver.h \
src/IO/DiskWriterDriver.h \
src/IO/FakeDriver.h \
src/IO/OssDriver.h \
src/IO/PortAudioDriver.h \
src/IO/PortMidiDriver.h \
src/table/getTableValue.h \
src/table/TableExponential.h \
src/xml/tinystr.h \
src/xml/tinyxml.h \
include/hydrogen/fx/Effects.h \
include/hydrogen/fx/ladspa.h \
include/hydrogen/fx/LadspaFX.h \
include/hydrogen/IO/AudioOutput.h \
include/hydrogen/IO/CoreMidiDriver.h \
include/hydrogen/IO/JackOutput.h \
include/hydrogen/IO/MidiInput.h \
include/hydrogen/IO/NullDriver.h \
include/hydrogen/IO/TransportInfo.h \
include/hydrogen/sampler/Sampler.h \
include/hydrogen/sequencer/Sequencer.h \
include/hydrogen/smf/SMF.h \
include/hydrogen/smf/SMFEvent.h \
include/hydrogen/synth/Synth.h
SOURCES += src/action.cpp \
src/adsr.cpp \
src/audio_engine.cpp \
src/data_path.cpp \
src/event_queue.cpp \
src/flac_file.cpp \
src/hydrogen.cpp \
src/instrument.cpp \
src/local_file_mgr.cpp \
src/midiMap.cpp \
src/note.cpp \
src/object.cpp \
src/pattern.cpp \
src/playlist.cpp \
src/preferences.cpp \
src/sample.cpp \
src/song.cpp \
src/sound_library.cpp \
src/timehelper.cpp \
src/fx/effects.cpp \
src/fx/ladspa_fx.cpp \
src/IO/alsa_audio_driver.cpp \
src/IO/alsa_midi_driver.cpp \
src/IO/coreaudio_driver.cpp \
src/IO/coremidi_driver.cpp \
src/IO/disk_writer_driver.cpp \
src/IO/fake_driver.cpp \
src/IO/jack_output.cpp \
src/IO/midi_input.cpp \
src/IO/null_driver.cpp \
src/IO/oss_driver.cpp \
src/IO/portaudio_driver.cpp \
src/IO/portmidi_driver.cpp \
src/IO/transport_info.cpp \
src/lash/LashClient.cpp \
src/sampler/sampler.cpp \
src/sequencer/sequencer.cpp \
src/smf/smf.cpp \
src/smf/smf_event.cpp \
src/synth/synth.cpp \
src/xml/tinystr.cpp \
src/xml/tinyxml.cpp \
src/xml/tinyxmlerror.cpp \
src/xml/tinyxmlparser.cpp ######################################################################
# Automatically generated by qmake (2.01a) to 26. helmi 14:51:41 2009
######################################################################
include(../features.pri)
TEMPLATE = vcapp
TARGET = Hydrogen
INCLUDEPATH += ../ ../libs/hydrogen/include
INCLUDEPATH += ./src/
DESTDIR = ..
QT += network xml
CONFIG += qt warn_on precompile_header release
PRECOMPILED_HEADER = src/Precompiled.h
LIBS += ../libs/libhydrogen.lib
PRE_TARGETDEPS = ../libs/libhydrogen.lib
QMAKE_CXXFLAGS += /D__PRETTY_FUNCTION__="__FUNCTION__" /wd4305
/DPTW32_STATIC_LIB
OBJECTS_DIR = objs
UI_DIR = objs
#UI_HEADERS_DIR = objs
UI_SOURCES_DIR = objs
MOC_DIR = objs
win32 {
INCLUDEPATH += ../3rdparty/install/include
#INCLUDEPATH += ../3rdparty/install/libs/libpthread
#INCLUDEPATH += ../3rdparty/install/libs/libsndfile
#INCLUDEPATH += ../3rdparty/install/libs/flac
#INCLUDEPATH += ../3rdparty/install/libs/portaudio
#INCLUDEPATH += ../3rdparty/install/libs/portmidi
INCLUDEPATH += ../../../source/pthreads-w32-2-8-0-release
}
# LIBS += ../libflac++.lib ../libflac++_dynamic.lib ../libflac++_static.lib
../libflac.lib winmm.lib
LIBS += ../libflac++_static.lib ../libflac_static.lib winmm.lib
LIBS += ../optarg.lib
LIBS += ../ogg_static.lib
LIBS += ../pm_dll.lib
LIBS += ../portmidi.lib
LIBS += ../portaudio_x86.lib
LIBS += ../porttime.lib
LIBS += ../pthreadvc2.lib
LIBS += dsound.lib ../cmtar.lib ../sndfile.lib wsock32.lib
DEPENDPATH += . \
src \
src\AudioFileBrowser \
src\InstrumentEditor \
src\Mixer \
src\PatternEditor \
src\PlaylistEditor \
src\SongEditor \
src\SoundLibrary \
src\UI \
src\widgets
INCLUDEPATH += .
TRANSLATIONS = \
../data/i18n/hydrogen.de.ts \
../data/i18n/hydrogen.fr.ts \
../data/i18n/hydrogen.it.ts \
../data/i18n/hydrogen.nl.ts \
../data/i18n/hydrogen.pt_BR.ts \
../data/i18n/hydrogen.sv.ts \
../data/i18n/hydrogen.es.ts \
../data/i18n/hydrogen.hu_HU.ts \
../data/i18n/hydrogen.ja.ts \
../data/i18n/hydrogen.pl.ts \
../data/i18n/hydrogen.ru.ts
# Input
HEADERS += src/AboutDialog.h \
src/AudioEngineInfoForm.h \
src/EventListener.h \
src/ExportSongDialog.h \
src/HelpBrowser.h \
src/HydrogenApp.h \
src/InstrumentRack.h \
src/LadspaFXProperties.h \
src/LadspaFXSelector.h \
src/MainForm.h \
src/PatternFillDialog.h \
src/PatternPropertiesDialog.h \
src/PlayerControl.h \
src/precompiled.h \
src/PreferencesDialog.h \
src/Skin.h \
src/SongPropertiesDialog.h \
src/SplashScreen.h \
src/AudioFileBrowser/AudioFileBrowser.h \
src/AudioFileBrowser/SampleWaveDisplay.h \
src/InstrumentEditor/InstrumentEditor.h \
src/InstrumentEditor/InstrumentEditorPanel.h \
src/InstrumentEditor/LayerPreview.h \
src/InstrumentEditor/WaveDisplay.h \
src/Mixer/Mixer.h \
src/Mixer/MixerLine.h \
src/PatternEditor/DrumPatternEditor.h \
src/PatternEditor/NotePropertiesRuler.h \
src/PatternEditor/PatternEditorInstrumentList.h \
src/PatternEditor/PatternEditorPanel.h \
src/PatternEditor/PatternEditorRuler.h \
src/PatternEditor/PianoRollEditor.h \
src/PlaylistEditor/PlaylistDialog.h \
src/SongEditor/SongEditor.h \
src/SongEditor/SongEditorPanel.h \
src/SoundLibrary/FileBrowser.h \
src/SoundLibrary/SoundLibraryExportDialog.h \
src/SoundLibrary/SoundLibraryImportDialog.h \
src/SoundLibrary/SoundLibraryPanel.h \
src/SoundLibrary/SoundLibraryPropertiesDialog.h \
src/SoundLibrary/SoundLibraryRepositoryDialog.h \
src/SoundLibrary/SoundLibrarySaveDialog.h \
src/SoundLibrary/SoundLibraryTree.h \
src/widgets/Button.h \
src/widgets/ClickableLabel.h \
src/widgets/CpuLoadWidget.h \
src/widgets/DownloadWidget.h \
src/widgets/Fader.h \
src/widgets/LCD.h \
src/widgets/LCDCombo.h \
src/widgets/MidiActivityWidget.h \
src/widgets/MidiSenseWidget.h \
src/widgets/midiTable.h \
src/widgets/PixmapWidget.h \
src/widgets/Rotary.h
FORMS += src/AudioFileBrowser/AudioFileBrowser_UI.ui \
src/PlaylistEditor/PlaylistDialog_UI.ui \
src/SoundLibrary/SoundLibraryExportDialog_UI.ui \
src/SoundLibrary/SoundLibraryImportDialog_UI.ui \
src/SoundLibrary/SoundLibraryPropertiesDialog_UI.ui \
src/SoundLibrary/SoundLibraryRepositoryDialog_UI.ui \
src/SoundLibrary/SoundLibrarySaveDialog_UI.ui \
src/UI/about_dialog.ui \
src/UI/AudioEngineInfoForm_UI.ui \
src/UI/DrumkitManager_UI.ui \
src/UI/ExportSongDialog_UI.ui \
src/UI/LadspaFXSelector_UI.ui \
src/UI/PatternFillDialog_UI.ui \
src/UI/PatternPropertiesDialog_UI.ui \
src/UI/PreferencesDialog_UI.ui \
src/UI/SongPropertiesDialog_UI.ui
SOURCES += src/AboutDialog.cpp \
src/AudioEngineInfoForm.cpp \
src/ExportSongDialog.cpp \
src/HelpBrowser.cpp \
src/HydrogenApp.cpp \
src/InstrumentRack.cpp \
src/LadspaFXProperties.cpp \
src/LadspaFXSelector.cpp \
src/main.cpp \
src/MainForm.cpp \
src/PatternFillDialog.cpp \
src/PatternPropertiesDialog.cpp \
src/PlayerControl.cpp \
src/PreferencesDialog.cpp \
src/SongPropertiesDialog.cpp \
src/SplashScreen.cpp \
src/AudioFileBrowser/AudioFileBrowser.cpp \
src/AudioFileBrowser/SampleWaveDisplay.cpp \
src/InstrumentEditor/InstrumentEditor.cpp \
src/InstrumentEditor/InstrumentEditorPanel.cpp \
src/InstrumentEditor/LayerPreview.cpp \
src/InstrumentEditor/WaveDisplay.cpp \
src/Mixer/Mixer.cpp \
src/Mixer/MixerLine.cpp \
src/PatternEditor/DrumPatternEditor.cpp \
src/PatternEditor/NotePropertiesRuler.cpp \
src/PatternEditor/PatternEditorInstrumentList.cpp \
src/PatternEditor/PatternEditorPanel.cpp \
src/PatternEditor/PatternEditorRuler.cpp \
src/PatternEditor/PianoRollEditor.cpp \
src/PlaylistEditor/PlaylistDialog.cpp \
src/SongEditor/SongEditor.cpp \
src/SongEditor/SongEditorPanel.cpp \
src/SoundLibrary/FileBrowser.cpp \
src/SoundLibrary/SoundLibraryExportDialog.cpp \
src/SoundLibrary/SoundLibraryImportDialog.cpp \
src/SoundLibrary/SoundLibraryPanel.cpp \
src/SoundLibrary/SoundLibraryPropertiesDialog.cpp \
src/SoundLibrary/SoundLibraryRepositoryDialog.cpp \
src/SoundLibrary/SoundLibrarySaveDialog.cpp \
src/SoundLibrary/SoundLibraryTree.cpp \
src/widgets/Button.cpp \
src/widgets/ClickableLabel.cpp \
src/widgets/CpuLoadWidget.cpp \
src/widgets/DownloadWidget.cpp \
src/widgets/Fader.cpp \
src/widgets/LCD.cpp \
src/widgets/LCDCombo.cpp \
src/widgets/MidiActivityWidget.cpp \
src/widgets/MidiSenseWidget.cpp \
src/widgets/midiTable.cpp \
src/widgets/PixmapWidget.cpp \
src/widgets/Rotary.cpp \
src/version.cpp
# Check if compiling with MSVC
contains(QMAKE_CC, cl)
{
CONFIG += msvc
}
macx-g++ {
LIBS += -framework AudioUnit -framework AudioToolbox \
-framework CoreServices -framework CoreAudio -framework CoreMidi
H2DEFINES += LADSPA_SUPPORT
H2DEFINES += FLAC_SUPPORT
# H2DEFINES += JACK_SUPPORT
H2DEFINES += COREAUDIO_SUPPORT
H2DEFINES += COREMIDI_SUPPORT
}
linux-g++ {
H2DEFINES += ALSA_SUPPORT
H2DEFINES += JACK_SUPPORT
H2DEFINES += LASH_SUPPORT
H2DEFINES += FLAC_SUPPORT
H2DEFINES += LADSPA_SUPPORT
H2DEFINES += LRDF_SUPPORT
H2DEFINES += OSS_SUPPORT
}
linux-g++-64 {
H2DEFINES += ALSA_SUPPORT
H2DEFINES += JACK_SUPPORT
H2DEFINES += LASH_SUPPORT
H2DEFINES += FLAC_SUPPORT
H2DEFINES += LADSPA_SUPPORT
H2DEFINES += LRDF_SUPPORT
H2DEFINES += OSS_SUPPORT
}
win32 {
H2DEFINES += FLAC_SUPPORT
#H2DEFINES += LADSPA_SUPPORT
H2DEFINES += PORTAUDIO_SUPPORT
H2DEFINES += PORTMIDI_SUPPORT
H2DEFINES += LIBARCHIVE_SUPPORT
}
------------------------------------------------------------------------------
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel