988 views
in Getting started by
I have followed the steps in the guide to setup the mounted file etc.

I can access the files on the Rpi device (template etc)

When I run "sudo make" an error is generated:

/opt/vc/include/interface/vcos/vcos_types.h:38:33: fatal error: vcos_platform_types.h: No such file or directory
 #include "vcos_platform_types.h"
                                 ^
compilation terminated.
../Build/rules.mk:15: recipe for target 'obj/main.o' failed
make: *** [obj/main.o] Error 1

 

What is the likely cause of the error?

2 Answers

0 votes
by
Hi Gareth,

it seems that the include path settings are incorrect or that the reported files do not exist...

Just a few question in order to find the root cause:

What type of RasPi hardware are you using?

Which version of Raspbian Jessie Lite are you using?

Best regards,

Manfred.
by
hardware: Pi3 B v1.2

Software:

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian

 

Managed to solve it after.

Seems on my Rpi the header "vcos_platform_types.h" has been moved to a seprate folder "/opt/vc/include/interface/vcos/pthreads"

Also the same problem for the "vchost_config.h". This had been moded to "/opt/vc/include/interface/vmcs_host/linux"

After changeing the #include paths to the new directories is seemed to work fine. Not sure why the paths were incorrect in the first place.
0 votes
by

Hi Gareth,

thanks for your report!

I just downloaded the latest version of the Raspbian Stretch Lite (minimal image), version September 2017 (release date 2017-09-07) and tested again the entire bring-up according the getting started description. 

The following two changes are necessary:

1.) By default, SSH is not enabled (for security reasons). This has to be activated first via raspi-config.

2.) The name of the libraries for EGL and OpenGLES have changed. Please change the LIBS section within the makefile:

EGL => brcmEGL

GLESv2 => brcmGLESv2

I will update the documentation and the makefile within the Build Envrionment.

Thanks and best regards,

Manfred.

Embedded Wizard Website | Privacy Policy | Imprint

...