Hi,
I am totally new to C. I want to run serial commands from a Bealgebone to a 4Dsystems display. Therefore I copied the c library found here:
https://github.com/4dsystems/Picaso-Serial-C-Library
into a directory and created a test program main.c:
Code:
#include"Picaso_const4D.h"
#include"Picaso_Serial_4DLibrary.h"
int main(int argc,char*argv[])
{
OpenComm("/dev/ttyUSB0", B115200);// Matches with the display "Comms" rate
gfx_BGcolour(0xFFFF);
gfx_Cls();
gfx_CircleFilled(120,160,80,BLUE);
while(1){}
}
Now when I do its says
main.c:2:37: fatal error: Picaso_Serial_4DLibrary.h: No such file or directory
So I try linking it:
Code:
gcc main.c -L.-lPICASO_SERIAL_4DLIBRARY
which gives me the same error. Then I tried to create a static library:
Code:
gcc -Wall-g -c -o PICASO_SERIAL_4DLIBRARY PICASO_SERIAL_4DLIBRARY.C
which gives me this:
PICASO_SERIAL_4DLIBRARY.C:1:21: fatal error: windows.h: No such file or directory compilation terminated.
Same error message when I include
Code:
gcc main.c -Wall-L.-lPICASO_SERIAL_4DLIBRARY
-I/path/to/4Dsystems/C/Include
What am I doing wrong? the git page clearly says this library is created for people who do not run windows.
Thanks in advance!