Loading...
 

Install and Build ARSDKBuildUtils on Yosemite

Installation guide


Important :
Before building the SDK, please run ./CheckEnv.py script until it says that your target can be build.

UNIX/OSX

 

Required external tools:

brew install git wget automake autoconf libtool yasm nasm
Ready … lets begin!

Installation guide

    (git clone https://github.com/ARDroneSDK3/ARSDKBuildUtils.git)

  • Go in the ARBuildUtils directory
  • Run ./SDK3Build.py -t Unix
  • The output will be in /ARBuildUtils/Targets/Unix/Install/

Patches

Patch 1

Add this to any header files that you import.

#ifdef cplusplus
extern "C"{
#endif
// your functions here for the header
#ifdef cplusplus
}
#endif

Patch 2

/*****************************************

  • implementation :

                                                                                  • /
static ARNETWORK_IOBufferParam_t c2dParams[] = {
/* Non-acknowledged commands. */
{
BD_NET_CD_NONACK_ID,
ARNETWORKAL_FRAME_TYPE_DATA,
20,
ARNETWORK_IOBUFFERPARAM_INFINITE_NUMBER,
ARNETWORK_IOBUFFERPARAM_INFINITE_NUMBER,
2,
128,
1,
},
/* Acknowledged commands. */
{
BD_NET_CD_ACK_ID,
ARNETWORKAL_FRAME_TYPE_DATA_WITH_ACK,
20,
500,
3,
20,
128,
0,
},
/* Emergency commands. */
{
BD_NET_CD_EMERGENCY_ID,
ARNETWORKAL_FRAME_TYPE_DATA_WITH_ACK,
10,
100,
ARNETWORK_IOBUFFERPARAM_INFINITE_NUMBER,
1,
128,
0,
},
/* Video ACK (Initialized later) */
{
BD_NET_CD_VIDEO_ACK_ID,
ARNETWORKAL_FRAME_TYPE_UNINITIALIZED,
0,
0,
0,
0,
0,
0,
},
};
static const size_t numC2dParams = sizeof(c2dParams) / sizeof(ARNETWORK_IOBufferParam_t);
static ARNETWORK_IOBufferParam_t d2cParams[] = {
{
BD_NET_DC_NAVDATA_ID,
ARNETWORKAL_FRAME_TYPE_DATA,
20,
ARNETWORK_IOBUFFERPARAM_INFINITE_NUMBER,
ARNETWORK_IOBUFFERPARAM_INFINITE_NUMBER,
20,
128,
0
},
{
BD_NET_DC_EVENT_ID,
ARNETWORKAL_FRAME_TYPE_DATA_WITH_ACK,
20,
500,
3,
20,
128,
0,
},
/* Video data (Initialized later) */
{
BD_NET_DC_VIDEO_DATA_ID,
ARNETWORKAL_FRAME_TYPE_UNINITIALIZED,
0,
0,
0,
0,
0,
0,
},
};
static const size_t numD2cParams = sizeof(d2cParams) / sizeof(ARNETWORK_IOBufferParam_t);