Hi all,
I am trying to compile APM on Linux locally on my BBB by running 'make linux', however I got the following error message:
-----------------------------
/root/ardupilot/libraries/AP_HAL_Linux/Scheduler.cpp: In member function 'void Linux::LinuxScheduler::_create_realtime_thread(pthread_t*, int, const char*, Linux::LinuxScheduler::pthread_startroutine_t)':
/root/ardupilot/libraries/AP_HAL_Linux/Scheduler.cpp:37:34: error: expected primary-expression before '.' token
/root/ardupilot/libraries/AP_HAL_Linux/Scheduler.cpp: In member function 'virtual void Linux::LinuxScheduler::init(void*)':
/root/ardupilot/libraries/AP_HAL_Linux/Scheduler.cpp:71:34: error: expected primary-expression before '.' token
/root/ardupilot/libraries/AP_HAL_Linux/Scheduler.cpp:80:11: error: expected primary-expression before '.' token
/root/ardupilot/libraries/AP_HAL_Linux/Scheduler.cpp:81:11: error: expected primary-expression before '.' token
/root/ardupilot/libraries/AP_HAL_Linux/Scheduler.cpp:82:11: error: expected primary-expression before '.' token
------------------------------
I have installed the tools on BBB including make\ gawk\ g++-4.6\ gcc-4.6 \ arduino-core\ build-essential\
I suspect I missed the packages required to compile with any code with pthread?
I have tried to compile the code on my Ubuntu desktop and everything did fine.
Did anyone encounter this problem before? and how to solve this on BBB?
Thanks in advanced.
Cheers,
Steven