embedded - What is the best way to compile a specific C program that may have dependencies? -


i compile following c file on embedded platform:

https://github.com/openwsn-berkeley/openwsn-fw/blob/develop/firmware/openos/bsp/chips/at86rf231/radio.c

however, can see, on lines 20-26 of radio.c references "radiotimer_capture_cbt":

typedef struct {    radiotimer_capture_cbt startframe_cb;    radiotimer_capture_cbt endframe_cb;    radio_state_t state; } radio_vars_t;  radio_vars_t radio_vars; 

so need hunt down defined , make sure include right header.

i have cloned entire git repository here: https://github.com/openwsn-berkeley/openwsn-fw, , i'm looking way compile easily.

is there better way compiled other going through brutal dependency nightmare?

my ultimate goal radio.c compiled , needs. not see makefiles in project i'm expecting want use ide.

the project seems use scons build system. simplest way dive scons files.

there's small scons file in directory containing linked file , 2 main script in top directory.

but if want play, first remove headers include, try compile (using -c) know 1 needed. once object file (.o) can use nm identify missing symbols (marked u.) luck …


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -