Compiling Carla in Ubuntu 13.10: "Moc?" A media player?

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: MattKingUSA, khz

Post Reply
User avatar
GraysonPeddie
Established Member
Posts: 673
Joined: Sun Feb 12, 2012 11:12 pm
Location: Altha, FL
Been thanked: 6 times
Contact:

Compiling Carla in Ubuntu 13.10: "Moc?" A media player?

Post by GraysonPeddie »

I got an error trying to compile Carla 1.1.0 in Ubuntu 13.10:

Code: Select all

In file included from CarlaPluginGui.cpp:28:0:
moc_CarlaPluginGui.cpp:15:2: error: #error "This file was generated using the moc from 5.0.2. It"
 #error "This file was generated using the moc from 5.0.2. It"
  ^
moc_CarlaPluginGui.cpp:16:2: error: #error "cannot be used with the include files from this version of Qt."
 #error "cannot be used with the include files from this version of Qt."
  ^
moc_CarlaPluginGui.cpp:17:2: error: #error "(The moc has changed too much.)"
 #error "(The moc has changed too much.)"
According to apt-get show moc:

Code: Select all

Description-en: ncurses based console audio player
 moc (music on console) is a full-screen player designed to be powerful
 and easy to use.
 .
 Supported file formats are: MP3, OGG Vorbis, FLAC, WAVE, SPEEX, Musepack (MPC),
 AIFF, AU, WMA (and other less popular formats supported by libsndfile).
 New formats support is under development.
 .
 Other features: simple mixer, colour themes, searching the menu (the playlist
 or a directory) like M-s in Midnight Commander, the way MOC creates titles
 from tags is configurable, optional character set conversion for file tags
 using iconv(), OSS or ALSA output.
In Carla, where does this so-called "moc" came from?

"The moc has changed too much." (chuckles) A music player changed too much? Huh?

I did have other errors that prevented me from successfully compiling Carla:

Code: Select all

moc_CarlaPluginGui.cpp:22:5: error: ‘QByteArrayData’ does not name a type
     QByteArrayData data[6];
     ^
moc_CarlaPluginGui.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope
         - idx * sizeof(QByteArrayData) \
                        ^
moc_CarlaPluginGui.cpp:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(0, 0, 14),
 ^
moc_CarlaPluginGui.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
     )
     ^
moc_CarlaPluginGui.cpp:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(0, 0, 14),
 ^
moc_CarlaPluginGui.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope
         - idx * sizeof(QByteArrayData) \
                        ^
moc_CarlaPluginGui.cpp:33:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(1, 15, 17),
 ^
moc_CarlaPluginGui.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
     )
     ^
moc_CarlaPluginGui.cpp:33:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(1, 15, 17),
 ^
moc_CarlaPluginGui.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope
         - idx * sizeof(QByteArrayData) \
                        ^
moc_CarlaPluginGui.cpp:34:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(2, 33, 0),
 ^
moc_CarlaPluginGui.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
     )
     ^
moc_CarlaPluginGui.cpp:34:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(2, 33, 0),
 ^
moc_CarlaPluginGui.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope
         - idx * sizeof(QByteArrayData) \
                        ^
moc_CarlaPluginGui.cpp:35:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(3, 34, 15),
 ^
moc_CarlaPluginGui.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
     )
     ^
moc_CarlaPluginGui.cpp:35:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(3, 34, 15),
 ^
moc_CarlaPluginGui.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope
         - idx * sizeof(QByteArrayData) \
                        ^
moc_CarlaPluginGui.cpp:36:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(4, 50, 5),
 ^
moc_CarlaPluginGui.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
     )
     ^
moc_CarlaPluginGui.cpp:36:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(4, 50, 5),
 ^
moc_CarlaPluginGui.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope
         - idx * sizeof(QByteArrayData) \
                        ^
moc_CarlaPluginGui.cpp:37:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(5, 56, 6)
 ^
moc_CarlaPluginGui.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
     )
     ^
moc_CarlaPluginGui.cpp:37:1: note: in expansion of macro ‘QT_MOC_LITERAL’
 QT_MOC_LITERAL(5, 56, 6)
 ^
moc_CarlaPluginGui.cpp: In static member function ‘static void CarlaBackend::CarlaPluginGui::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)’:
moc_CarlaPluginGui.cpp:81:22: error: ‘IndexOfMethod’ is not a member of ‘QMetaObject’
     } else if (_c == QMetaObject::IndexOfMethod) {
                      ^
moc_CarlaPluginGui.cpp: At global scope:
moc_CarlaPluginGui.cpp:94:73: error: ‘const struct CarlaBackend::qt_meta_stringdata_CarlaPluginGui_t’ has no member named ‘data’
     { &QMainWindow::staticMetaObject, qt_meta_stringdata_CarlaPluginGui.data,
                                                                         ^
moc_CarlaPluginGui.cpp: In member function ‘virtual const QMetaObject* CarlaBackend::CarlaPluginGui::metaObject() const’:
moc_CarlaPluginGui.cpp:101:57: error: ‘class QObjectData’ has no member named ‘dynamicMetaObject’
     return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
                                                         ^
moc_CarlaPluginGui.cpp: In member function ‘virtual int CarlaBackend::CarlaPluginGui::qt_metacall(QMetaObject::Call, int, void**)’:
moc_CarlaPluginGui.cpp:121:22: error: ‘RegisterMethodArgumentMetaType’ is not a member of ‘QMetaObject’
     } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
                      ^
CarlaPluginGui.cpp: At global scope:
CarlaPluginGui.cpp:33:1: warning: unused parameter ‘engine’ [-Wunused-parameter]
 CarlaPluginGui::CarlaPluginGui(CarlaEngine* const engine, Callback* const callback, const Options& options, const QByteArray& lastGeometry)
 ^
In file included from CarlaPluginGui.cpp:28:0:
moc_CarlaPluginGui.cpp: In member function ‘virtual const QMetaObject* CarlaBackend::CarlaPluginGui::metaObject() const’:
moc_CarlaPluginGui.cpp:102:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[2]: *** [CarlaPluginGui.cpp.o] Error 1
make[2]: Leaving directory `/home/grayson/src/Carla/source/backend/plugin'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/grayson/src/Carla/source/backend'
make: *** [backend] Error 2
Am I missing something?

Code: Select all

grayson@htpc:~/src/Carla$ make features
---> Engine drivers: 
JACK:       YES 
ALSA:       YES 
PulseAudio: YES 

---> Plugin formats: 
Internal: YES 
LADSPA:   YES 
DSSI:     YES 
LV2:      YES 
VST:      YES 

---> LV2 UI toolkit support: 
ExternalUI: YES  (direct)
GtkUI:      YES  (bridge)
Gtk3UI:     YES  (bridge)
Qt4UI:      YES  (direct+bridge)
Qt5UI:      YES  (bridge)
X11UI:      YES  (direct+bridge)

---> Sample formats: 
GIG: NO  [LinuxSampler missing]
SF2: YES 
SFZ: NO  [LinuxSampler missing]

---> Internal plugins: 
AudioFile:   YES  (without ffmpeg) [ffmpeg/libav missing or too new]
MidiFile:    YES 
DISTRHO:     YES 
ZynAddSubFX: YES  (with UI)
ffmpeg is already installed and I'm trying to include support for GIG and SFZ format in Carla but I'm beginning to forget about it.
--Grayson Peddie

Music Interest: New Age w/ a mix of modern smooth jazz, light techno/trance & downtempo -- something Epcot Future World/Tomorrowland-flavored.
nils
Established Member
Posts: 541
Joined: Wed Oct 22, 2008 9:05 pm
Has thanked: 35 times
Been thanked: 95 times
Contact:

Re: Compiling Carla in Ubuntu 13.10: "Moc?" A media player?

Post by nils »

"The moc has changed too much." (chuckles) A music player changed too much? Huh?
You're wrong.
The package and the binary of the media player are called "mocp" in every distribution (I know) because "moc" is, since ancient times, the name of a Qt tool.
User avatar
GraysonPeddie
Established Member
Posts: 673
Joined: Sun Feb 12, 2012 11:12 pm
Location: Altha, FL
Been thanked: 6 times
Contact:

Re: Compiling Carla in Ubuntu 13.10: "Moc?" A media player?

Post by GraysonPeddie »

Code: Select all

grayson@htpc:~/src/Carla$ sudo apt-get install libqt4-dev pyqt4-dev-tools 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libqt4-dev is already the newest version.
pyqt4-dev-tools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
grayson@htpc:~/src/Carla$ apt-cache policy libqt4-dev pyqt4-dev-tools
libqt4-dev:
  Installed: 4:4.8.4+dfsg-0ubuntu18
  Candidate: 4:4.8.4+dfsg-0ubuntu18
  Version table:
 *** 4:4.8.4+dfsg-0ubuntu18 0
        500 mirror://mirrors.ubuntu.com/mirrors.txt/ saucy/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
        100 /var/lib/dpkg/status
pyqt4-dev-tools:
  Installed: 4.10.3-1ubuntu1
  Candidate: 4.10.3-1ubuntu1
  Version table:
 *** 4.10.3-1ubuntu1 0
        500 mirror://mirrors.ubuntu.com/mirrors.txt/ saucy/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
        100 /var/lib/dpkg/status
grayson@htpc:~/src/Carla$
It still won't compile successfully.
NilsGey wrote:You're wrong.
Are you being harsh? I was just joking!
--Grayson Peddie

Music Interest: New Age w/ a mix of modern smooth jazz, light techno/trance & downtempo -- something Epcot Future World/Tomorrowland-flavored.
nils
Established Member
Posts: 541
Joined: Wed Oct 22, 2008 9:05 pm
Has thanked: 35 times
Been thanked: 95 times
Contact:

Re: Compiling Carla in Ubuntu 13.10: "Moc?" A media player?

Post by nils »

Code: Select all

Are you being harsh? I was just joking!
No, sorry. It was just an information.
User avatar
GraysonPeddie
Established Member
Posts: 673
Joined: Sun Feb 12, 2012 11:12 pm
Location: Altha, FL
Been thanked: 6 times
Contact:

Re: Compiling Carla in Ubuntu 13.10: "Moc?" A media player?

Post by GraysonPeddie »

Okay. I downloaded Carla from launchpad.net that you provided and I'm able to install successfully. However, I see nothing other than "Carla" in the lower-right corner of the window. I have jackd2 installed and Cadence shows that it's running. I can't simply add plugins due to an error that says "cannot add new plugins while engine is stopped." How can Carla detect that jackd2 is not running? "JACK" is selected in the Carla configuration.
--Grayson Peddie

Music Interest: New Age w/ a mix of modern smooth jazz, light techno/trance & downtempo -- something Epcot Future World/Tomorrowland-flavored.
Post Reply