2
« on: March 26, 2018, 06:34:48 AM »
We could not run our laser even though we try to follow your instruction carefully
Compiling and Using the Lasershark Jack Host Application (for use with OpenLase):
this happen after we tryed to make it.....
iids@iids-X450CA:~/Desktop/lasershark_hostapp$ make
gcc -Wall -o lasershark_twostep lasershark_twostep.c lasersharklib/lasershark_uart_bridge_lib.c \
twosteplib/ls_ub_twostep_lib.c twosteplib/twostep_host_lib.c \
twosteplib/twostep_common_lib.c `pkg-config --libs --cflags libusb-1.0`
lasershark_twostep.c: In function ‘main’:
lasershark_twostep.c:301:5: warning: ‘memset’ used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
memset(lasershark_serialnum, lasershark_serialnum_len, 0);
^
In file included from twosteplib/ls_ub_twostep_lib.h:27:0,
from lasershark_twostep.c:31:
lasershark_twostep.c: At top level:
twosteplib/twostep_common_lib.h:162:13: warning: inline function ‘twostep_verify_start_token’ declared but never defined
inline bool twostep_verify_start_token(uint8_t *buf);
^
twosteplib/twostep_common_lib.h:161:13: warning: inline function ‘twostep_insert_start_token’ declared but never defined
inline void twostep_insert_start_token(uint8_t *buf);
^
In file included from twosteplib/ls_ub_twostep_lib.h:27:0,
from twosteplib/ls_ub_twostep_lib.c:22:
twosteplib/twostep_common_lib.h:162:13: warning: inline function ‘twostep_verify_start_token’ declared but never defined
inline bool twostep_verify_start_token(uint8_t *buf);
^
twosteplib/twostep_common_lib.h:161:13: warning: inline function ‘twostep_insert_start_token’ declared but never defined
inline void twostep_insert_start_token(uint8_t *buf);
^
In file included from twosteplib/twostep_host_lib.h:27:0,
from twosteplib/twostep_host_lib.c:22:
twosteplib/twostep_common_lib.h:162:13: warning: inline function ‘twostep_verify_start_token’ declared but never defined
inline bool twostep_verify_start_token(uint8_t *buf);
^
twosteplib/twostep_common_lib.h:161:13: warning: inline function ‘twostep_insert_start_token’ declared but never defined
inline void twostep_insert_start_token(uint8_t *buf);
^
/tmp/ccmO9wSs.o: In function `twostep_cmd_set_steps':
twostep_host_lib.c:(.text+0x4d): undefined reference to `twostep_insert_start_token'
/tmp/ccmO9wSs.o: In function `twostep_cmd_set_safe_steps':
twostep_host_lib.c:(.text+0xd3): undefined reference to `twostep_insert_start_token'
/tmp/ccmO9wSs.o: In function `twostep_cmd_set_step_until_switch':
twostep_host_lib.c:(.text+0x156): undefined reference to `twostep_insert_start_token'
/tmp/ccmO9wSs.o: In function `twostep_cmd_start':
twostep_host_lib.c:(.text+0x1be): undefined reference to `twostep_insert_start_token'
/tmp/ccmO9wSs.o: In function `twostep_cmd_stop':
twostep_host_lib.c:(.text+0x226): undefined reference to `twostep_insert_start_token'
/tmp/ccmO9wSs.o:twostep_host_lib.c:(.text+0x28e): more undefined references to `twostep_insert_start_token' follow
/tmp/ccLUrsBM.o: In function `twostep_resp_valid':
twostep_common_lib.c:(.text+0x303): undefined reference to `twostep_verify_start_token'
collect2: error: ld returned 1 exit status
Makefile:41: recipe for target 'lasershark_tw