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

Chess256 on MacOS #2

Closed
relipse opened this issue May 22, 2023 · 14 comments
Closed

Chess256 on MacOS #2

relipse opened this issue May 22, 2023 · 14 comments

Comments

@relipse
Copy link

relipse commented May 22, 2023

Hey , I tried to compile on MacOS
I used
{$IFDEF DARWIN} EngineName1 = '/Users/tearsfornations/util/lazarus/Chess256/Stockfish/stockfish'; EngineName2 = '/Users/tearsfornations/util/lazarus/Chess256/Stockfish/stockfish'; EngineFilter = '*'; EngineDefExt = ''; {$DEFINE HAS_ENGINE_NAME} {$ENDIF}

and downloaded stockfish but when I press "Play", I get
Project Chess 256 raised exception class 'EResourceReaderWrongFormatException'

@relipse
Copy link
Author

relipse commented May 22, 2023

But it looks really cool!

@relipse
Copy link
Author

relipse commented May 22, 2023

image
Oddly enough, it runs, but the notation doesn't appear correctly. Thank you for working on this!

@alex65536
Copy link
Owner

Hello :)

Sorry for the late reply.

Unfortunately, I don't have the devices with macOS, so cannot test it, but any pull requests are welcome :)

Project Chess 256 raised exception class 'EResourceReaderWrongFormatException'

Could you please compile with debug information and send me the full stack trace?

Oddly enough, it runs, but the notation doesn't appear correctly. Thank you for working on this!

Which widgetset do you use to build the project? Is it native (Cocoa), Qt or GTK? I certainly know that the notation works correctly on Win32 and GTK, but on Qt, the masks work incorrectly, so similar glitches appear. Don't have any idea about macOS native widgets, though.

Also, thanks for testing and trying to run the app under macOS :)

@relipse
Copy link
Author

relipse commented May 28, 2023

I have no idea, I just downloaded Stockfish with home brew and put in those statements and clicked the play button. It starts up with an exception, but if I ignore it, it will start.

@alex65536
Copy link
Owner

alex65536 commented May 28, 2023

What did you use to build the program? And could you please upload the build logs?

@relipse
Copy link
Author

relipse commented May 29, 2023

I opened it in Lazarus and clicked on the green "Play" button, to start it with debugging. Where do I get the build logs? I don't see any option for it.

@relipse
Copy link
Author

relipse commented May 29, 2023

I had it on Current LCL widgetset: "cocoa" then started experimenting with the other ones.
Here is what I think is the build log, please correct me if I am wrong.
messages.txt

@relipse
Copy link
Author

relipse commented May 29, 2023

Furthermore, I tried all these in this screenshot and the notation behaved the same in all of them.
Greenshot 2023-05-28 21 18 55

@alex65536
Copy link
Owner

I hope I have fixed the issues with both EResourceReaderWrongFormatException and notation rendering. Could you please pull the latest changes and check if everything is OK now?

@relipse
Copy link
Author

relipse commented May 29, 2023

Thanks for the updates, I am now getting a linker error: https://forum.lazarus.freepascal.org/index.php/topic,63507.0.html
Can't even link.

@relipse
Copy link
Author

relipse commented May 29, 2023

Here is my compiler options command line parameters:
/usr/local/bin/fpc
-MObjFPC
-Scghi
-Crot
-g-h
-k-framework
-kCocoa
-l
-vewnhibq
-vm6058,3124,3123
-Filib/x86_64-darwin
-Fu../../../../.lazarus/lib/units/x86_64-darwin/gtk
-Fu/Applications/Lazarus/lcl/units/x86_64-darwin
-Fu/Applications/Lazarus/components/freetype/lib/x86_64-darwin
-Fu/Applications/Lazarus/components/lazutils/lib/x86_64-darwin
-Fu/Applications/Lazarus/packager/units/x86_64-darwin
-Fu.
-FUlib/x86_64-darwin
-FE../Binary
-o../Binary/Chess256
-dLCL
-dLCLcocoa

@alex65536
Copy link
Owner

The error is about -lgtk3.0 and it's strange to appear if you use Cocoa. I hope you need to save the project and do a clean build.

@relipse
Copy link
Author

relipse commented May 29, 2023

Nice, I did Run -> Clean up and Build
Greenshot 2023-05-29 10 03 09
and it is working, with no Exception when it starts, Thank you.

@alex65536
Copy link
Owner

Seems to be resolved, closing the issue.

Thanks for the report :)

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