I did the dos2unix and then got this error:
Code: Select all
In file included from /usr/src/companion9x/src/open9xv4import.cpp:41:0:
/usr/src/companion9x/src/../open9x/menus.cpp: In function ‘bool Open9xV4::check(Open9xV4::uint8_t, Open9xV4::uint8_t, void (* const*)(Open9xV4::uint8_t), Open9xV4::uint8_t, Open9xV4::pm_uint8_t*, Open9xV4::uint8_t, Open9xV4::int8_t)’:
/usr/src/companion9x/src/../open9x/menus.cpp:367:51: error: no matching function for call to ‘min(Open9xV4::int8_t&, Open9xV4::uint8_t)’
/usr/src/companion9x/src/../open9x/menus.cpp:367:51: note: candidate is:
/usr/src/companion9x/src/../open9x/open9x.h:888:33: note: template<class t> t Open9xV4::min(t, t)
/usr/src/companion9x/src/../open9x/menus.cpp:488:51: error: no matching function for call to ‘min(Open9xV4::int8_t&, Open9xV4::uint8_t)’
/usr/src/companion9x/src/../open9x/menus.cpp:488:51: note: candidate is:
/usr/src/companion9x/src/../open9x/open9x.h:888:33: note: template<class t> t Open9xV4::min(t, t)
/usr/src/companion9x/src/../open9x/menus.cpp:499:51: error: no matching function for call to ‘min(Open9xV4::int8_t&, Open9xV4::uint8_t)’
/usr/src/companion9x/src/../open9x/menus.cpp:499:51: note: candidate is:
/usr/src/companion9x/src/../open9x/open9x.h:888:33: note: template<class t> t Open9xV4::min(t, t)
make[2]: *** [CMakeFiles/companion9x.dir/open9xv4import.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/companion9x.dir/all] Fehler 2
make: *** [all] Fehler 2
Then I commented out the three calls to min(...) in open9x/menus.cpp and after that everything compiled well and works fine. I know the min() calls limit values to something valid so i might run into trouble - most propably when runing a tx simulation with open9x. But for reading and writing FW and setting up modells this is acceptable.