Can't compile Rev 802, Error with Templates

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
Post Reply
wombat67
Posts: 25
Joined: Wed Aug 07, 2013 12:07 pm
Country: Australia

Can't compile Rev 802, Error with Templates

Post by wombat67 »

First up sorry if I am missing something obvious but I am unable to compile the very latest revision 802. Not really had much troubles before. The process falls over when it comes to the templates and I end up with the an error message for each of the templates along the lines of:

templates.cpp:45:41: error: 'STR_T_S_4CHAN' was not declared in this scope

Compile still fails even with NO Templates in the MAKEFILE

Any help would be greatly appreciated

Thanks

User avatar
MikeB
9x Developer
Posts: 18010
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Can't compile Rev 802, Error with Templates

Post by MikeB »

Not sure why it fails with NO templates selected.
What command line are you using to MAKE?
Rev 802 is a source file only release, no hex files and, as you have found, there are slight problems with it.
To get templates.cpp to compile add
#include "language.h"
after
#include "templates.h"

I'm very close to putting up r803 which is a full release with hex files.
Release contents are detailed here: http://openrcforums.com/forum/viewtopic ... 810#p57440.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
wombat67
Posts: 25
Joined: Wed Aug 07, 2013 12:07 pm
Country: Australia

Re: Can't compile Rev 802, Error with Templates

Post by wombat67 »

Hi Mike Thanks for the quick reply. To compile I have a .bat file (compile.bat) with simply

make -f makefile

The makefile is edited such that

HELI = YES
TEMPLATES = NO
NOPOTSCROLL =
PHASES =
N2F = NO

Thing is I want the templates normally I only tried to leave them out to see if I could get the compiled hex file. I normally have the makefile as

HELI = NO
TEMPLATES = YES

I added the #include "templates.h" line and everything worked from command line with " make" and "make -f makefile"

Thank you again for your quick reply and problem solving

Cheers
Kevin

Post Reply

Return to “er9x”