Description: An editor and visualizer for guitar chords. The user can view chords and see how they should be fingered on the guitar fretboard. New chords can also be created and edited. Eventually some facility for merging in externally made contributions will be implemented.
I have a compilation error on my Slackware 13.0, with Qt 4.5. Maybe guitar-chord-editor need Qt 4.6?
In file included from MainWindow.cpp:13:
ChordItem.hh:4:27: error: QGraphicsObject: No such file or directory
In file included from MainWindow.cpp:13:
ChordItem.hh:13: error: expected class-name before ‘{’ token
In file included from MainWindow.cpp:16:
Neck.hh:9: error: expected class-name before ‘{’ token
MainWindow.cpp: In constructor ‘MainWindow::MainWindow(QWidget*)’:
MainWindow.cpp:30: error: ‘class Neck’ has no member named ‘setPos’
MainWindow.cpp:31: error: no matching function for call to ‘QGraphicsScene::addItem(Neck*&)’
/usr/lib/qt/include/QtGui/qgraphicsscene.h:175: note: candidates are: void QGraphicsScene::addItem(QGraphicsItem*)
MainWindow.cpp:52: error: ‘fromTheme’ is not a member of ‘QIcon’
MainWindow.cpp:53: error: ‘fromTheme’ is not a member of ‘QIcon’
MainWindow.cpp:54: error: ‘fromTheme’ is not a member of ‘QIcon’
MainWindow.cpp:55: error: ‘fromTheme’ is not a member of ‘QIcon’
MainWindow.cpp:56: error: ‘fromTheme’ is not a member of ‘QIcon’
MainWindow.cpp:57: error: ‘fromTheme’ is not a member of ‘QIcon’
MainWindow.cpp:58: error: ‘fromTheme’ is not a member of ‘QIcon’
MainWindow.cpp:59: error: ‘fromTheme’ is not a member of ‘QIcon’
MainWindow.cpp: In member function ‘void MainWindow::showChordItem(Chord*)’:
MainWindow.cpp:406: error: no matching function for call to ‘QGraphicsScene::addItem(ChordItem*&)’
/usr/lib/qt/include/QtGui/qgraphicsscene.h:175: note: candidates are: void QGraphicsScene::addItem(QGraphicsItem*)
MainWindow.cpp:409: error: no matching function for call to ‘MainWindow::connect(ChordItem*&, const char [38], View*&, const char [23])’
/usr/lib/qt/include/QtCore/qobject.h:202: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
/usr/lib/qt/include/QtCore/qobject.h:307: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
make: *** [.build/MainWindow.o] Error 1
Ratings & Comments
2 Comments
I have a compilation error on my Slackware 13.0, with Qt 4.5. Maybe guitar-chord-editor need Qt 4.6? In file included from MainWindow.cpp:13: ChordItem.hh:4:27: error: QGraphicsObject: No such file or directory In file included from MainWindow.cpp:13: ChordItem.hh:13: error: expected class-name before ‘{’ token In file included from MainWindow.cpp:16: Neck.hh:9: error: expected class-name before ‘{’ token MainWindow.cpp: In constructor ‘MainWindow::MainWindow(QWidget*)’: MainWindow.cpp:30: error: ‘class Neck’ has no member named ‘setPos’ MainWindow.cpp:31: error: no matching function for call to ‘QGraphicsScene::addItem(Neck*&)’ /usr/lib/qt/include/QtGui/qgraphicsscene.h:175: note: candidates are: void QGraphicsScene::addItem(QGraphicsItem*) MainWindow.cpp:52: error: ‘fromTheme’ is not a member of ‘QIcon’ MainWindow.cpp:53: error: ‘fromTheme’ is not a member of ‘QIcon’ MainWindow.cpp:54: error: ‘fromTheme’ is not a member of ‘QIcon’ MainWindow.cpp:55: error: ‘fromTheme’ is not a member of ‘QIcon’ MainWindow.cpp:56: error: ‘fromTheme’ is not a member of ‘QIcon’ MainWindow.cpp:57: error: ‘fromTheme’ is not a member of ‘QIcon’ MainWindow.cpp:58: error: ‘fromTheme’ is not a member of ‘QIcon’ MainWindow.cpp:59: error: ‘fromTheme’ is not a member of ‘QIcon’ MainWindow.cpp: In member function ‘void MainWindow::showChordItem(Chord*)’: MainWindow.cpp:406: error: no matching function for call to ‘QGraphicsScene::addItem(ChordItem*&)’ /usr/lib/qt/include/QtGui/qgraphicsscene.h:175: note: candidates are: void QGraphicsScene::addItem(QGraphicsItem*) MainWindow.cpp:409: error: no matching function for call to ‘MainWindow::connect(ChordItem*&, const char [38], View*&, const char [23])’ /usr/lib/qt/include/QtCore/qobject.h:202: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType) /usr/lib/qt/include/QtCore/qobject.h:307: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const make: *** [.build/MainWindow.o] Error 1
Indeed, 4.6 is required. QGraphicsObject is a class that appeared with 4.6.