[aravis] Re: Problem compiling aravis 0.3.7 on non-realtime system

  • From: Emmanuel Pacaud <emmanuel.pacaud@xxxxxxxxxxxxx>
  • To: aravis@xxxxxxxxxxxxx
  • Date: Fri, 22 Jan 2016 14:31:00 +0100

Hi Tom,

Le jeu. 21 janv. 2016 à 17:48, tom.cobb@xxxxxxxxxxxxx a écrit :

Hi All,

I'm trying to compile aravis 0.3.7 on a non-realtime RHEL6.7 machine. aravis 0.3.5 compiled fine, but in 0.3.7 I get the following error after doing make:

  CC       arvrealtime.lo
../../aravis/src/arvrealtime.c: In function 'arv_make_thread_realtime':
../../aravis/src/arvrealtime.c:239: error: storage size of 'p' isn't known
../../aravis/src/arvrealtime.c:244: warning: implicit declaration of function 'sched_setscheduler'
../../aravis/src/arvrealtime.c:244: error: 'SCHED_RR' undeclared (first use in this function)
../../aravis/src/arvrealtime.c:244: error: (Each undeclared identifier is reported only once
../../aravis/src/arvrealtime.c:244: error: for each function it appears in.)
../../aravis/src/arvrealtime.c:239: warning: unused variable 'p'

Adding:

#include <sched.h>

at the top of arvrealtime.c seemed to sort it.

Has anyone else seen something like this?

I have reproduced your issue on a Scientific Linux 6 system. I have just pushed a fix to master.

Thanks,

        Emmanuel.


Other related posts: