Issue 2 in midisnoop: build error

6 views
Skip to first unread message

midi...@googlecode.com

unread,
Feb 26, 2013, 7:09:20 PM2/26/13
to midisnoop-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2 by adr-g...@uridium.org: build error
http://code.google.com/p/midisnoop/issues/detail?id=2

When trying to build midisnoop-0.1.2 I get the following error:

g++ -c -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W
-D_REENTRANT -DMIDISNOOP_PLATFORM_UNIX -DMIDISNOOP_MAJOR_VERSION=0
-DMIDISNOOP_MINOR_VERSION=1 -DMIDISNOOP_REVISION=0 -DQT_NO_DEBUG
-DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtUiTools
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtXml
-I/usr/include -I../make -o ../make/engine.o engine.cpp
engine.cpp: In member function ‘void Engine::handleMidiInput(double,
std::vector<unsigned char, std::allocator<unsigned char> >*)’:
engine.cpp:168: error: ‘class QDateTime’ has no member named
‘toMSecsSinceEpoch’
engine.cpp: In member function ‘quint64 Engine::sendMessage(const
QByteArray&)’:
engine.cpp:205: error: ‘class QDateTime’ has no member named
‘toMSecsSinceEpoch’
make[1]: *** [../make/engine.o] Error 1
make[1]: Leaving directory `/home/packager/rpm/tmp/midisnoop-0.1.2/src'
make: *** [sub-src-make_default] Error 2


This is on CentOS 6.3 with rtmidi 2.0.1 installed from source with ALSA and
Jack support built in.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

midi...@googlecode.com

unread,
Feb 26, 2013, 8:55:17 PM2/26/13
to midisnoop-...@googlegroups.com

Comment #1 on issue 2 by surfacep...@gmail.com: build error
http://code.google.com/p/midisnoop/issues/detail?id=2

What version of Qt are you compiling against?

midi...@googlecode.com

unread,
Feb 27, 2013, 4:42:28 AM2/27/13
to midisnoop-...@googlegroups.com

Comment #2 on issue 2 by adr-goog...@uridium.org: build error
http://code.google.com/p/midisnoop/issues/detail?id=2

QT 4.6.2, the version that ships with CentOS 6.3.

midi...@googlecode.com

unread,
Feb 27, 2013, 5:40:42 AM2/27/13
to midisnoop-...@googlegroups.com

Comment #3 on issue 2 by adr-goog...@uridium.org: build error
http://code.google.com/p/midisnoop/issues/detail?id=2

I found the following related discussion:
http://forums.openpilot.org/topic/3204-is-qt-47-mandatory-now/

Would it be possible to use 'toTime_t' instead of 'toMSecsSinceEpoch' as
suggested in that thread so that midisnoop builds with QT < 4.7 too?

QT is a fundamental system package with loads of dependencies so
unfortunately I can't upgrade it to a newer version.

midi...@googlecode.com

unread,
Feb 27, 2013, 6:03:16 PM2/27/13
to midisnoop-...@googlegroups.com

Comment #4 on issue 2 by surfacep...@gmail.com: build error
http://code.google.com/p/midisnoop/issues/detail?id=2

The resolution of toTime_t () is seconds, which isn't useful for these
timestamps. I'll do a bit of research later on how to solve this problem.

midi...@googlecode.com

unread,
Feb 28, 2013, 1:06:01 AM2/28/13
to midisnoop-...@googlegroups.com
Updates:
Status: Started

Comment #5 on issue 2 by surfacep...@gmail.com: build error
http://code.google.com/p/midisnoop/issues/detail?id=2

I've added what I *believe* is a fix to trunk. Check the source out from
trunk and let me know if the fix works for you.

midi...@googlecode.com

unread,
Feb 28, 2013, 5:56:43 AM2/28/13
to midisnoop-...@googlegroups.com

Comment #6 on issue 2 by adr-goog...@uridium.org: build error
http://code.google.com/p/midisnoop/issues/detail?id=2

Many thanks! Midisnoop now builds without errors on Centos 6.3 and the
program runs fine when I launch it, so I guess you can close this issue.
I haven't tested snooping actual MIDI traffic yet, but if I notice any
time-stamp problems when doing that I will open a new issue.

midi...@googlecode.com

unread,
Feb 28, 2013, 12:55:34 PM2/28/13
to midisnoop-...@googlegroups.com
Updates:
Status: Fixed

Comment #7 on issue 2 by surfacep...@gmail.com: build error
http://code.google.com/p/midisnoop/issues/detail?id=2

You're very welcome. Let me know if you run into any more issues.
Reply all
Reply to author
Forward
0 new messages