Page 1 of 1

openVG compile/build parameters

Posted: Thu Feb 18, 2016 3:49 pm
by davenull
hey
as I read, for compile / build the parameter option
-I/opt/vc/include/interface/vcos/pthreads
should be required, but I am already using
-pthread
as a parameter.

Is the 1st one needed anyway? what is this for then?

Re: openVG compile/build parameters

Posted: Thu Feb 18, 2016 8:31 pm
by Paeryn
davenull wrote:hey
as I read, for compile / build the parameter option
-I/opt/vc/include/interface/vcos/pthreads
should be required, but I am already using
-pthread
as a parameter.

Is the 1st one needed anyway? what is this for then?
-I/opt/vc/include/interface/vcos/pthreads tells the compiler where to find some of the header files that are used by the CPU-side drivers to (presumably) interface with the pthreads implementation on the VC4.
-pthread just tells the compiler to include the pthread library for the CPU (and add any needed #define's).
Both are needed.

Re: openVG compile/build parameters

Posted: Fri Feb 19, 2016 8:12 am
by davenull
aha, thank you, again become a bit wiser 8-)