-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi @WIITD
I was creating the FB bindings for V4.2 in the background but you beat me too it :) As such I am content to run with the work you have done. I have intentions of including raylib and raygui in some books I am writing on introduction to programming with examples in C, FreeBASIC and Python 3. I intend to use raylib/raygui for all 3 languages to exemplify basic graphics (graphics.h like) and GUIs.
Documentation for using raylib in FB is a little scant so I would like to confirm with you the C builds of the shared library you are creating for Windows and Linux (Ubuntu). I am currently building the shared library with "winlibs-mingw-w64-x86_64-9.3.0-7.0.0-r3-sjlj.7z" on windows, but haven't got to the Linux side just yet.
As this is a 64 bit build I am first rebuilding the default 32bit "raylib.dll.rc.data" as 64 bit.
@ECHO OFF
REM Recompile the Resource data file for 64 bit.
REM The library default is 32 bit.
REM Pleas set the paths according to the compiler and source directory.
SET PATH=%PATH%;SET PATH=%PATH%;C:\Dev-FreeBASIC\Winlibs\winlibs-mingw-w64-x86_64-9.3.0-7.0.0-r3-sjlj\mingw64\bin
SET PATH=%PATH%;C:\Dev-FreeBASIC\Winlibs\winlibs-mingw-w64-x86_64-9.3.0-7.0.0-r3-sjlj\raylib\src
windres raylib.dll.rc -o raylib.dll.rc.data --target=pe-x86-64
pause
I am then building the raylib4.2 and raygui3.2 into the dll/so with the following switches.
The following also re-compiles the raylib.dll.rc.data after clean...
REM Makefile laucher for 64-bit Compile.
REM Please set the paths according to the compiler and source directory.
SET PATH=%PATH%;SET PATH=%PATH%;C:\Dev-FreeBASIC\Winlibs\winlibs-mingw-w64-x86_64-9.3.0-7.0.0-r3-sjlj\mingw64\bin
SET PATH=%PATH%;C:\Dev-FreeBASIC\Winlibs\raylib-4.0.0\src
REM Recompile the Resource file for Windows x86-64
windres raylib.dll.rc -o raylib.dll.rc.data --target=pe-x86-64
REM Clean up the build environment.
mingw32-make clean
REM Using OpenGL V2.1 for VirtualBox compatibility.
REM mingw32-make V=1 -f Makefile PLATFORM=PLATFORM_DESKTOP RAYLIB_MODULE_RAYGUI=TRUE RAYLIB_LIBTYPE=SHARED GRAPHICS=GRAPHICS_API_OPENGL_33
mingw32-make V=1 -f Makefile PLATFORM=PLATFORM_DESKTOP RAYLIB_MODULE_RAYGUI=TRUE RAYLIB_LIBTYPE=SHARED GRAPHICS=GRAPHICS_API_OPENGL_21
pause
The shell script for Ubuntu should be much the same.
Can you confirm that this build is what you are using with raylib.bi, raymath.bi and raymath.bi ?
Also, with your permission I would like to offer attribution for your work in the books. Is a link to the github project acceptable to you?
Sorry about dropping this in the issues sections as I am unaware of your username in the FB forums and I don't use twatter :)
Best regards
Axle