SpotlightKid / python-rtmidi

Python bindings for the cross-platform MIDI I/O library RtMidi
https://spotlightkid.github.io/python-rtmidi/
Other
349 stars 65 forks source link

usage with Blender 3D #110

Closed tezza1971 closed 1 year ago

tezza1971 commented 2 years ago

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

luigipacheco commented 2 years ago

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

fornof commented 1 year ago

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.

brunoenten commented 1 year ago

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

SpotlightKid commented 1 year ago

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.