Created
August 23, 2022 18:49
-
-
Save alisonrag/bee87679b2f370588b2a34486430e12a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) set path so powershell and wbem don't interfere (still needed for downloads to work): | |
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\Users\USER\bin;C:\WINDOWS\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Users\USER\AppData\Local\Microsoft\WindowsApps;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\; | |
2) do cpan install which will take over an hour(med fast pc in a VM) and spew _many_ errors and eventually fail (but all necessary files will download) | |
C:\Users\USER>cpan -i Wx | |
# this will fail | |
#NOTE: every time you run this it generates | |
#a new Wx-0.9932-X dir and in it a new | |
#wxapi.h, so just run it once and let | |
#it complete.. | |
3) edit the wxapi.h file to undef calloc | |
> cd C:\Strawberry\cpan\build\Wx-0.9932-0\cpp | |
> vi wxapi.h | |
paste: | |
#undef calloc | |
after | |
#undef malloc | |
4) do not run cpan -i Wx again!!! instead do the following | |
# go to build folder | |
cd C:\Strawberry\cpan\build | |
# cpan look | |
cpan look Wx | |
#go to wx folder | |
cd C:\Strawberry\cpan\build\Wx-0.9932-0 | |
# this generates make file necessary for following | |
perl Makefile.pl | |
# install Wx in strawberry | |
gmake install test | |
# everything that is touched by wxapi.h will be recompiled, | |
#it will take about 15 mins this time, all tests should pass | |
5) in cmd type | |
cpan fforce notest install Wx::Perl::Packager | |
6) go to openkore folder and start openkore.pl with inteface Wx | |
cd C:\openkore | |
perl openkore.pl --interface=Wx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works homie!! Let's gooooo!