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

How to properly install GWSL after building from source. #195

Open
steviator opened this issue Nov 27, 2024 · 1 comment
Open

How to properly install GWSL after building from source. #195

steviator opened this issue Nov 27, 2024 · 1 comment

Comments

@steviator
Copy link

Despite the sparse instructions, I have managed to installl the old versions of python and pip required and successfully built GWSL. I now have working binaries in the dist\GWSL_version directory, but it doesn't run correctly because it is not fully installed.

How exactly do I install GWSL once it has been built? What I would like to be able to do is to write a proper guide to building it that can be followed by mere mortals, and to distribute freely available binaries for this GPL licensed program as a favor to the author since he is very busy and has no time to make freely available builds.

Can the author please explain exactly how to properly install GWSL to save me considerable time and effort figuring it out myself.

@Rjlintkh
Copy link

From the official guide, Python 3.7 is recommended.

We will be using virtualenv to prevent unexpected errors like

raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryExW', 'The file cannot be accessed by the system.')

install virtualenv if you haven't

pip install virtualenv

Upon trials, it seems for Python versions newer than 3.7 it is possible to encounter ImportError: No module named _bootlocale, then you may need the latest version of PyInstaller by removing ==3.5 in the next command

git clone https://github.com/Opticos/GWSL-Source.git
cd GWSL-Source

virtualenv build_env
.\build_env\Scripts\activate

pip install pygame pywin32 winshell Pillow imtools keyboard pyinstaller==3.5 pyxdg psutil
python build.py

deactivate

Now GWSL is built to dist/GWSL_'version'/, just copy it to %AppData%/GWSL

cd dist
for /d %i in (GWSL_*) do if /i not "%~nxi"=="GWSL_service" xcopy "%i\*" "%AppData%\GWSL\" /E /H /C /I

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