Best development environment for Moode? - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: Community (https://moodeaudio.org/forum/forumdisplay.php?fid=18) +--- Forum: General Discussion (https://moodeaudio.org/forum/forumdisplay.php?fid=21) +--- Thread: Best development environment for Moode? (/showthread.php?tid=4869) |
Best development environment for Moode? - jensgk - 05-20-2022 So I am slowly thinking of trying to start messing with the Moode source code.. I have been looking at this Volumio Fusion (CamillaDSP) plugin and could be tempted to try and adopt it into Moode: https://github.com/volumio/volumio-plugins-sources/tree/master/fusion Having skimmed the Master Development Guide, it looks like an extra, dedicated Raspberry Pi is needed for development and implementation. So what is the best/recommended setup? Would it be buying the "large" Raspberry Pi 4 (8Gb) with a large SD, and use it as my sole development environment for Moode ? Or is it better to use my PC for development, and then implement on the Rasp Py? Best regards Jens RE: Best development environment for Moode? - Tim Curtis - 05-20-2022 I use an iMac for building the sources using the Gulp toolset and a clone of the "moode" repo. From from a target moOde Pi I mount a Samba share on my iMac named "Software" that corresponds to ~Documents/Software/ below. The mount is actually //iMac/Software/moode-player to /mnt/moode-player. Code: lt5user@LT5 moode % sudo node_modules/.bin/gulp build && sudo node_modules/.bin/gulp deploy --test Then after a Gulp build I can install the updated sources on a moOde Pi via the commands below. Code: # Purge and Reload /var/www/ RE: Best development environment for Moode? - jensgk - 05-21-2022 (05-20-2022, 10:37 PM)Tim Curtis Wrote: I use an iMac for building the sources using the Gulp toolset and a clone of the "moode" repo. So you only use the iMac for editing, and then run the code on the rasp pi? Do you find the rasp pi too slow for editing, or are the editing tools better on the iMac? /Jens RE: Best development environment for Moode? - Tim Curtis - 05-21-2022 Correct. The IDE I use on the Mac is Atom editor plus GitHub Desktop. Its easier to do code editing, Gulp builds and Git tasks on my iMac because I also use it for everything else (mail, messaging, browsing, image editing, etc...). Other dev's are using VS Code IDE and command line Git on Windows. The task that has to be done on a Pi, actually two Pi's, one 32-bit and the other 64-bit RaspiOS, is to generate the 32-bit and 64-bit release ISO images. These Pi's should be 3B+ or 4B and the image gen's will take around 1 hour. Also Debian package builds and uploads to Cloudsmith repo are done on a Pi. RE: Best development environment for Moode? - TheOldPresbyope - 05-21-2022 I’m a hacker and tester rather than a hardcore developer but I use tools comparable to Tim’s on my Linux laptop and/or desktop and have exercised the whole development chain. Works great. There’s no technical reason these tools couldn’t be used in Raspberry Pi OS on a Pi —- but I’d choose a Pi4 with at least 2GB (preferably 4GB or more) of memory. Fortunately I already have spare boards on hand since Pi’s have become as scarce as hens teeth locally and online. These days I have Windows 10 running only as a virtual machine. It wouldn’t be my first choice for a development platform anyway. OTOH, the Windows Subsystem for Linux keeps getting better and better. Finally, I’ve occasionally cross-compiled various programs on my x86 boxes with the Raspberry Pi ARM as target. This includes building the entire kernel in less than an hour. Horsepower makes a difference! I’ve never tried building the moOde ISO this way but …. I’ve also tried emulating a Pi-like machine on an x86 host so I could execute the resulting ARM code but never got to a useable result. Party on! Regards, Kent RE: Best development environment for Moode? - jensgk - 05-21-2022 Thanks for your great answers! /Jens RE: Best development environment for Moode? - bitlab - 05-22-2022 Every developer will have its own preference concerning a development environment. The one I prefer:
In this way you will have optimal rich editor performance, while havinge the code, repo and execute commands on the pi. A pi 4 with will be more then enough 4GB. Volumio Fusion generates from several template parts a new camilladsp configuration, so it will not require any deep integration into moOde. That' why you could consider the following suggestion for implementing Volumio Fusion for moOde:
Among others this has the following benefits:
RE: Best development environment for Moode? - jensgk - 05-22-2022 (05-22-2022, 08:09 AM)bitlab Wrote: Every developer will have its own preference concerning a development environment. Yes, I think it will be something like this I will be aiming for. Quote:Volumio Fusion generates from several template parts a new camilladsp configuration, so it will not require any deep integration into moOde. Thanks, that is a good approach. Actually it could be something to propose to the maintainer instead of trying to do myself :-) (There are other things in Moode I could have fun trying out). /Jens |