Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem building muse-2.0.1
#1
I get the following compile error when building muse-2.0.1

Code:
$ make
...
[ 60%] Building CXX object muse/mplugins/CMakeFiles/mplugins.dir/moc_mrconfig.o
Linking CXX shared library libmuse_mplugins.so
[ 60%] Built target mplugins
Scanning dependencies of target driver
[ 60%] Building CXX object muse/driver/CMakeFiles/driver.dir/alsamidi.o
[ 60%] Building CXX object muse/driver/CMakeFiles/driver.dir/alsatimer.o
[ 60%] Building CXX object muse/driver/CMakeFiles/driver.dir/dummyaudio.o
[ 60%] Building CXX object muse/driver/CMakeFiles/driver.dir/jack.o
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp: In function ‘int MusECore::processSync(jack_transport_state_t, jack_position_t*, void*)’:
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp:235: warning: case label value exceeds maximum value for type
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp: In member function ‘virtual void MusECore::JackAudioDevice::graphChanged()’:
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp:716: error: ‘jack_free’ was not declared in this scope
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp:804: error: ‘jack_free’ was not declared in this scope
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp:922: error: ‘jack_free’ was not declared in this scope
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp:1020: error: ‘jack_free’ was not declared in this scope
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp: In member function ‘virtual std::list<QString, std::allocator<QString> > MusECore::JackAudioDevice::outputPorts(bool, int)’:
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp:1508: error: ‘jack_free’ was not declared in this scope
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp: In member function ‘virtual std::list<QString, std::allocator<QString> > MusECore::JackAudioDevice::inputPorts(bool, int)’:
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp:1532: error: ‘jack_free’ was not declared in this scope
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp: In member function ‘virtual int MusECore::JackAudioDevice::getState()’:
/home/wt/MyDocuments/muse-2.0.1/muse/driver/jack.cpp:1605: warning: case label value exceeds maximum value for type
make[2]: *** [muse/driver/CMakeFiles/driver.dir/jack.o] Error 1
make[1]: *** [muse/driver/CMakeFiles/driver.dir/all] Error 2
make: *** [all] Error 2

Below is the console output of "cmake -L .." and "cmake -DCMAKE_BUILD_TYPE=release ..".

Code:
$ cmake -L ..
-- Found Doxygen: /usr/bin/doxygen
found Doxygen
-- latex command LATEX_COMPILER not found but usually required. You will probably get warnings and user inetraction on doxy run.
-- makeindex command MAKEINDEX_COMPILER not found but usually required.
-- dvips command DVIPS_CONVERTER not found but usually required.
-- configured /home/wt/MyDocuments/muse-2.0.1/Doxyfile.in --> /home/wt/MyDocuments/muse-2.0.1/build/Doxyfile
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Unix (probably linux) found
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.5.3
-- Found OpenSSL: /usr/lib64/libssl.so
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- checking for module 'alsa>=0.9.0'
--   found alsa, version 1.0.21a
-- checking for module 'sndfile>=1.0.0'
--   found sndfile, version 1.0.24
-- checking for module 'samplerate>=0.1.0'
--   found samplerate, version 0.1.4
-- checking for module 'uuid>=0.0.1'
--   found uuid, version 2.16.0
-- checking for module 'jack>=0.103'
--   found jack, version 0.116.2
-- checking for module 'lash-1.0>=0.2'
--   found lash-1.0, version 0.5.3
-- checking for module 'liblo>=0.23'
--   found liblo, version 0.25
-- checking for module 'dssi>=0.9.0'
--   found dssi, version 1.0.0
-- checking for module 'fluidsynth>=0.9.0'
--   found fluidsynth, version 1.1.3

The following components will be built:
-----------------------------------------------
   Lash support
   OSC (Liblo) support
   DSSI support
   Fluidsynth support

The following components WILL NOT be built:
-----------------------------------------------
   Python support
   Experimental features

Internal modules will be built as shared components.
Build type: CMAKE_BUILD_TYPE is empty. Plain un-optimized build.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/wt/MyDocuments/muse-2.0.1/build
-- Cache values
CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.4
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
ENABLE_DSSI:BOOL=ON
ENABLE_EXPERIMENTAL:BOOL=OFF
ENABLE_FLUID:BOOL=ON
ENABLE_LASH:BOOL=ON
ENABLE_OSC:BOOL=ON
ENABLE_PYTHON:BOOL=OFF
ENABLE_VST:BOOL=OFF
EXECUTABLE_OUTPUT_PATH:PATH=
LIBRARY_OUTPUT_PATH:PATH=
LIB_SUFFIX:STRING=
MODULES_BUILD_STATIC:BOOL=OFF
QT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin/qmake
SVNVER:FILEPATH=/usr/bin/svnversion
UPDATE_TRANSLATIONS:BOOL=OFF


$ cmake -DCMAKE_BUILD_TYPE=release ..
found Doxygen
-- latex command LATEX_COMPILER not found but usually required. You will probably get warnings and user inetraction on doxy run.
-- makeindex command MAKEINDEX_COMPILER not found but usually required.
-- dvips command DVIPS_CONVERTER not found but usually required.
-- configured /home/wt/MyDocuments/muse-2.0.1/Doxyfile.in --> /home/wt/MyDocuments/muse-2.0.1/build/Doxyfile
Unix (probably linux) found

The following components will be built:
-----------------------------------------------
   Lash support
   OSC (Liblo) support
   DSSI support
   Fluidsynth support

The following components WILL NOT be built:
-----------------------------------------------
   Python support
   Experimental features

Internal modules will be built as shared components.
Build type: release

-- Configuring done
-- Generating done
-- Build files have been written to: /home/wt/MyDocuments/muse-2.0.1/build
Reply
#2
Hi!

Sorry for late reply.

Could you try updating your jack version, is there one for your distribution?
It seems our jack test is wrong and we need a newer version of jack.
I'm not sure when this call was added to jack but I've verified that jack version 0.121.3 is OK and 1.9.8 of jack2

Hope that helps,
Robert
Reply
#3
Thanks for the reply.
I'll update my jack.
Reply
#4
Hi.
It appears you're using Jack version 1 (because of the warning about
"case label value exceeds maximum value for type", that doesn't happen with Jack-2).

It was recommended by Jack docs to use jack_free instead of regular 'free'
(something about the eventuality of running on Windows).
So I changed them all to jack_free instead of free.

So it's possible your Jack version is much too old.
Recent versions of 1 or 2 should hopefully work though.

In any case you can ignore the warnings about
"case label value exceeds maximum value for type" because I
designed it that way, for our code to accept either Jack1 or Jack2
without too much MusE reconfiguration hassles.

HTH. Tim.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)