So, with all the chatter going on about getting the firmware built on Mac, plus Julian hinting that he's moved back to a UNIX-based development environment, this suggests that it may be useful to get a build system in place that at least eases the path towards building on both UNIX(ish, let's assume Linux) and Mac environments.
Does anyone have any strong opinions about a direction for this; autotools vs. cmake vs. something else?
Asking because this is relevant to my interests, but I don't want to start on something of limited utility.
Comments
- Something Makefile based could easily work. Maintenance cost vs. something else is the main concern here
- Something which could ease both Eclipse-based & non-IDE development should be a win; I suspect there's an audience for both
btw, only mentioned cmake out of completeness, I'm not particularly a fan of itI would be in favor of keeping it simple (eg a set of path additions and possible known env vars that a user is instructed to set which influence the build) rather than trying to get fancy with auto tools. We have two simple projects that have no external dependencies other than the avr and the arm tool chains.
I am lookgin forward to get the pld make files for MAC :-))))))
regards!
~/dev/LXR (makefiles ✘)✭ ᐅ ll firmware\ image/TEST.BIN
-rw-r--r-- 1 pat staff 254K 1 Mai 10:32 firmware image/TEST.BIN
Caveat: My hardware isn't finished so I haven't tested the result, so possible **==
I catch your code (@pld) and then I noticed that I have:
- arm-none-eabi-gcc
but not the avr-gcc file in my hard disk (MAC) .
heu, did I missed something?
- /local/CrossPack-AVR-20131216/bin/
I continue !
I have just an issue wioth one more PATH :
^
buttonHandler.c:13:20: fatal error: IO\din.h: No such file or directory
#include "IO\din.h"
I guess I forgot to include the PATH to the IO folder, no ?
what shall I add ?
thx :-)
next, it seems that this file is "non UTF8" compliant , my GEDIT shouts at me :-)
I continue to investigate and come back to you :-)
my fault! anyhow, I corrected the "backslah" and compiled ... it works fine now!
here is the list of files I changed:
frontPanelParser.c
buttonHandler.c
diskIo.c
din.c
adcPots.c
main.c
Presetmanager.c
///
I keep you inform on the rest...
BIG BIG tyhanks to you guys as I think I progessed on my MAC for the compilation :-)
If everything works (I will put the new firmware in the LXR memory) I will then create a short tutorial for MAC people :-)
Big thx again!!!
I'm just about to set up the build on my new Kubuntu environment (and I was never good with writing makefiles manually, coming mostly from a visual studio programming background).
I'll report back when I have succesfully build a new version here.
Glad you chose makefile while I was gone.
That would have been my suggestion as well
No it's time to set up the build envirenment on linux and test if it is compiling and working.
I'll try to note which packages I'll install, so maybe we can setup a script that will fetch all the required dependencies for the build.
'make prepare'
to get the recommended compilers installed?
sounds good.
I'm currently trying to set everything up here.
still getting the '/bin/sh: 1: /bin/arm-none-eabi-gcc: not found' error, although the compiler is in the path.
but I'm getting there
yep, both images are updated together, since the normal update process uses the combined firmware image.
Not sure if it is worth it to implement an override. since everybody who is making custom builds will probably change some source files anyway.
I can call
'arm-none-eabi-gcc -v'
without problems.
currently looking at your makefile, too