Giter Site home page Giter Site logo

Comments (5)

kingjoma avatar kingjoma commented on May 10, 2024 1

Solved. Needed to install the alsa-lib package from Arch Linux Repo.

from munt.

sergm avatar sergm commented on May 10, 2024

Hi,

I suppose, the build of mt32emu-qt doesn't include support for ALSA MIDI. This is an optional dependency, and is included in the build on Linux systems only, otherwise the compilation proceeds without ALSA MIDI driver. This is controlled by CMake property mt32emu-qt_WITH_ALSA_MIDI_SEQUENCER, check if it is enabled. Ultimately, ALSA MIDI driver resides in ALSADriver.cpp which must be compiled during the build for it to work. If the compilation breaks with this property enabled, some more packages might might need to be added.

Good luck!

from munt.

kingjoma avatar kingjoma commented on May 10, 2024

Hi. Thanks for the quick response.

The build I have includes the following directory:
../munt/mt32emu_alsadrv

I read the readme.txt file in that directory and with the intention to do the following as per the readme notes:

make
su root
make install

After running make I get the following error:
src/asladrv.cpp:36:10: fatal error: alsa/version.h: No such file or directory

I then checked the contents of
../munt/mt32emu_alsadrv/src
and both alsadrv.cpp and alsadrv.h are present in that folder. Where is the alsa/version.h supposed to be located?

Can you provide further troubleshooting guidance?

Thanks

from munt.

sergm avatar sergm commented on May 10, 2024

Hmm, such an error is very likely an indication of missing ALSA development files, AIUI. I have no clue how the related package is named in this OS, so can't be more helpful. However, you probably don't want to compile mt32emu_alsadrv. That is a separate project unrelated to mt32emu-qt, and you might miss its features if switched to it. I'd recommend applying further effort to making mt32emu-qt compiled with full ALSA MIDI support instead.

from munt.

kingjoma avatar kingjoma commented on May 10, 2024

Hi

Thanks. The guidance to ensure the correct option in the mt32emu-qt compile is selected was great.

To provide further context SteamOS is based on Arch Linux.

What distros did you have in mind when writing the code?

I found the following logic in the Cmakelists.txt file:

find_package(ALSA MODULE)
if(ALSA_FOUND)
  add_definitions(-DWITH_ALSA_AUDIO_DRIVER)
  list(APPEND EXT_LIBS ${ALSA_LIBRARIES})
  include_directories(${ALSA_INCLUDE_DIRS})
  list(APPEND mt32emu_qt_SOURCES src/audiodrv/AlsaAudioDriver.cpp)
  if(mt32emu-qt_WITH_ALSA_MIDI_SEQUENCER)
    add_definitions(-DWITH_ALSA_MIDI_DRIVER)
    list(APPEND mt32emu_qt_SOURCES src/mididrv/ALSADriver.cpp)
  endif()
endif()

I think the clue to solving this particular issue is where in the OS file structure is the compiler supposed to be looking for ALSA MODULE and what file names and/or libraries is it looking for to satisfy the find_package command. Is it distro specific?

Thanks.

from munt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.