zamtmn / metadarkstyle

74 stars 22 forks source link

Compile error: Identifier ApplyDarkStyle not found #52

Closed theonlyasdk closed 2 months ago

theonlyasdk commented 3 months ago

Compilation of package fails with the following error

Compile package MetaDarkStyle 0.9: Exit code 1, Errors: 1
umetadarkstyle.pas(33,3) Error: Identifier not found "ApplyDarkStyle"

image

Looks like LCLWIN32 is not defined thus the code inside the IFDEF block is greyed out and the unit is not getting imported. Any idea on how to fix this?

zamtmn commented 3 months ago

Unfortunately, I won't be able to verify this in the near future. Try replacing $ifdef lclwin32 to $ifdef windows 04.08.2024, 22:11, "TheOnlyASDK" @.>: Compilation of package fails with the following errorCompile package MetaDarkStyle 0.9: Exit code 1, Errors: 1 umetadarkstyle.pas(33,3) Error: Identifier not found "ApplyDarkStyle" image.png (view on web)Looks like LCLWIN32 is not defined thus the code inside the IFDEF block is greyed out and the unit is not getting imported. Any idea on how to fix this?—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

theonlyasdk commented 3 months ago

image I did that and now the package compiles but when I try to build the IDE with the package it shows me the following error:

Build IDE: Exit code 2, Errors: 1
udarkstyle.pas(49,34) Error: Cannot find Qt5 used by uDarkStyle. Enable flag "Use Unit" of unit Qt5 in package LCL.

Looks like it's trying to use Qt5 now.

zamtmn commented 3 months ago

You try compile for qt? try to win32 04.08.2024, 22:49, "TheOnlyASDK" @.>: image.png (view on web)Now it shows this error:Build IDE: Exit code 2, Errors: 1 udarkstyle.pas(49,34) Error: Cannot find Qt5 used by uDarkStyle. Enable flag "Use Unit" of unit Qt5 in package LCL. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

theonlyasdk commented 3 months ago

No, not trying to compile for Qt, here's my Lazarus build configuration: image (it says win32/64)

theonlyasdk commented 2 months ago

Hello! Any solutions yet? From what I've heard from others, this package compiles fine on lazarus 2.4 and 2.6. But for me, it does not compile on Lazarus 3.4 and shows me the above error.

zamtmn commented 2 months ago

I just checked it out - everything works with Lazarus3.4x64. Give more details - where did you get Lazarus, where did you get MDS? Try it with a clean Lazarus installation?

theonlyasdk commented 2 months ago

I got the 64 bit version of lazarus from here: https://www.lazarus-ide.org/index.php?page=downloads I got MDS from online package manager I'm gonna try with a clean Lazarus install

zamtmn commented 2 months ago

Try last mds from github?

theonlyasdk commented 2 months ago

Okay, it now compiles fine, and I get the dark style option in Tools > Options > Dark mode. I tried setting it to force dark, and restarted the IDE, but nothing happened. I installed both metadarkstyle.lpk and metadarkstyledsgn.lpk on Lazarus 3.4

theonlyasdk commented 2 months ago

Okay, finally. After hours of fiddling with it, I got it to work. I installed it from online package manager, and it magically worked! Thanks for the help @zamtmn

zamtmn commented 2 months ago

I advise you not to use ORM, get everything from the original sources. The primary source is this repository

theonlyasdk commented 2 months ago

I've a question. Where does ORM pull the sources from? Do you upload a specific version to it or does it pull it from this repo?

zamtmn commented 2 months ago

I once upload a version to OPM. Time has passed, there have been many changes, it is outdated. I don't have the ability to keep OPM up to date