julstrat / ubgi Goto Github PK
View Code? Open in Web Editor NEWObject Pascal bindings for SDL_bgi library
Object Pascal bindings for SDL_bgi library
Hello! Congratulations for this very nice project.
I installed on Linux SDL_bgi 2.6.0. When I try to compile an example from ubgi, I get this error:
[roland@localhost examples (master)]$ fpc -B -Fu.. exus.pas
Free Pascal Compiler version 3.2.0 [2020/07/05] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling exus.pas
exus.pas(3,2) Note: APPTYPE is not supported by the target OS
Compiling /home/roland/Documents/pascal/sources/ubgi/ubgi.pas
Linking exus
/usr/bin/ld : /home/roland/Documents/pascal/sources/ubgi/ubgi.o : dans la fonction « UBGI_$$_KEYPRESSED$$BOOLEAN » :
ubgi.pas:(.text.n_ubgi_$$_keypressed$$boolean+0xa) : référence indéfinie vers « kbhit »
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
After taking a look into ubgi.pas, I tried this.
function KeyPressed(): Boolean;
begin
{$IFDEF LINUX}
Result := XKbHit() <> 0;
{$ELSE}
Result := KbHit() <> 0;
{$ENDIF}
end;
With that modification, I can compile the example. (But I understood later that it wasn't the correct solution. See correct solution below.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.