Compiling from source

Home Forums TinyG TinyG Support Compiling from source

Tagged: , ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #3472
    minorthreat
    Member

    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.

    #3473
    minorthreat
    Member

    I 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?

    #3474
    alden
    Member

    We 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

    #3479
    minorthreat
    Member

    Yeah, 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, 3 months ago by minorthreat.
    #3484
    minorthreat
    Member

    Making 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.

    #3485
    alden
    Member

    I have never seen that error because I have not tried 6. Thanks for hammering through this.

    #3486
    minorthreat
    Member

    400 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.

    #3487
    alden
    Member

    Good news. I’ll have to get the source from you. Did you use the master branch?

    • This reply was modified 12 years, 3 months ago by alden.
    #3489
    minorthreat
    Member

    yup, 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 SRAM

    I’m nervous to claim success just yet tho, It builds, doesn’t mean it works.

    • This reply was modified 12 years, 3 months ago by minorthreat.
    #3491
    alden
    Member

    Great. Let me know if it actually works. We should the make the changes to the code base for compatibility reasons.

    #3492
    minorthreat
    Member

    Nope, not working, can connect but not responding to any commands (x1). Strange.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.