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

[Keeping Notes] getting the script working on Linux #19

Open
Nathan22211 opened this issue Nov 8, 2024 · 5 comments
Open

[Keeping Notes] getting the script working on Linux #19

Nathan22211 opened this issue Nov 8, 2024 · 5 comments

Comments

@Nathan22211
Copy link

at least until he figures out how to compile pascal for linux I've done some fiddling around with WineZGUI and got the script to launch thus far under a wine runner.

you'll need WineZGUI and possibly bottles, (both from flathub)

firstly you'll need import a recent version of the soda runner into WineZGUI, (or install it from that app). Bottles comes with soda preinstalled after running it once, so you can import it from there.

second, you'll want to right click on the Sb53 exe and have it run under wineZGUI. it'll ask you if you want to install some .NET core stuff, do that.

third, make a gamedir of the wine prefix folder through WineZGUI, otherwise you can't bring in the config folder nor the other exe.

lastly, have WineZGUI open the folder for the script's wine prefix via WineZGUI and drag the other needed stuff into it.

you should be able to run it standalone now but I haven't figured out how to run it from the slicer yet.

@sb53systems
Copy link
Owner

@Nathan22211 ,Soon, I'll have time to compile the source code for Linux and macOS. It's not too difficult with Delphi 12, which allows you to compile the same code for any operating system. I recommend trying this, as it's the only way to make it work correctly! I'm here to help if needed.

My discord is : sb53systems

@Nathan22211
Copy link
Author

Nathan22211 commented Nov 8, 2024

I'll have to look to see where I could get Delphi 12 for arch linux, my main concern is that it might not behave correctly with the linux version of klipper estimator

anyway I'm one step closer. go into it's behavior under more and have it launch directly, you can then use bash -c ''\''/home/nathan/.var/app/io.github.fastrizwaan.WineZGUI/data/winezgui/Prefixes/SB53-Systems-d8ebb469c5/SB53-Systems.sh'\'''

replace nathan with your home user

@Nathan22211
Copy link
Author

ok that didn't work sigh well it's half done. I'm having trouble finding stuff on pascal compiling on arch though

@sb53systems
Copy link
Owner

this could be done from any operating system (Windows for my case).
i just need to install a virtual Linux to be able to test it.

I will send you a trial version if you can test it.

@sb53systems
Copy link
Owner

sb53systems commented Nov 9, 2024

After doing some research, I found that a paid version of Delphi 12 (Enterprise or Architect) is required to compile the code for Linux. With the Community edition, it is only possible to compile it for Windows, MacOS, or Android.

I think another free IDE that runs on Linux can do it!
Lazarus IDE :
Lazarus is an open source integrated development environment (IDE) that allows programming in Pascal, particularly with the Free Pascal compiler. It is designed to create cross-platform applications and is compatible with Windows, macOS, and Linux operating systems.

Klipper Estimator can also be compiled for Linux: See the Klipper_Estimator Building Section (This must be done for the modified version that is used by the Script (This one)).

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