python-rtmidi icon indicating copy to clipboard operation
python-rtmidi copied to clipboard

usage with Blender 3D

Open tezza1971 opened this issue 2 years ago • 1 comments

Question: do you anticipate any problems when trying to distribute this module with a blender addon. If not: are you able to suggest any alternative strategies for installation with a view to building midi controller capability for the Blender environment (ie. should I build a separate stand-alone service to communicate between midi devices and blender addon).

PS. I got the following error when trying to install rtmidi using pip on Windows 10 with python 3.10.4 LINK : fatal error LNK1181: cannot open input file 'python34.lib' error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181

tezza1971 avatar May 28 '22 08:05 tezza1971

getting a similar issue : src_rtmidi.cpp(44): fatal error C1083: Cannot open include file: 'Python.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe' failed with exit code 2

luigipacheco avatar Jun 28 '22 22:06 luigipacheco

y'all need to copy over python headers from the python version blender is using to python/includes directory: https://blender.stackexchange.com/questions/81740/python-h-missing-in-blender-python worked for me , I'm on osx. should work for linux. Windows I was having issues with "pyconfig.h no such file or directory" after I finished with the above steps. I suspect VS2019 will need to be updated for includes.

fornof avatar Dec 11 '22 06:12 fornof

wheels are now available for latest python versions. Does it solve the issue?

brunoenten avatar May 21 '23 08:05 brunoenten

Closing this, since we received no further feedback and we provide working binary wheels for windows with release 1.5.1 and the build system has changed completely since this was opened.

SpotlightKid avatar Jun 12 '23 21:06 SpotlightKid