Products > Board Support Package (Installation, Licensing, ...)
compiling example.c in BSP 06.02.2015
ec:
When trying to compile 4fm.bsp.06.02.2015/lib4FM-1.56.1/example/example.c on Redhat 5, I type 'make', and get the following result:
cc -g -o example example.c -lm -l4FM
In file included from /usr/include/sys/time.h:29,
from example.c:23:
/usr/include/bits/time.h:70: error: redefinition of 'struct timeval'
In file included from /usr/include/sys/select.h:44,
from /usr/include/sys/time.h:31,
from example.c:23:
/usr/include/time.h:122: error: redefinition of 'struct timespec'
In file included from example.c:23:
/usr/include/sys/time.h:96: error: expected identifier before numeric constant
/usr/include/sys/time.h:110: error: redefinition of 'struct itimerval'
make: *** [example] Error 1
How can I fix this issue?
Thanks
arnaudNL:
Dear Sir,
The software is deprecated (it is for FM482 with QDR memory) so I would not spend too much time on that one. Your best reference is the FMC170App, this is the application prepared for you. There is also the sipmemtest for memory tests.
I hope that helps!
Best Regards,
Arnaud
ec:
Isn't the fmc170app a Windows application? We're running Linux, so I'm looking for an example I can run on Linux.
Thanks!
ec:
Sorry, I got the Fmc170App for Linux, but when I try to run it, it says Constellation ID not supported by this software, exiting...
The constellation ID is 507 (as reported after 'Start of program')
number of Stars: 8
Software Build: 0x54E44247
Firmware Build: 0x0000000
Firmware version: 0.256
Thanks
ec:
I changed FMC170_CONSTELLATION_ID_VP780 to 507 on line 249 of main.cpp, and the program seems to be running. Will it run correctly?
Thanks
Navigation
[0] Message Index
[#] Next page
Go to full version