Test using Raylib under Linux (freebasic 1.09)

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Post Reply
Coolman
Posts: 268
Joined: Nov 05, 2010 15:09

Test using Raylib under Linux (freebasic 1.09)

Post by Coolman »

I see that many people can't get Raylib to work. here is the method I used under linux kde neon (freebasic 1.09). the steps :

1/ go to the site :

https://github.com/raysan5

download the version :

https://github.com/raysan5/raylib/relea ... d64.tar.gz

get the static library libraylib.a and copy it in administrator mode in /usr/local/lib by the command :

sudo cp libraylib.a /usr/local/lib

2/ go to the site :

https://github.com/glasyalabolas/fb-raylib

download : Port of raylib 3.5 headers and examples for FreeBasic

this port is only suitable for version 3.5 of raylib. if you install another version, you will get many error messages at compile time...

all examples compile and work...

note that it should also work on windows.

if you want to use the latest version of Raylib, wait for the port to be updated or do it yourself...
Axle
Posts: 41
Joined: May 31, 2022 6:49
Location: Australia

Re: Test using Raylib under Linux (freebasic 1.09)

Post by Axle »

Hi @Coolman

I am currently working on the binders for raylib V4.0 (including extras) as well as raygui v3.x

Some of the previous versions were a bit piecemeal and lacking in documentations so I am hoping to get it all tidied up to the current version :)

I have a lot on my plate as I am writing some books (Raylib/raygui as some of the examples) as well as learning the library and testing the FB version I am working on and tertiary modules as well, so It will take me a while to get through it :)

I'll post in the forum + links to github when I get the test versions done :)

Axle

P.S. I will be testing everything on Win >=8.1 and Ubuntu >=20.x.x(Xorg, no Wayland). This will include install setup guides...
Coolman
Posts: 268
Joined: Nov 05, 2010 15:09

Re: Test using Raylib under Linux (freebasic 1.09)

Post by Coolman »

hello @Axle. it's a good news to update the raylib port for freebasic to version 4. it's a lot of work. good luck. i'll test as soon as it's available.
Axle
Posts: 41
Joined: May 31, 2022 6:49
Location: Australia

Re: Test using Raylib under Linux (freebasic 1.09)

Post by Axle »

Coolman wrote: Jun 20, 2022 14:37 I see that many people can't get Raylib to work. here is the method I used under linux kde neon (freebasic 1.09). the steps :

1/ go to the site :

https://github.com/raysan5

download the version :

https://github.com/raysan5/raylib/relea ... d64.tar.gz

get the static library libraylib.a and copy it in administrator mode in /usr/local/lib by the command :

sudo cp libraylib.a /usr/local/lib

2/ go to the site :

https://github.com/glasyalabolas/fb-raylib

download : Port of raylib 3.5 headers and examples for FreeBasic

this port is only suitable for version 3.5 of raylib. if you install another version, you will get many error messages at compile time...

all examples compile and work...

note that it should also work on windows.

if you want to use the latest version of Raylib, wait for the port to be updated or do it yourself...
SHi

Sorry I was off line for a couple of weeks. With regard to using the static library (raylib) are you getting version conflicts when compiling them under FB? One of the discussions that I just got through made me realise that FB cant natively compile C libraries, and using a static library compiled with a different GCC version will throw a version confict in FB, just as you would expect in C.

Because of this I am currently creating the single raylib and raygui shared object as the dll and so will be less dependent upon FB GCC version.
The binders will take me a while to get through and test but I think I will be staying with raylib v4.0.0 and raygui V3.1 (I have to keep the same version across C, FB and Python 3)

Axle
Coolman
Posts: 268
Joined: Nov 05, 2010 15:09

Re: Test using Raylib under Linux (freebasic 1.09)

Post by Coolman »

hello. i used to compile raylib source code with gcc to generate a static lib under linux (ubuntu) but it's difficult to keep in memory the version so that it works with the adapted wrapper. now, i download the official static library checking the version so that it matches the wrapper. otherwise, the compilations often cause errors. in conclusion, each wrapper needs the adapted library...

I don't think that compiling raylib with different versions of gcc is a problem. it's mainly the raylib library that evolves all the time and loses compatibility with the wrappers that need to be updated. i'm speaking for linux. i don't use windows anymore, i can't say anything for this system.

I confirm that if you follow the described method, all the examples compile without problem. make the test to use another version of the library of raylib and you will have many error messages.

note that I use freebasic 1.09 that I have compiled, I have posted a download link here:

viewtopic.php?t=31428

the explanation to compile freebasic is still there but the link is not accessible anymore...

for windows i noticed that there is a package compiled with tcc. it is a very light C compiler. you should test it to see if the problem persists like with gcc :

https://github.com/raysan5/raylib/relea ... .0.tcc.exe
Axle
Posts: 41
Joined: May 31, 2022 6:49
Location: Australia

Re: Test using Raylib under Linux (freebasic 1.09)

Post by Axle »

@Coolman

Thanks for that.
I have made up (Compiled) a couple of Shared objects for raylib V4.0.0 and included raygui in the same so. I also created an OpenGLV3.3 and a 2.1 version for VirtualBox compatibility.

I am still working the raygui.bi V 3.1 atm and also the raymath and rlgl to do.

Once I get these binders finished I will start testing with Win and Ubuntu.

Axle
Post Reply