Currently trying to run my Beaglebone Black application from the Debian 9 terminal without a gui installed.
The Freebasic compiler was actually available from the depository (1.05) and the only problem with that was that the
Freebasic folder was put into /usr/include and as a result libraries could not be found.
Copying it into /usr/local/include solved that problem.
Then had an issue with an error from the allegro.bi file
"incomplete Type ZBUFFER" and the lines in the .bi file are shown below.
Code: Select all
type ZBUFFER as BITMAP
declare function create_zbuffer(byval bmp as BITMAP ptr) as ZBUFFER ptr
declare function create_sub_zbuffer(byval parent as ZBUFFER ptr, byval x as long, byval y as long, byval width as long, byval height as long) as ZBUFFER ptr
declare sub set_zbuffer(byval zbuf as ZBUFFER ptr)
declare sub clear_zbuffer(byval zbuf as ZBUFFER ptr, byval z as single)
declare sub destroy_zbuffer(byval zbuf as ZBUFFER ptr)
I have also tried using #undefine ZBUFFER and #undefine BITMAP at the top of the allegro.bi file.
It will compile but the error persists.
Worth noting that I am using exactly the same .bi files as my full Debian gui version which does not have this problem.
From my browsing it seems to have something to do with "Forward declaration" but don't understand why it is a problem
with the terminal application.
Any suggestions greatly appreciated.
Regards