Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PascalABC Support #19

Open
BareGamer opened this issue Nov 4, 2021 · 6 comments
Open

PascalABC Support #19

BareGamer opened this issue Nov 4, 2021 · 6 comments

Comments

@BareGamer
Copy link

BareGamer commented Nov 4, 2021

Hello BeRo, I wanted to use Vulkan.pas in PascalABC, however it didn't work out of the box (which wasn't really surprising). So I added preliminary support for it in vkxml2pas.dpr. Would a pull request with patches for PascalABC be accepted/appreciated? Thank you in advance.
P.S. PascalABC is .net based, so it can work out of the box on Windows, Mac and Linux and possibly mobile.

@BeRo1985
Copy link
Owner

BeRo1985 commented Nov 4, 2021

You are welcome to share them with me, and I will have a look at them.

@BareGamer
Copy link
Author

I will try to do a pull request during the next day then. Would that be ok?

@BeRo1985
Copy link
Owner

BeRo1985 commented Nov 4, 2021

Yep

@BareGamer
Copy link
Author

BareGamer commented Nov 5, 2021

I was making sure the program compiles in PascalABC before working on Vulkan patches and suddenly it gave me a compilation error
(or rather an "exe not found" error even though the compiler didn't show any issues in the console). Looks like the problem is somewhere in the compiler/runner/whatever and is an unhandled exception. I will try to open an issue on PABC's github, but I'm not hopeful that'll get fixed at all/will be fixed quickly. Worsening the issue is the fact that I can't really pinpoint what specifically disrupts the execution.
IMG_20211105_074554

@BareGamer
Copy link
Author

BareGamer commented Nov 5, 2021

Judging by the response of a contributor, the compiler is crashing because of a Stackoverflow. So looks like that'll have to be fixed first in order for things to progress. Also, there might be issues with sizeof(class) as it doesn't really do anything.

As of 29.11, even though the compiler is (hopefully) fixed, I will be able to start working on the patches again only in about 2 weeks, so progress will still be made, but rather in the department of fixing the incompatibilities with fpc introduced by my changes.

@BareGamer
Copy link
Author

@BeRo1985 for about a week now I have been trying to finalize the patches and encountering more and more functions pabc doesn't have natively and that are either impossible or very difficult to implement. However I think there is still a way: compile the needed functions in fpc as a dll and {$rederence} (load) this dll in the source. Do you think that approach would work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants