#148 Sonic Visualiser 1.7.1 does not compile on Linux

open
nobody
None
5
2010-02-13
2010-02-13
minuz
No

I am trying to compile sonic on Archlinux. But i got several errors. The first one is:

g++ -c -pipe -D'OGGZ_VERSION="1.0.1"' -D'FISHSOUND_VERSION="0.9.2"' -I/usr/include/FLAC -D'MAD_VERSION="0.15.1b"' -D'ID3TAG_VERSION="0.15.0b"' -D'FFTW3F_VERSION="3.2.2"' -D'SNDFILE_VERSION="1.0.21"' -D'LIBLO_VERSION="0.26"' -march=i686 -mtune=generic -O2 -pipe -DNDEBUG -DNO_TIMING -O3 -DBUILD_RELEASE -D'SVNREV="exported"' -Wall -W -D_REENTRANT -fPIC -DHAVE_BZ2 -DHAVE_OGGZ -DHAVE_FISHSOUND -DHAVE_MAD -DHAVE_ID3TAG -DHAVE_FFTW3F -DHAVE_SNDFILE -DHAVE_LIBLO -D__LINUX_ALSASEQ__ -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include -I. -Ifft -Ifileio -Imodel -Iosc -I.. -Itmp_moc -o tmp_obj/MatrixFile.o fileio/MatrixFile.cpp
fileio/MatrixFile.cpp: In member function ‘void MatrixFile::initialise()’:
fileio/MatrixFile.cpp:199: error: ‘assert’ was not declared in this scope
fileio/MatrixFile.cpp: In member function ‘void MatrixFile::getColumnAt(size_t, void*)’:
fileio/MatrixFile.cpp:268: error: ‘assert’ was not declared in this scope
fileio/MatrixFile.cpp: In member function ‘void MatrixFile::setColumnAt(size_t, const void*)’:
fileio/MatrixFile.cpp:343: error: ‘assert’ was not declared in this scope
make[1]: *** [tmp_obj/MatrixFile.o] Error 1
make[1]: Leaving directory `/home/hollunder/builds/sonic-visualiser/src/sonic-visualiser-1.7.1/data'
make: *** [sub-data-make_default-ordered] Error 2

I tried uncommenting the corresponding "assert" calls. Then i got another error:

g++ -c -pipe -D'OGGZ_VERSION="1.0.1"' -D'FISHSOUND_VERSION="0.9.2"' -I/usr/include/FLAC -D'MAD_VERSION="0.15.1b"' -D'ID3TAG_VERSION="0.15.0b"' -D'FFTW3F_VERSION="3.2.2"' -D'SNDFILE_VERSION="1.0.21"' -D'LIBLO_VERSION="0.26"' -march=i686 -mtune=generic -O2 -pipe -DNDEBUG -DNO_TIMING -O3 -DBUILD_RELEASE -D'SVNREV="exported"' -Wall -W -D_REENTRANT -fPIC -DHAVE_BZ2 -DHAVE_OGGZ -DHAVE_FISHSOUND -DHAVE_MAD -DHAVE_ID3TAG -DHAVE_FFTW3F -DHAVE_SNDFILE -DHAVE_LIBLO -D__LINUX_ALSASEQ__ -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include -I. -Ifft -Ifileio -Imodel -Iosc -I.. -Itmp_moc -o tmp_obj/EditableDenseThreeDimensionalModel.o model/EditableDenseThreeDimensionalModel.cpp
model/EditableDenseThreeDimensionalModel.cpp: In member function ‘virtual Model* EditableDenseThreeDimensionalModel::clone() const’:
model/EditableDenseThreeDimensionalModel.cpp:95: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp: In member function ‘virtual QVector<float> EditableDenseThreeDimensionalModel::getColumn(size_t) const’:
model/EditableDenseThreeDimensionalModel.cpp:160: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp: In member function ‘virtual float EditableDenseThreeDimensionalModel::getValueAt(size_t, size_t) const’:
model/EditableDenseThreeDimensionalModel.cpp:168: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp: In member function ‘void EditableDenseThreeDimensionalModel::truncateAndStore(size_t, const QVector<float>&)’:
model/EditableDenseThreeDimensionalModel.cpp:178: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp:178: error: ‘assert’ was not declared in this scope
model/EditableDenseThreeDimensionalModel.cpp:190: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp: In member function ‘QVector<float> EditableDenseThreeDimensionalModel::expandAndRetrieve(size_t) const’:
model/EditableDenseThreeDimensionalModel.cpp:290: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp:290: error: ‘assert’ was not declared in this scope
model/EditableDenseThreeDimensionalModel.cpp:304: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp: In member function ‘virtual void EditableDenseThreeDimensionalModel::setColumn(size_t, const QVector<float>&)’:
model/EditableDenseThreeDimensionalModel.cpp:334: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp:343: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp: In member function ‘virtual bool EditableDenseThreeDimensionalModel::shouldUseLogValueScale() const’:
model/EditableDenseThreeDimensionalModel.cpp:422: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp: In member function ‘virtual QString EditableDenseThreeDimensionalModel::toDelimitedDataString(QString) const’:
model/EditableDenseThreeDimensionalModel.cpp:476: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp:478: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp: In member function ‘virtual void EditableDenseThreeDimensionalModel::toXml(QTextStream&, QString, QString) const’:
model/EditableDenseThreeDimensionalModel.cpp:520: warning: comparison between signed and unsigned integer expressions
model/EditableDenseThreeDimensionalModel.cpp:523: warning: comparison between signed and unsigned integer expressions
make[1]: *** [tmp_obj/EditableDenseThreeDimensionalModel.o] Error 1
make[1]: Leaving directory `/home/flo/test/sonic/src/sonic-visualiser-1.7.1/data'
make: *** [sub-data-make_default-ordered] Error 2

Discussion

  • rwman
    rwman
    2011-10-19

    I'm getting this error too with version 1.9, trying to build it on openSUSE

     
  • rwman
    rwman
    2011-10-19

    This error is introduced by FLAC library. It provides wrong CFLAGS in it's pc-file which leads to overlapping system assert.h file with FLAC/assert.h. Bugreport aginst it here: https://sourceforge.net/tracker/index.php?func=detail&aid=2796733&group_id=13478&atid=113478.

    It is fixed in FLAC CVS and should be included the FLAC 1.2.2 version, if it will come out some day ...