Forum Replies Created
-
AuthorPosts
-
bdurbrowMember
You questions might be better addressed at
Um… OK… I didn’t want to spam-up their issue tracker with potentially non-issues, but… sure, I’ll post stuff there.
You are the first in a long time trying to build tinyG
Really? Wow… considering it’s capabilities, I thought it’d be more popular…
🙂
bdurbrowMemberForgot to mention something: I also had to turn off __CANNED_TESTS and __TEST_99 in tiny.h due to a link error (it seems that the version of avr-gcc I have is generating a short jump when a long jump is needed?).
bdurbrowMemberOK, I’ve gotten it to compile.
I’ve thrown up my modified makefile on PasteBin:
I haven’t yet tested it on actual hardware; as what I have has an atxmega192a3u in it (note the u at the end of the part number), and there are some naming conflicts that show up when you switch to that part number (‘USB’ is defined by Atmel on that part, but TinyG uses ‘USB’ to refer to the USB-to-serial chip that’s connected to one of the USARTs on the Xmega; so I’m going to have to find the naming conflicts and rename them. Thank goodness for grep!).
Also, for anybody using CrossPack, you’ll need to edit the Xcode file’s project-wide settings to account for the compiler being in a different location. The settings you are looking for is in the project-wide build settings; as a user-defined parameter; set PATH to $(PATH):/usr/local/CrossPack-AVR/bin
bdurbrowMemberCorrection: it’s one commit back from current that edge is missing that stuff from the makefile.
bdurbrowMemberIt’s tinyG Master and I’m hoping to build for an Xmega 192a3u. Edge seems to be missing that stuff in the makefile; I haven’t had a chance to try to reconcile the differences (if any) between edge and master’s makefile yet.
FWIW, the makefile should be the same between Linux and Mac builds (or conventional UNIX as well for that matter); as they are done at the POSIX layer. If the build process on Windows is using something like cygwin, then it would be the exact same makefile (and IIRC, Atmel Studio does use a version of GNU Make???).
Note that I haven’t modified the makefile yet to build for the u version of the Xmega 192a3; this is just an out of the box build. This can be reproduced by: starting with a Mac with Xcode and CrossPack installed; download the master .zip from github and unpack it; open the Xcode project in ./TinyG/firmware; and select “Build” from the product menu. I presume you will get similar results on Linux from a similar process; and I *think* a makefile-based build on Windows will also fail.
Unless it gets fixed first; when I get a chance I’ll download Atmel Studio into a Windows 10 VM and see if I can get the master .zip to build there.
-
AuthorPosts