crckmc / mija-framegrabber

Project to get video frames from a xiaomi camera
8 stars 7 forks source link

compile error #3

Closed belkone closed 3 years ago

belkone commented 3 years ago

hi, i can't compile it:

  CC  src/framegrab.c
  BIN /src/mija-framegrabber/obj/mija-framegrab
/src/mija-framegrabber/obj/framegrab.c.o: In function `on_recv_audio_stream':
framegrab.c:(.text+0xa4): undefined reference to `shbf_get_size'
framegrab.c:(.text+0xe6): undefined reference to `shbf_free'
framegrab.c:(.text+0xf0): undefined reference to `shbf_free'
/src/mija-framegrabber/obj/framegrab.c.o: In function `fetchstream_thread':
framegrab.c:(.text+0x168): undefined reference to `pthread_detach'
framegrab.c:(.text+0x182): undefined reference to `shbf_rcv_global_init'
framegrab.c:(.text+0x188): undefined reference to `ev_default_loop'
framegrab.c:(.text+0x19a): undefined reference to `ev_timer_again'
framegrab.c:(.text+0x1ba): undefined reference to `shbfev_rcv_create'
framegrab.c:(.text+0x1ca): undefined reference to `shbfev_rcv_event'
framegrab.c:(.text+0x1da): undefined reference to `shbfev_rcv_event'
framegrab.c:(.text+0x1f0): undefined reference to `shbfev_rcv_event'
framegrab.c:(.text+0x1f6): undefined reference to `shbfev_rcv_start'
framegrab.c:(.text+0x200): undefined reference to `shbfev_rcv_create'
framegrab.c:(.text+0x20c): undefined reference to `shbfev_rcv_event'
framegrab.c:(.text+0x218): undefined reference to `shbfev_rcv_event'
framegrab.c:(.text+0x228): undefined reference to `shbfev_rcv_event'
framegrab.c:(.text+0x22e): undefined reference to `shbfev_rcv_start'
framegrab.c:(.text+0x238): undefined reference to `shbfev_rcv_create'
framegrab.c:(.text+0x246): undefined reference to `shbfev_rcv_event'
framegrab.c:(.text+0x252): undefined reference to `shbfev_rcv_event'
framegrab.c:(.text+0x25e): undefined reference to `shbfev_rcv_event'
framegrab.c:(.text+0x264): undefined reference to `shbfev_rcv_start'
framegrab.c:(.text+0x276): undefined reference to `ev_async_start'
framegrab.c:(.text+0x27e): undefined reference to `ev_run'
framegrab.c:(.text+0x286): undefined reference to `ev_timer_again'
framegrab.c:(.text+0x28c): undefined reference to `shbfev_rcv_destroy'
framegrab.c:(.text+0x292): undefined reference to `shbfev_rcv_destroy'
framegrab.c:(.text+0x298): undefined reference to `shbfev_rcv_destroy'
framegrab.c:(.text+0x29c): undefined reference to `shbf_rcv_global_exit'
framegrab.c:(.text+0x2a2): undefined reference to `ev_loop_destroy'
/src/mija-framegrabber/obj/framegrab.c.o: In function `on_recv_video_stream':
framegrab.c:(.text+0x3d2): undefined reference to `shbf_get_size'
framegrab.c:(.text+0x42c): undefined reference to `shbf_free'
framegrab.c:(.text+0x456): undefined reference to `shbf_free'
framegrab.c:(.text+0x4a8): undefined reference to `shbf_free'
framegrab.c:(.text+0x502): undefined reference to `shbf_free'
framegrab.c:(.text+0x514): undefined reference to `shbf_free'
/src/mija-framegrabber/obj/framegrab.c.o: In function `ev_cleanup_func':
framegrab.c:(.text+0x124): undefined reference to `ev_break'
/src/mija-framegrabber/obj/framegrab.c.o: In function `ForceKeyFrame':
framegrab.c:(.text+0x3b4): undefined reference to `shbfev_rcv_send_message'
/src/mija-framegrabber/obj/framegrab.c.o: In function `main':
framegrab.c:(.text.startup+0x8e): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
Makefile:53: recipe for target '/src/mija-framegrabber/obj/mija-framegrab' failed
make: *** [/src/mija-framegrabber/obj/mija-framegrab] Error 1

my camera has libc and libthread in 2.25 version, isn't framegrabber compatible with O2 camera anymore or needs it newer firmware?

thewh1teagle commented 3 years ago

In my fork I wrote instructions for how to compile it easily with docker https://github.com/thewh1teagle/mija-framegrabber I tried it just now and It compiled without erros

belkone commented 3 years ago

@thewh1teagle thanks ;)