Using ssc-tester code

Hello!

My name is Sam Heyman and I am studying ‘Avionic Systems Engineering’ at Bristol university in England. I am in my final year and working on my research project.

The goal of my project is to use a flight simulator (FlightGear) to test automatic control systems.

I am still in the very early stages and am trying to write a C program which will read the sensor data from the flight simulator (sent to port 1138), manipulate it and then send it out to a serial port (towards the controller).

I am using Cygwin (with the gcc compiler) and have downloaded Pololu’s ssc-tester sofware. When I type the “make” command I get hundreds of errors, most of which are parse errors…

Would anyone be able to help me?
Thank you!
Sam

Hello,

We would be happy to help you; most likely some component of cygwin is not installed correctly. Could you please post the first few errors here or send a link to the entire output of make?

Thank you,
-Paul

This is what I get when I type make:

Sam@SAM /cygdrive/c/course/year4/project/Pololu/ssc-tester
$ make
gcc -c -o ssctester.o ssctester.c
In file included from ssctester.c:1:
/usr/include/tk.h:96:23: X11/Xlib.h: No such file or directory
In file included from ssctester.c:1:
/usr/include/tk.h:572: error: parse error before “Window”
/usr/include/tk.h:572: error: `Window’ declared as function returning a function

/usr/include/tk.h:575: error: parse error before “XEvent”
/usr/include/tk.h:584: error: parse error before “Tk_ClassCreateProc”
/usr/include/tk.h:592: error: parse error before ‘}’ token
/usr/include/tk.h:678: error: parse error before “Bool”
/usr/include/tk.h:683: error: parse error before “time”
/usr/include/tk.h:688: error: parse error before “same_screen”
/usr/include/tk.h:694: error: parse error before “Bool”
/usr/include/tk.h:697: error: parse error before ‘}’ token
/usr/include/tk.h:698: error: parse error before “XActivateEvent”
/usr/include/tk.h:699: error: parse error before “XDeactivateEvent”
/usr/include/tk.h:771: error: parse error before “Display”
/usr/include/tk.h:774: error: parse error before ‘*’ token
/usr/include/tk.h:785: error: parse error before “changes”
/usr/include/tk.h:787: error: parse error before “atts”
/usr/include/tk.h:811: error: parse error before ‘}’ token
/usr/include/tk.h:921: error: parse error before “XPoint”

The problem in this case is that you need to have the XFree86 libraries and include files correctly installed. If you start up the cygwin package manager again, it will give you a list of packages to install - please make sure all X11 or XFree86 development packages are installed. I think the current name of the package that you need is called “xorg-x11-devel”, but the name has changed recently.

Please let us know if this fixes the problem.

Thanks,
-Paul