New to Linux - Compiling in Linux
-
@d-healey I didn´t know that i needed a linker, the errors start with some gtk and pango header files not finding, i have installed just the dependencies from the repository tutorial and gcc 11.
-
@Soundavid said in New to Linux - Compiling in Linux:
I didn´t know that i needed a linker,
Can't link without a linker :) if you haven't installed one specifically then you're probably using LD (I think that's the default). Anyway install mold, it's much faster and then add this in your extra linker flags.
-no-pie
-flto=auto
-fuse-ld=moldIf you're using my fork of HISE then this will already be there but it will be gold instead of mold, because on older distros mold isn't available so I use gold and on newer systems I alias gold to mold - try saying that quickly 3 times!
-
@d-healey Ok ive installed mold but the errors persists, this is what i get:
Package webkit2gtk-4.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `webkit2gtk-4.0.pc' to the PKG_CONFIG_PATH environment variable Package 'webkit2gtk-4.0', required by 'virtual:world', not found Compiling include_juce_gui_extra.cpp In file included from ../../JuceLibraryCode/include_juce_gui_extra.cpp:9: ../../../../JUCE/modules/juce_gui_extra/juce_gui_extra.cpp:116:11: fatal error: gtk/gtk.h: No such file or directory 116 | #include <gtk/gtk.h> | ^~~~~~~~~~~ compilation terminated. make: *** [Makefile:819: build/intermediate/Release/include_juce_gui_extra_6dee1c1a.o] Error 1
-
Update: I managed to compile HISE! The problem was the webkit library, i've fixed the issue installing the library using this method: https://github.com/tauri-apps/tauri/issues/9662
Now im going to compile using Faust!
-
@Soundavid Yeah I have an open PR for that - https://github.com/christophhart/HISE/pull/560
-
@d-healey I managed to compile HISE but not success with Faust, did you have Faust on Linux?
-
@Soundavid yes, check out my fork of HISE it's all setup for Faust but you'll need to disable fftw3 and enable IPP.
-
@Soundavid I solved it with installing an older version of Linux Mint. Victoria or Virginia
-
@d-healey Which Branch i have to download? If i download the Master doesnt include the Faust libraries
-
@Soundavid said in New to Linux - Compiling in Linux:
@d-healey Which Branch i have to download? If i download the Master doesnt include the Faust libraries
use develop - none of the branches include faust by default - you have to download and install this yourself.
-
This post is deleted! -
@Soundavid For my fork it's the development branch.
-
@d-healey Ok ive tried your fork and using ipp instead of fftw3 but no luck with Faust, seems that is a problem with my Faust installation because isnt finding the library, how do you install Faust?
-
@Soundavid Did you choose the correct build?
I used
sudo apt install faust
-
@d-healey I finally compiled HISE and the DLL of my project but for some reason I’m gettin a lot of errors and when I comment them HISE is really slow, it tooks minutes to compile :( could it be my Mint version?
-
@Soundavid Are you building from my fork, the Faust build?
-
@d-healey Ok I wasn’t selecting the correct JUCE paths and now HISE is working correctly, I managed to compile the DLL but have a lot of errors in my Controls script, the one that manages all the connections with the Modules and when I start to debug the problem HISE crashes :/
-
@Soundavid Try and recreate the problem in a minimal test project.