Home › Forums › TinyG › TinyG Support › Compiling from source
- This topic has 10 replies, 2 voices, and was last updated 12 years, 2 months ago by minorthreat.
-
AuthorPosts
-
September 11, 2012 at 3:18 pm #3472minorthreatMember
Hi, I was wondering if there’s a guide for compiling from source.
I gave it a shot with amtel studio6 but hit a few hundred snags. What are you guys using for development? Can you share your project files on Github? thanks in advance.
September 11, 2012 at 3:27 pm #3473minorthreatMemberI found this document in the wiki http://www.synthetos.com/wiki/index.php?title=Projects:TinyG-Developer-Info-Project-Details&oldid=1959. But it’s written for Studio4. Is this still the dev setup?
September 11, 2012 at 5:18 pm #3474aldenMemberWe are still using Studio4. We tried 5 and it was buggy, and ultimately more clicks to get through the dev and test cycles. We have not gone to 6 yet. If you get it running in 6 can you let us know?
Thanks
– Alden
September 12, 2012 at 10:07 pm #3479minorthreatMemberYeah, it’s pretty special. The data type prog_char disappeared and you have to use the directive prog_mem… grrr I’ll get it working.
- This reply was modified 12 years, 2 months ago by minorthreat.
September 13, 2012 at 1:19 pm #3484minorthreatMemberMaking some progress. Studio 6 has a neat build from make file add on which actually worked, and adding “-Wno-deprecated-declarations -D__PROG_TYPES_COMPAT_” to the Flags covers the lost data type. I’m still getting a few hundred
“Error 303 variable must be const in order to be put into read-only section by means of ‘__attribute__((progmem))'”
I’ll try throw const in front of them and see if that get me there.
September 13, 2012 at 1:23 pm #3485aldenMemberI have never seen that error because I have not tried 6. Thanks for hammering through this.
September 13, 2012 at 1:46 pm #3486minorthreatMember400 or so ‘const’ seemed to work. That is to say it compiled and it’s about the right size… I don’t have my board on me now so I’ll test it later.
September 13, 2012 at 1:52 pm #3487aldenMemberGood news. I’ll have to get the source from you. Did you use the master branch?
- This reply was modified 12 years, 2 months ago by alden.
September 13, 2012 at 2:22 pm #3489minorthreatMemberyup, working from the master. The port wasn’t that bad really:
Add “-Wno-deprecated-declarations -D__PROG_TYPES_COMPAT_ ” to the flags in the make file
Add const to anything that is PROGMEM , such as; static PGM_P const msg_am[] PROGMEM const static char msg_am09[] PROGMEM…
Move the *getcFuncs[] table into SRAMI’m nervous to claim success just yet tho, It builds, doesn’t mean it works.
- This reply was modified 12 years, 2 months ago by minorthreat.
September 13, 2012 at 4:49 pm #3491aldenMemberGreat. Let me know if it actually works. We should the make the changes to the code base for compatibility reasons.
September 13, 2012 at 8:15 pm #3492minorthreatMemberNope, not working, can connect but not responding to any commands (x1). Strange.
-
AuthorPosts
- You must be logged in to reply to this topic.