Ben Armstrong wrote:
>
> Thanks Sean,
>
> midi2awe worked like a charm, even under Linux 2.1.131.
>
> I saw in the midi2awe README mention made of cantor, so I downloaded that
> and started plugging away at it, trying to get it to compile. I made some
> adjustments to fit where my Debian system keeps everything, and knocked
> off a few errors of this sort:
>
> QJSBKItem.cc:41: definition of implicitly-declared `QJSBKItem::~QJSBKItem()'
> QJSBKItem.cc: In method `void QJSBKItem::activate()':
>
> by editing the .h file to explicitly declare the ~whatever method.
Yep thats because gcc2.7.2 does not complain about this. I have
recently upgraded to slackware 3.6 which uses the egcs compiler
and I think I have sorted all these out now !!!
> However, I am now faced with the following, and I cannot think of
> an immediate solution:
>
> g++ -g -Wall -DJ_HAVE_AWE -DJ_HAVE_AWELIB -DJ_HAVE_OSS -DDEBUG_CONFLICT -I.
>-I/usr/include/qt -I/include/idl -I.. -c QJSBKItem.cc
> /usr/include/awe/util.h:24: previous non-function declaration `int debug'
> In file included from /usr/include/qt/qobjectdefs.h:28,
> from /usr/include/qt/qwindowdefs.h:29,
> from /usr/include/qt/qwidget.h:28,
> from /usr/include/qt/qframe.h:28,
> from /usr/include/qt/qscrollview.h:27,
> from /usr/include/qt/qlistview.h:37,
> from QJSFDirectoryItem.h:4,
> from QJSBKItem.cc:17:
> /usr/include/qt/qglobal.h:455: conflicts with function declaration `void debug(const
>char * ...)'
> QJSBKItem.cc: In method `void QJSBKItem::activate()':
> QJSBKItem.cc:114: warning: unused variable `int rc'
> make: *** [QJSBKItem.o] Error 1
Oooops this is a conflict with Qt and the awlib headers. It is fixed in
my latest version.
I think I hacked one of the awelib headers (do grep to find it ?) to get
round this problem I just enclosed
the declaration of debug with #ifndef DEBUG_CONFICT etc.
My latest version does not require this since I have futher decoupled
things.
> Well, it seems that the version of qt I have (1.42) is unhappy with the
> version of libawe I have (0.4.2c) I suppose the next step is to go poking
> about and try to find different versions of these. If anyone has
> suggestions, let me know.
>
> If I ever do get cantor to compile, I might even consider packaging it for
> Debian, as I am a Debian developer. With Troll Tech's new QPL license for
> Qt, things are looking much better for inclusion of GPL'd works that link
> against Qt in Debian.
>
> Ben
I will try to get the latest cantor onto my ftp site (watch this
space).
I had a slight hold up when I found GString.h was not with egcs.
I am now using the QT Qstring instead.
cheers Paul