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
Including LibTorch distrubution #578
Comments
Hi @julius-richter,
Thank you for trying to use FRUT! Please consider starring it to increase its visibility on GitHub.
The lines that you added are completely disconnected from the rest of the contents of the generated Now, let's attempt to fix your problem:
Based on that, this is how I would change the contents of the @@ -10,10 +10,6 @@
find_package(Torch REQUIRED)
-
-add_executable(Main "../Source/Main.cpp")
-target_link_libraries(Main "${TORCH_LIBRARIES}")
-set_property(TARGET Main PROPERTY CXX_STANDARD 11)
set(BeatTracker_jucer_FILE
@@ -222,3 +218,6 @@
)
jucer_project_end()
+
+
+target_link_libraries(BeatTracker PRIVATE torch) I hope this helps! |
Hi @McMartin, thank you so much for your help. Now it works. All the best, Julius |
You're welcome! |
Hey, I am trying to do this as well however I get an error like this NeuralDX7 is the name of the project. Additionally is it possible to add this through the projucer so I don't need to manually add to the cmake after running Frut? |
Hi @Nintorac, I guess that project is not a GUI Application but an Audio Plug-In. In that case, you should use: target_link_libraries(NeuralDX7_Shared_Code PUBLIC torch) You can indeed try to add |
Hello there,
first of all, thank you for implementing FRUT, it is very helpful :)
My question is: I want to include the library LibTorch to my JUCE project. The conversion to a cmake file from my .jucer project worked perfectly. Now, in the tutorial on how to include LibTorch to my application it is described that I need to write the following CMakeLists.txt
So I put the four bottom lines to the automatically generated CMakeLists.txt. However, I get the following error when compiling. Do you have any idea what is the problem here?
The full CMakeLists.txt looks like this:
The text was updated successfully, but these errors were encountered: