-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux support #33
Comments
Contributions are welcome 🙂 The building process should be very similar to OSx. |
I've made some steps to build this (and the /libonnxruntime-neuralnote dependency) in Linux.
|
I've created a (pull request](#44) that is dependent on a prebuilt onnxruntime library. It isn't building (linking errors) yet, but I figured its a place to start a discussion. |
just tried running this on wine with yabridge on bitwig, it kinda works but the gui has a weird rendering issues which causes huge delay / latency |
@RustoMCSpit but we have the source-code, so no need for wine. Thnx for the work @gnac not sure if I'll be able to get your stuff tested, but looking forward to see it working! |
no need for wine until it actually is supported you mean right? |
@RustoMCSpit sure, if it works for you and you can play with the software that's great. |
ehhh, 'works' but barely, very bugged |
yeah after a few days the app is pretty unbareable to work with through WINE, if the devs want to see it through they could collect crash reports they get and see whats going on |
@RustoMCSpit if you want to go that route please open a separate ticket so we don't mix up topics. I think it would make more sense to build the program for Linux then to try and debug wine issues. |
Lemme know if this goes anywhere! RN it is only usable in a VM for me ;-( |
just to update, program still really weird on WINE after new update |
@RustoMCSpit please open a separate topic on WINE, this request is about actual Linux builds and NOT any WINE work Lets not dilute either topic by cramming it into the same ticket. |
@gnac Did you get any further with this? I've also managed to build my own version of onnxruntime and actually got NeuralNote to compile. But right now it segfaults when starting. I've so far traced this back to this line of code (juce_XmlElement.cpp):
For some reason, this static variable is not initialized correctly and the pointer inside the string (to the actual text data) is a Null pointer so it crashes when it's being used (in this case, to parse the Linux fontconfig). Might just be a small issue with some JUCE settings required on Linux, I'm sifting through the things, but it's a pretty strange error. |
To me, this looks like a case of "static initialization fiasco". In
Under Linux, this triggers (unless JUCE_FONT_PATH is set) a font lookup that involves parsing Setting JUCE_FONT_PATH seems to solve the problem and makes the program start. Seems to work well so far. I'm not sure why JUCE insists on parsing the fontconfig since this plugin only loads fonts from its local resources. But it's probably a simple patch to fix this (or just set JUCE_FONT_PATH environment to literally anything). So in summary, it's working in Linux for me, note detection etc. is working as expected. Unfortunately, I cannot seem to get MIDI out of the plugin. I can start the dragging, but neither dropping it into my DAW (Bitwig), nor into the file browser seems to be doing anything. |
@polygon you've gotten further than I have. How did you resolve the linker issue? |
I don't remember running into this linker issue to be honest. I've uploaded my current state here: https://github.com/polygon/NeuralNote/tree/linux I re-factored the UIDefines.h code into a singleton provider to work around the initialization order issues. Setting JUCE_FONT_PATH would solve the issue for running the program standalone but not when used as a plugin. With the refactoring, I also got things working in Bitwig. I'm not currently using
This expects to have a Linux built libonnxruntime-neuralnote in place as well, similarly unpacked as described in the |
Hi, and thanks so much for porting this beautiful project in Linux (I'm under Mint). |
Yes it will be really great. |
Thanks ..... I'm waiting.... ;-) |
I drove this a bit further and opened Pull Requests in both project components: #85 However, communication quickly died down (or didn't happen), so I assumed that the maintainers were not interested in this. I finished the packaging for the Linux distribution of my choice (NixOS) and carried on. I'll give a short rundown on how to build this yourself, though. You will need to use my forks of libonnxruntime-neuralnote and NeuralNote. For both, you want the "Linux" branch. I will link my Nix build recipes, since they are also a good indicator on the dependencies that you will need. You can ignore a lot of the CMake download links replacement, that is a Nix/NixOS peculiarity (no internet access during builds). libonnxruntime-neuralnote (Nix-recipe)Once you installed everything unter NeuralNote (Nix-recipe)Again, make sure you have all the tools and dependencies installed. Now, run all the steps under Hopefully this gets you started. Let me know if you get stuck anywhere. |
Thanks for doing this. |
hello and thank you for your interest. But I don't understand how to install it on my Mint system.... |
Ok, thanks for this contribution.
…On Wed, 20 Mar 2024 at 17:57 CodesoundR ***@***.***> wrote:
I drove this a bit further and opened Pull Requests in both project
components:
#85 <#85>
tiborvass/libonnxruntime-neuralnote#2
<tiborvass/libonnxruntime-neuralnote#2>
However, communication quickly died down (or didn't happen), so I assumed
that the maintainers were not interested in this. I finished the packaging
for the Linux distribution of my choice (NixOS) and carried on. I'll give a
short rundown on how to build this yourself, though. You will need to use
my forks of libonnxruntime-neuralnote
<https://github.com/polygon/libonnxruntime-neuralnote> and NeuralNote
<https://github.com/polygon/NeuralNote>. For both, you want the "Linux"
branch.
I will link my Nix build recipes, since they are also a good indicator on
the dependencies that you will need. You can ignore a lot of the CMake
download links replacement, that is a Nix/NixOS peculiarity (no internet
access during builds).
libonnxruntime-neuralnote (Nix-recipe
<https://github.com/polygon/audio.nix/blob/master/vst/neuralnote/libonnxruntime-neuralnote.nix>
)
Once you installed everything unter buildInputs
<https://github.com/polygon/audio.nix/blob/1217ff4ed70c562b5eaf9832151967b3a568c65c/vst/neuralnote/libonnxruntime-neuralnote.nix#L32-L41>,
you just run the instructions under buildPhase
<https://github.com/polygon/audio.nix/blob/1217ff4ed70c562b5eaf9832151967b3a568c65c/vst/neuralnote/libonnxruntime-neuralnote.nix#L52-L55>.
This should yield you a libonnxruntime-neuralnote.tar.gz which you will
need in the next step.
NeuralNote (Nix-recipe
<https://github.com/polygon/audio.nix/blob/master/vst/neuralnote/neuralnote.nix>
)
Again, make sure you have all the tools and dependencies
<https://github.com/polygon/audio.nix/blob/1217ff4ed70c562b5eaf9832151967b3a568c65c/vst/neuralnote/neuralnote.nix#L42-L58>
installed. Now, run all the steps under postPatch
<https://github.com/polygon/audio.nix/blob/1217ff4ed70c562b5eaf9832151967b3a568c65c/vst/neuralnote/neuralnote.nix#L77-L86>
in the root-folder of the repo (in line 83, reference the tar.gz file
from the build above). This also patches a Drag&Drop bug in JUCE. You then
just run CMake like above
<#33 (comment)>
and this should give you the final binary / plugin.
Hopefully this gets you started. Let me know if you get stuck anywhere.
hello and thank you for your interest. But I don't understand how to
install it on my Mint system....
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZIUF3B3NWRW67RNGPVVABTYZG5WDAVCNFSM6AAAAAAYBK7CWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJQGA2TKNZUG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
These instructions are to build the project, distribution for specific Linux systems comes later. I'm very sorry, but I don't have the time to build and maintain packages for a Linux distribution I am not using myself. If you find someone who knows how to package for Ubuntu/Mint and is interested, I'm happy to assist getting things started. |
Hi, EDIT: BUT TO DATE I HAVE NOT BEEN ABLE TO FIND ANYONE :-( |
Duh.
The text was updated successfully, but these errors were encountered: