flirc / sdk

Flirc SDK and Example Applications
Other
55 stars 20 forks source link

build fails under ubuntu bionic on `fl_fw_dirty` and others. #5

Closed eichin closed 5 years ago

eichin commented 5 years ago

fresh checkout, libhidapi-dev and libusb-1.0-0-dev installed. The fl_fw_* functions only seem to be in libs/flirc.h, I don't see an implementation?

$ make all
make[1]: Entering directory '/home/eichin/gits/flirc-sdk/cli'
[BUILDING]      flirc_util.debug
make[2]: Entering directory '/home/eichin/gits/flirc-sdk/cli'
[CC]            src/main.c
[CC]            src/prepost.c
[CC]            lib/logging.c
[CC]            lib/getline.c
[CC]            lib/dict.c
[CC]            lib/cmds.c
[CC]            lib/cmds_script.c
[CC]            lib/cmds_shell.c
[CC]            src/cmds/version.c
[CC]            src/cmds/flirc_cmds.c
[CC]            src/cmds/ir_transmit.c
[LINK]          ... ux_x86_64/x86_64_linux_gnu_gcc_7/flirc_util/debug/flirc_util
buildresults/Linux_x86_64/x86_64_linux_gnu_gcc_7/flirc_util/debug/src/cmds/flirc_cmds.o: In function `version':
/home/eichin/gits/flirc-sdk/cli/src/cmds/flirc_cmds.c:65: undefined reference to `fl_fw_dirty'
/home/eichin/gits/flirc-sdk/cli/src/cmds/flirc_cmds.c:66: undefined reference to `fl_fw_branch'
/home/eichin/gits/flirc-sdk/cli/src/cmds/flirc_cmds.c:67: undefined reference to `fl_fw_config'
/home/eichin/gits/flirc-sdk/cli/src/cmds/flirc_cmds.c:69: undefined reference to `fl_fw_dirty'
/home/eichin/gits/flirc-sdk/cli/src/cmds/flirc_cmds.c:92: undefined reference to `fl_fw_branch'
/home/eichin/gits/flirc-sdk/cli/src/cmds/flirc_cmds.c:96: undefined reference to `fl_fw_config'
buildresults/Linux_x86_64/x86_64_linux_gnu_gcc_7/flirc_util/debug/src/cmds/flirc_cmds.o: In function `record_api':
/home/eichin/gits/flirc-sdk/cli/src/cmds/flirc_cmds.c:309: undefined reference to `fl_set_record_api_new'
collect2: error: ld returned 1 exit status
buildsystem/main.mk:72: recipe for target 'buildresults/Linux_x86_64/x86_64_linux_gnu_gcc_7/flirc_util/debug/flirc_util' failed
make[2]: *** [buildresults/Linux_x86_64/x86_64_linux_gnu_gcc_7/flirc_util/debug/flirc_util] Error 1
make[2]: Leaving directory '/home/eichin/gits/flirc-sdk/cli'
buildsystem/target.mk:32: recipe for target 'debug' failed
make[1]: *** [debug] Error 2
make[1]: Leaving directory '/home/eichin/gits/flirc-sdk/cli'
Makefile:55: recipe for target 'flirc_util' failed
make: *** [flirc_util] Error 2

(I'm just poking at this now to play with a FLIRC I picked up in 2016, so I'm curious about this code working with the old and new hardware, especially for transmit, which is why I'm trying to build it.)

jdk commented 5 years ago

I will post an update shortly, thanks for letting me know.