Build for Raspberry Pi Error

Previous topic - Next topic

matty47

Just getting back into GLBasic and using version 16.947. Program built for Win OK. When I try to build for Raspberry Pi i get the following errors
Quote*** Configuration: RASPBERRY_PI ***
precompiling:
GPC - GLBasic Precompiler V.17.312 SN: 7101ce3 - 3D, NET
Wordcount:107 commands
compile+link:
In file included from C:\Users\mingl\AppData\Local\Temp\glbasic\/gpc_temp.h:2,
                 from C:\Users\mingl\AppData\Local\Temp\glbasic\gpc_tempg.cpp:2:
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\357' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\273' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\277' in program
In file included from C:\Users\mingl\AppData\Local\Temp\glbasic\/gpc_temp.h:2,
                 from C:\Users\mingl\AppData\Local\Temp\glbasic\gpc_temp0.cpp:1:
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\357' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\273' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\277' in program
*** FATAL ERROR - Please post this output in the forum
_______________________________________
I don't know what the stray refers to and any help greatly appreciated.

matty47

I did a search for the error raised and found an answer. On the first line of glb.h there are three non printing characters causing the error. In a hex editor I removed these bytes (EF BB BF). Now my program compiles for Raspberry Pi without an error and I get a .bin file and a media folder. I have yet to check that the program works on the pi.
The search indicated that the other way to fix the error was to delete the first line and retype it.

matty47

I tried to run the compiled app on my Pi400 with Raspian 32bit  Debian 12 based, Unfortunately there were unresolved dependencies, libbcm_host.so, libvcos.so, libvchiq.so, that I have not been able to find info on how to install. It seems that they were part of an earlier version of Raspian. I have yet to try the version based on Debian 11 - maybe I'll get lucky.
Why would I want to create a Pi app - just because it's available to do. =D