Problem Cross Compiling CGO


I´m very new to go and I know using cgo in one of the first projects and cross compiling it is not the best idea…
This is my source:
Here you can find the external lib:

Now I tried to cross-compile it:
CC=arm-linux-gnueabi-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm go build --ldflags '-linkmode external -extldflags "-static"'


/home/raphael/go/src/ fatal error: roboint.h: No such file or directory
 #include "roboint.h"
compilation terminated.

How to fix this?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.