Build instructions
I am trying to build m2i and am running into issues right from the start. Maybe I'm doing things wrong, maybe there are OS specific issues you can sort out in the build instructions, maybe there are dependencies you are not aware of. This issue won't be long because I didn't get very far ;-)
I am using Debian Bullseye (= Testing).
A)
There is no package openimageio in my package repositories. There are many ...lib packages and one package openimageio-tools (which I installed because it provides command line tools and therefore - I assumed - would pull in any necessary libraries). Now I have libopenimageio2.1 installed too, so I guess this worked.
In any case this should be clarified in the instructions.
B)
Requirements:
- At least in Debian the package is called
lua5.3. If there are different names for the package it should be mentioned, if it is a mistake it should be fixed. - I could not install the other packages listed in the requirements (alsa-lib, libx11, libxtst). It turns out they are available as source packages in the repository but not installable although I have the source packages activated in sources.list). Either there is a way to install source packages I don't know of (I didn't want to simply try out
apt-srcwithout knowing if that's what is needed) or - and that seems more likely - I should instead install binary packages created from these (e.g.libasound2orlibxtst-dev. Either way, this should be clarified in the build instructions. - There are no packages
jack,jack2orqt5-corein my repositories. Since I already have Jack installed I don't know which packages really are the requirements, but probably you meanjackdandjackd2. Regarding Qt5 (I can't tell because I have many Qt5 packages already installed) the closest to a "core" package I could find islibqt5core5a, but I have no idea if this is the actual dependency. Since from the description I can imagine this is for the system tray icon the package might as well belibqt5gui. I have no idea, but I think it should be clarified.
C)
I continued just trying out because I thought chances are pretty good I have the dependencies installed anyway. But when I run cmake I get the following error.
/path/to/midi2input/build$cmake ../midi2input
CMake Error: The source directory "/path/to/midi2input/midi2input" does not exist.
I assume this makes some sense and the command should read either cmake .. or cmake . in the midi2input directory.
D)
If I got C) wrong then the fourth issue is invalid, but I assume it is unrelated. Running cmake fails with
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Lua (missing: LUA_LIBRARIES LUA_INCLUDE_DIR) (Required is
exact version "5.3")
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindLua.cmake:231 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:17 (find_package)
I have Lua 5.3 installed (just did it, was first surprised it wasn't already installed until realizing that the Lua I'm dealing with nearly daily is part of the LaTeX installation). So it seems there has some configuration to be done with environment variables that is not handled by installing the Lua package.