Building allwpilib on Jetson

Trying to get network tables to build on a Jetson TK1. I got the latest allwpilib, unzipped, made a folder called ‘buildcmake’, went into that folder, typed …

cmake ~/Downloads/allwpilib-master -DWITHOUT_JAVA=ON -DWITHOUT_CSCORE=ON

it did a buncch of stuff, no errors…

Then typed make and got this…

– Configuring done
– Generating done
– Build files have been written to: /home/ubuntu/Downloads/allwpilib-master/buildcmake
[ 1%] Generating generated/main/cpp/wpilib-128.png.cpp
[ 1%] Generating generated/main/cpp/bootstrap-4.1.min.js.gz.cpp
[ 2%] Generating generated/main/cpp/coreui-2.1.min.css.gz.cpp
[ 3%] Generating generated/main/cpp/coreui-2.1.min.js.gz.cpp
[ 4%] Generating generated/main/cpp/feather-4.8.min.js.gz.cpp
[ 4%] Generating generated/main/cpp/jquery-3.3.slim.min.js.gz.cpp
[ 5%] Generating generated/main/cpp/popper-1.14.min.js.gz.cpp
Scanning dependencies of target wpiutil
[ 5%] Building CXX object wpiutil/CMakeFiles/wpiutil.dir/src/main/native/cpp/Base64.cpp.o
[ 6%] Building CXX object wpiutil/CMakeFiles/wpiutil.dir/src/main/native/cpp/EventLoopRunner.cpp.o
In file included from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/uv/Loop.h:20:0,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/EventLoopRunner.h:15,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/cpp/EventLoopRunner.cpp:8:
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:115:16: error: template declaration of ‘constexpr const bool wpi::sig::trait::is_weak_ptr_compatible_v’
constexpr bool is_weak_ptr_compatible_v = detail::is_weak_ptr_compatible<std::decay_t

>::value;
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:119:16: error: template declaration of ‘constexpr const bool wpi::sig::trait::is_callable_v’
constexpr bool is_callable_v = detail::is_callable<T…, L>::value;
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:610:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
std::enable_if_t<trait::is_callable_v<arg_list, Callable>, Connection>
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:610:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:610:61: error: template argument 1 is invalid
std::enable_if_t<trait::is_callable_v<arg_list, Callable>, Connection>
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:610:62: error: expected unqualified-id before ‘,’ token
std::enable_if_t<trait::is_callable_v<arg_list, Callable>, Connection>
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:628:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
std::enable_if_t<trait::is_callable_v<ext_arg_list, Callable>, Connection>
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:628:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:628:65: error: template argument 1 is invalid
std::enable_if_t<trait::is_callable_v<ext_arg_list, Callable>, Connection>
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:628:66: error: expected unqualified-id before ‘,’ token
std::enable_if_t<trait::is_callable_v<ext_arg_list, Callable>, Connection>
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:645:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
std::enable_if_t<trait::is_callable_v<arg_list, Pmf, Ptr> &&
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:645:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:645:61: error: wrong number of template arguments (3, should be 2)
std::enable_if_t<trait::is_callable_v<arg_list, Pmf, Ptr> &&
^
In file included from /usr/include/c++/4.9/bits/move.h:57:0,
from /usr/include/c++/4.9/bits/stl_function.h:60,
from /usr/include/c++/4.9/functional:49,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/EventLoopRunner.h:11,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/cpp/EventLoopRunner.cpp:8:
/usr/include/c++/4.9/type_traits:2234:61: error: provided for ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type’
using enable_if_t = typename enable_if<_Cond, _Tp>::type;
^
In file included from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/uv/Loop.h:20:0,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/EventLoopRunner.h:15,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/cpp/EventLoopRunner.cpp:8:
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:646:22: error: expected unqualified-id before ‘!’ token
!trait::is_weak_ptr_compatible_v, Connection>
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:646:22: error: expected initializer before ‘!’ token
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:662:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
std::enable_if_t<trait::is_callable_v<ext_arg_list, Pmf, Ptr> &&
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:662:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:662:65: error: wrong number of template arguments (3, should be 2)
std::enable_if_t<trait::is_callable_v<ext_arg_list, Pmf, Ptr> &&
^
In file included from /usr/include/c++/4.9/bits/move.h:57:0,
from /usr/include/c++/4.9/bits/stl_function.h:60,
from /usr/include/c++/4.9/functional:49,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/EventLoopRunner.h:11,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/cpp/EventLoopRunner.cpp:8:
/usr/include/c++/4.9/type_traits:2234:61: error: provided for ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type’
using enable_if_t = typename enable_if<_Cond, _Tp>::type;
^
In file included from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/uv/Loop.h:20:0,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/EventLoopRunner.h:15,
from /home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/cpp/EventLoopRunner.cpp:8:
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:663:22: error: expected unqualified-id before ‘!’ token
!trait::is_weak_ptr_compatible_v, Connection>
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:663:22: error: expected initializer before ‘!’ token
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:689:23: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
std::enable_if_t<!trait::is_callable_v<arg_list, Pmf> &&
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:689:57: error: template argument 1 is invalid
std::enable_if_t<!trait::is_callable_v<arg_list, Pmf> &&
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:690:53: error: expected initializer before ‘<’ token
trait::is_weak_ptr_compatible_v, Connection>
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:717:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
std::enable_if_t<trait::is_callable_v<arg_list, Callable> &&
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:717:22: error: ‘is_callable_v’ is not a member of ‘wpi::sig::trait’
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:717:61: error: template argument 1 is invalid
std::enable_if_t<trait::is_callable_v<arg_list, Callable> &&
^
/home/ubuntu/Downloads/allwpilib-master/wpiutil/src/main/native/include/wpi/Signal.h:718:53: error: expected initializer before ‘<’ token
trait::is_weak_ptr_compatible_v, Connection>
^
make[2]: *** [wpiutil/CMakeFiles/wpiutil.dir/src/main/native/cpp/EventLoopRunner.cpp.o] Error 1
make[1]: *** [wpiutil/CMakeFiles/wpiutil.dir/all] Error 2
make: *** [all] Error 2

Any help will be greatly appreciated !

What does g++ --version print? We’re pretty much only testing with 6.3.0 and above. You may need to install g++6 packages and set up cmake to use that version.

That was it !

I updated the compiler and now its building

Thank you for the quick response :slight_smile: