pasvulkan icon indicating copy to clipboard operation
pasvulkan copied to clipboard

Can't build examples

Open benjamimgois opened this issue 2 months ago • 1 comments

Hi,

Firstly, thankyou for this pascal vulkan implementation, i have a small rotating cube written in openGL and Lazarus, but i wanted to migrate it to vulkan.

https://github.com/benjamimgois/pascube

i'm trying to compile pasvulkan on Arch Linux following your instructions.

Step 1 - It compiles the asset files - Works fine Step 2 - compiles the example code itself - Error

I got the following error:

https://pastebin.com/kAZec4Eu

What should i do ?

benjamimgois avatar Oct 10 '25 17:10 benjamimgois

Hm, It seems that the stable FPC 3.2.2 version has a bug, which is fixed in the unstable dev FPC 3.3.1 trunk version.

FPC 3.2.2 do seem to dislike:

bc0:=TpvVector2.InlineableCreate(x,TpvFloat(aResolution)-y)*InverseResolution;

which I've changed it now to:

bc0:=TpvVector2.InlineableCreate(x,(aResolution+0.0)-y)*InverseResolution;

So please pull and then test it again with this.

I myself always use the unstable dev FPC 3.3.1 version and not the stable FPC 3.2.2 release, so it got unnoticed. Thanks for the report 🙂

BeRo1985 avatar Oct 10 '25 20:10 BeRo1985