Recent

Author Topic: Release ray4laz 6.0  (Read 1083 times)

Guva

  • Full Member
  • ***
  • Posts: 219
  • 🌈 ZX-Spectrum !!!
Release ray4laz 6.0
« on: April 23, 2026, 01:57:27 pm »
release ray4laz 6.0

We are excited to announce the release of ray4laz 6.0 – a major update synchronized with the landmark raylib 6.0 release!

This version brings full support for all the new features of the raylib backend, along with significant compiler support improvements and bug fixes, making Pascal development even more enjoyable.

What's New?

  • Synchronized with raylib 6.0: Ray4Laz is now based on the latest major version of raylib, which includes:
    • NEW Software Renderer (rlsw): Allows applications to run without a GPU.
    • REDESIGNED Fullscreen & High-DPI Modes.
    • REDESIGNED Skeletal Animation System.
    • NEW and Improved Filesystem API.

    • Static Linking: Added static linking support for Windows.

    • Delphi Support: Thanks to the efforts of @HemulGM (Malinin Gennady), ray4laz now includes support for the Delphi compiler. Examples and general compatibility have been greatly improved.

    • MSEIde/ideU Compatibility: Added support for the MSEIde/ideU by @fredvs(Fred van Stappen), expanding the range of development environments where the library can be used.

    • Math Operator Overloads: Added C++-style operator overloads for Vector2, Vector3, Vector4, Quaternion, and Matrix (from raymath). Many thanks to @olatov (Oleg Latov). This allows for more natural and readable mathematical code.

    • Fixes and Code Cleanup:
      • Corrected the signature of the Vector2ClampValue function in raymath (by @olatov).
      • Removed dead code that appeared after end.(by @n7800), improving stability and source clarity.
    « Last Edit: April 23, 2026, 02:29:59 pm by Guva »

    MikeHart

    • Newbie
    • Posts: 6
    Re: Release ray4laz 6.0
    « Reply #1 on: May 14, 2026, 09:07:32 pm »
    Wow, that is great. Thank you so much.
    « Last Edit: May 14, 2026, 09:23:35 pm by MikeHart »

    YiannisKam

    • Full Member
    • ***
    • Posts: 120
    Re: Release ray4laz 6.0
    « Reply #2 on: May 16, 2026, 09:34:44 am »
    Thank you !!!
    Windows 10 - 64bit
    Lazarus version: 3.99
    FPC       version: 3.3.1

    lazarusprogrammer

    • New Member
    • *
    • Posts: 21
    Re: Release ray4laz 6.0
    « Reply #3 on: June 04, 2026, 10:54:39 pm »
    windows 11
    lazarus is 4.6
    ray4laz is 6.0 installed from online package manager.

    And i am making new raylib project from template and getting this errors.
    HELP?

    « Last Edit: June 04, 2026, 11:04:22 pm by lazarusprogrammer »

    Fred vS

    • Hero Member
    • *****
    • Posts: 3947
      • StrumPract is the musicians best friend
    Re: Release ray4laz 6.0
    « Reply #4 on: June 05, 2026, 12:28:01 am »
    windows 11
    lazarus is 4.6
    ray4laz is 6.0 installed from online package manager.

    And i am making new raylib project from template and getting this errors.
    HELP?

    Hello.

    The messages are about static linking of the libraries into the exe.

    You have 2 solutions (for x86_64-win64 only, for i386_win32 you need to find or create the static .a libs needed) :

    1) Copy the .a static libraries from \ray4laz\libs\x86_64-win64 into the root directory of your program.
    Maybe you will need to add this fpc parameter for compilation:
    Code: Pascal  [Select][+][-]
    1.  -Fl.

    2) Or add fpc parameter for compilation:
    Code: Pascal  [Select][+][-]
    1.  -k"-rpath=\directory_of\ray4laz\libs\x86_64-win64"
    (see https://forum.lazarus.freepascal.org/index.php/topic,71678.0.html).

    But you may also use instead the dynamic linking of libraylib.dll and in this case the lib for win32 is also provided.
    for this remove in top of your main program:
    Code: Pascal  [Select][+][-]
    1. {$DEFINE RAY_STATIC}

    I hope it helps.
    « Last Edit: June 05, 2026, 02:26:58 am by Fred vS »
    I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
    Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

    https://github.com/fredvs
    https://gitlab.com/fredvs
    https://codeberg.org/fredvs

    lazarusprogrammer

    • New Member
    • *
    • Posts: 21
    Re: Release ray4laz 6.0
    « Reply #5 on: June 05, 2026, 04:29:03 pm »


    I hope it helps.
    Some time ago i did compile raylib project of guva's match 3 game with no issues. But now non of raylib stuff are working.

    Copying .a static libraries gives me different type of errors now it's saying "Undefined symbol: _initWindow" ...and 35 more of similar.

    I don't have {$DEFINE RAY_STATIC} in top of my main program. And rest of solutions idk how to do this.

    As i said it was working before right after installation without any additional manipulation.

    Not sure if it's matter but in online package manager it says i have both ray4laz and ray4laz_designruntime. But if i go to install/unistall packages i only have ray4laz_designruntime there.

    Fred vS

    • Hero Member
    • *****
    • Posts: 3947
      • StrumPract is the musicians best friend
    Re: Release ray4laz 6.0
    « Reply #6 on: June 05, 2026, 09:06:27 pm »


    I hope it helps.
    Some time ago i did compile raylib project of guva's match 3 game with no issues. But now non of raylib stuff are working.

    Copying .a static libraries gives me different type of errors now it's saying "Undefined symbol: _initWindow" ...and 35 more of similar.

    I don't have {$DEFINE RAY_STATIC} in top of my main program. And rest of solutions idk how to do this.

    As i said it was working before right after installation without any additional manipulation.

    Not sure if it's matter but in online package manager it says i have both ray4laz and ray4laz_designruntime. But if i go to install/unistall packages i only have ray4laz_designruntime there.

    Hum, I dont use ray4laz from OPM (there is no demo in the zip).

    But I have out-of-the-box result using the zip file from https://github.com/GuvaCode/ray4laz: here the zip: https://github.com/GuvaCode/ray4laz/archive/refs/heads/main.zip

    Install the 2 packages from /ray4laz-main/package.

    There is ray4laz-main/examples with Lazarus lpi project files and all the examples compile + run out-of-the-box, just in Lazarus/Project/Open Project choose a lpi project file and load + build + run it.

    Note that for static linking the libraries; only libs\x86_64-win64 has the .a files so you will need to compile using fpc win64.
    « Last Edit: June 05, 2026, 09:25:49 pm by Fred vS »
    I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
    Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

    https://github.com/fredvs
    https://gitlab.com/fredvs
    https://codeberg.org/fredvs

    Guva

    • Full Member
    • ***
    • Posts: 219
    • 🌈 ZX-Spectrum !!!
    Re: Release ray4laz 6.0
    « Reply #7 on: June 07, 2026, 07:45:39 am »


    I hope it helps.
    Some time ago i did compile raylib project of guva's match 3 game with no issues. But now non of raylib stuff are working.

    Copying .a static libraries gives me different type of errors now it's saying "Undefined symbol: _initWindow" ...and 35 more of similar.

    I don't have {$DEFINE RAY_STATIC} in top of my main program. And rest of solutions idk how to do this.

    As i said it was working before right after installation without any additional manipulation.

    Not sure if it's matter but in online package manager it says i have both ray4laz and ray4laz_designruntime. But if i go to install/unistall packages i only have ray4laz_designruntime there.

    Я так толком и не понял суть проблемы. То что показывает только дизаин-таим пакет так и должно быть. Статика есть только для x64(win,lin) конфигурация в файле {$I raylib.inc} 

    ps. Похоже проблема намного глобальней. Я пока не понял но имено в windows 11 все падает.

    статическая линковка не будет работать на вашей версии Now features static linking for Windows as well! Requires FPC 3.3.1 or higher

    Если не решите проблемму то напишите, на виртуальной машине я не могу проверить так как glwf не инициализируеться с virtualbox
    « Last Edit: June 07, 2026, 09:53:24 am by Guva »

    lazarusprogrammer

    • New Member
    • *
    • Posts: 21
    Re: Release ray4laz 6.0
    « Reply #8 on: June 07, 2026, 08:02:14 pm »

    Я так толком и не понял суть проблемы. То что показывает только дизаин-таим пакет так и должно быть. Статика есть только для x64(win,lin) конфигурация в файле {$I raylib.inc} 

    ps. Похоже проблема намного глобальней. Я пока не понял но имено в windows 11 все падает.

    статическая линковка не будет работать на вашей версии Now features static linking for Windows as well! Requires FPC 3.3.1 or higher

    Если не решите проблемму то напишите, на виртуальной машине я не могу проверить так как glwf не инициализируеться с virtualbox

    Что за линковка я не очень разбираюсь. У меня такие версии Lazarus 4.6 (rev lazarus_4_6) FPC 3.2.2 i386-win32-win32/win64. вроде хаер чем 3.3.1. Должно линковать что бы это не значило.

    Я хотел удалить ray4laz, которую я из онлайн менеджера поставил и установить вручную, другую версию, 4-5 которая работала. Думал что проблема в кривой установке. Но, раз его там не должно быть, тогда вариант отметается.

    В общем, проблема не решена. Если есть идеи, могу попробовать что-нибудь отредактировать, удалить, добавить.

    Если что, на всякий случай, все эти глуты у меня работают. Правда только с 32х битной ддлкой. Может мне нужен лазарус 64х битный для ray4laz или поменять разрядность в настройках компилятора?


     

    TinyPortal © 2005-2018