Skip to Content

Compiling problem

3 replies [Last post]
marotte
Offline
Joined: 04/17/2010

I can't compile the last cvs (0.9.4-cvs), got this error :

g++ -c -pipe -w -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/share/qt3/mkspecs/default -I. -I. -Isrc -I../../../include/qt3 -o src/LadspaFX.o src/lib/fx/LadspaFX.cpp
src/lib/fx/LadspaFX.cpp: Dans static member function ? static
std::vector >
LadspaFX::getPluginList() ?:
src/lib/fx/LadspaFX.cpp:457: error: conversion from `const QFileInfoList*' to
non-scalar type `QPtrList' requested
src/lib/fx/LadspaFX.cpp:458: error: `size' undeclared (first use this function)
src/lib/fx/LadspaFX.cpp:458: error: (Each undeclared identifier is reported
only once for each function it appears in.)
src/lib/fx/LadspaFX.cpp:459: error: request for member `fileName' in `
(&list)->QPtrList::at [with type = QFileInfo](i)', which is of
non-aggregate type `QFileInfo*'
src/lib/fx/LadspaFX.cpp: Dans static member function ? static void
LadspaFX::getRDF(LadspaFXGroup*, std::vector >) ?:
src/lib/fx/LadspaFX.cpp:599: error: conversion from `const QFileInfoList*' to
non-scalar type `QPtrList' requested
src/lib/fx/LadspaFX.cpp:600: error: `size' undeclared (first use this function)
src/lib/fx/LadspaFX.cpp:601: error: request for member `fileName' in `
(&list)->QPtrList::at [with type = QFileInfo](i)', which is of
non-aggregate type `QFileInfo*'
make[1]: *** [src/LadspaFX.o] Erreur 1
make[1]: Leaving directory `/usr/local/src/hydrogen'
make: *** [hydrogenPlayer] Erreur 2

Comix
Offline
Joined: 04/17/2010

you need QT4 in order to compile v0.9.4CVS.

--
comix

csteph
Offline
Joined: 04/17/2010

Hi -

I've successfully installed the QT4 libs. Updated QT4, everything seems to have worked ok. configure checks out.

This is the status of my configure:
-----------------------------------------------------------------
Hydrogen 0.9.4-cvs configuration:
-----------------------------------------------------------------

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

Debug messages: no
FLAC: no
LRDF: yes

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

Features list = (Jack) (Alsa) (OSS) (LRDF)

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

However, when I run make, it's fine until this:

g++ -c -pipe -g -O2 -w -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.0.1/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.0.1/include/QtNetwork -I/usr/local/Trolltech/Qt-4.0.1/include/QtGui -I/usr/local/Trolltech/Qt-4.0.1/include/QtCore -I/usr/local/Trolltech/Qt-4.0.1/include -I. -Isrc -Isrc -Isrc -o src/MidiDriver.o src/lib/drivers/MidiDriver.cpp
src/lib/drivers/MidiDriver.cpp: In member function `void MidiDriver::handleNoteOffMessage(const MidiMessage&)':
src/lib/drivers/MidiDriver.cpp:193: error: `get' undeclared (first use this function)
src/lib/drivers/MidiDriver.cpp:193: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[1]: *** [src/MidiDriver.o] Error 1

Any ideas?

Thanks, caleb

csteph
Offline
Joined: 04/17/2010

FYI - Installing FLAC resolved my above compile issue ...