Hey all, curious if anyone has any recommendations for some simple straightforward tutorials or guides to properly setting up Juce with Codeblocks on Linux, or how to develop with Makefiles.
Normally a Mac/XCode person. Trying to do something for Linux inside a virtualbox on my Mac. Codeblocks builds keep failing, often seemingly because of missing dependencies that i’ve installed, but maybe other reasons. (However, they build on my RasPi. It just takes forever for them to build.)
Would love a link to a proper one-stop-guide to setting up Juce + Codeblocks + Linux to see if i’m missing anything or doing things wrong, if such a guide exists.
The long version:
I’m normally on Mac/XCode but i’m working on a project for my Raspberry Pi. I’ve made a few test Juce apps in XCode, transferred to the Pi, added the Codeblocks exporter, and built. A Juce app that just does square wave sweeps builds and works successfully, but it takes almost 10 minutes to build with CodeBlocks on the Pi (Raspberry Pi OS Lite + OpenBox). Also, i need to start working on some linux-specific things, so finishing the project in XCode and then building the finished project on the Pi won’t work.
So, i’m trying to finish developing this project on a Linux distro in a VirtualBox on my Mac. But, even Juce’s Hello World won’t build.
I installed all the Juce Dependencies listed here. So far I’ve tried Debian and Pop_OS! in VirtualBox. (Debian with Raspberry Pi Desktop is next). I’ve tried installing Codeblocks via apt, synaptic, the Pop Store, and from source. On both Distros, on all the install methods, Juce builds fail for different reasons. I can create a new command line project in Codeblocks and build basic “Hello World” apps with basic
stc::cout commands, like getting and adding 2 numbers in my different Codeblocks installs.
Sometimes they seem to be failing because a dependency that is installed can’t be found. For instance, it was looking for <gtk/gtk.h>, and the Juce code said something like, “if this can’t be found install webkit(something)-4.0” But, i checked and that’s installed. And i went in and installed webkit* just in case. Still doesn’t work.
I don’t necessarily want anyone to hold my hand through the convoluted setup process. But, because it’s so fractured, with so many moving pieces, and so many alternative install methods, each with their own separate tutorial/install guide, I would love if someone could point me to a guide in one place that says “To get Juce + Codeblocks working on Linux, do X, Y, Z…” (If it exists. I haven’t found it.)
I assume i’m missing a vital step or doing something wrong, but have no idea how to figure out what.