[Guide] Compiling Ahk_h's source step by step

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
HotKeyIt
Posts: 1877
Joined: 29 Sep 2013, 18:35
Contact:

Re: [Guide] Compiling Ahk_h's source step by step

27 Jul 2019, 15:34

What do you mean by ALL compilation options and what error do you get otherwise?
User avatar
manehscripts
Posts: 102
Joined: 03 May 2019, 16:10

Re: [Guide] Compiling Ahk_h's source step by step

27 Jul 2019, 16:51

HotKeyIt wrote:
27 Jul 2019, 15:34
What do you mean by ALL compilation options and what error do you get otherwise?
Hi!
I only use the compiled x64w folder
But in order for it to be generated correctly, I need to check all options as below. If I uncheck Win32... for example, it does not work correctly.
The other files I do not use.
002.png
002.png (55.89 KiB) Viewed 1198 times
001.png
001.png (5.41 KiB) Viewed 1198 times
-----------------------------------------------------------
Stop to think, shut up to resist, and act to win!
HotKeyIt
Posts: 1877
Joined: 29 Sep 2013, 18:35
Contact:

Re: [Guide] Compiling Ahk_h's source step by step

27 Jul 2019, 18:51

What do you mean by it does not work correctly?
User avatar
manehscripts
Posts: 102
Joined: 03 May 2019, 16:10

Re: [Guide] Compiling Ahk_h's source step by step

28 Jul 2019, 00:19

HotKeyIt wrote:
27 Jul 2019, 18:51
What do you mean by it does not work correctly?
When I choose only x64, in the final folder it does not create the .exe correctly, something is missing:
Screenshot_7.png
Screenshot_7.png (57.46 KiB) Viewed 1029 times
Screenshot_8.png
Screenshot_8.png (12.5 KiB) Viewed 1029 times

But when I choose ALL options (with x32) as I showed in the post above, it creates .exe the right way:
Screenshot_9.png
Screenshot_9.png (61.24 KiB) Viewed 1029 times
-----------------------------------------------------------
Stop to think, shut up to resist, and act to win!
HotKeyIt
Posts: 1877
Joined: 29 Sep 2013, 18:35
Contact:

Re: [Guide] Compiling Ahk_h's source step by step

28 Jul 2019, 03:33

Make sure that AutoHotkey is the startup project (bold) and tick or select AutoHotkey|MT_Release|x64 only.
User avatar
manehscripts
Posts: 102
Joined: 03 May 2019, 16:10

Re: [Guide] Compiling Ahk_h's source step by step

28 Jul 2019, 15:19

HotKeyIt wrote:
28 Jul 2019, 03:33
Make sure that AutoHotkey is the startup project (bold) and tick or select AutoHotkey|MT_Release|x64 only.
Hi, yeah, I make AutoHotkey is the startup project and tried to compile the way you said (AutoHotkey|MT_Release|x64 only) and also just choosing Release, but even so in the final file it doesn't get the right size and it doesn't work. But if I select all the options, as I mentioned above, the final file gets 2,448kb
Screenshot_7.png
Screenshot_7.png (57.46 KiB) Viewed 989 times
Selecting just what you indicated and also all x64:
Screenshot_1.png
Screenshot_1.png (9.7 KiB) Viewed 989 times

Selecting All Formats:
Screenshot_11.png
Screenshot_11.png (9.27 KiB) Viewed 989 times
-----------------------------------------------------------
Stop to think, shut up to resist, and act to win!
HotKeyIt
Posts: 1877
Joined: 29 Sep 2013, 18:35
Contact:

Re: [Guide] Compiling Ahk_h's source step by step

28 Jul 2019, 15:45

Are you also executing CleanUpAndPack.exe afterwards? If so then you will have to compile the dlls too!
So select MT_Release + MT_ReleaseDll + MT_ReleaseDllMini (not the mbcs!!!).
User avatar
manehscripts
Posts: 102
Joined: 03 May 2019, 16:10

Re: [Guide] Compiling Ahk_h's source step by step

28 Jul 2019, 16:10

HotKeyIt wrote:
28 Jul 2019, 15:45
Are you also executing CleanUpAndPack.exe afterwards? If so then you will have to compile the dlls too!
So select MT_Release + MT_ReleaseDll + MT_ReleaseDllMini (not the mbcs!!!).
Yes, I'm running the CleanUpAndPack.exe, but for me it only works when the final file gets 2.448kb, and it doesn't if I don't select ALL. I've tried several combinations and the final file is never the correct size.
Screenshot_2.png
Screenshot_2.png (26.2 KiB) Viewed 974 times
Screenshot_3.png
Screenshot_3.png (6.12 KiB) Viewed 974 times
-----------------------------------------------------------
Stop to think, shut up to resist, and act to win!
User avatar
manehscripts
Posts: 102
Joined: 03 May 2019, 16:10

Re: [Guide] Compiling Ahk_h's source step by step

31 Jul 2019, 18:50

I found a solution. I compile by selecting all the options, then later I just mark the x64 and it works.
-----------------------------------------------------------
Stop to think, shut up to resist, and act to win!

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 5 guests