You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[LINK] ir
/usr/bin/ld: ../libs/Linux_x86_64/libflirc.a(hid.o): in function `hid_send_packet':
/home/kotzin/.buildkite-agent/builds/Linux-1/flirc-inc/sw-main/lib/libtransport/hid.c:144: undefined reference to `hid_write'
/usr/bin/ld: /home/kotzin/.buildkite-agent/builds/Linux-1/flirc-inc/sw-main/lib/libtransport/hid.c:150: undefined reference to `hid_error'
...
I think this is because of wrong LDFLAGS and/or LIBRARIES.
Don't know exactly where to fix this in Makefile or cross.mk
What is being called is
cc main.c -o ir -L. -Wl,--start-group -lhidapi-hidraw -lusb-1.0 -Wl,--end-group -lusb-1.0 -lflirc -lir -L../libs/Linux_x86_64 -Wall -g -std=c99 -I. -I../libs/include -Ideps/include
What should be called is
cc main.c -o ir -L. -Wl,--start-group -lhidapi-hidraw -lusb-1.0 -lusb-1.0 -lflirc -lir -Wl,--end-group -L../libs/Linux_x86_64 -Wall -g -std=c99 -I. -I../libs/include -Ideps/include
So the --start-group --end-group is wrong and needs to include all libs.
And -lusb-1.0 is used twice.
The text was updated successfully, but these errors were encountered:
gives
I think this is because of wrong LDFLAGS and/or LIBRARIES.
Don't know exactly where to fix this in
Makefile
orcross.mk
What is being called is
What should be called is
So the --start-group --end-group is wrong and needs to include all libs.
And
-lusb-1.0
is used twice.The text was updated successfully, but these errors were encountered: