Je kunt niet meer dan 25 onderwerpen selecteren
Onderwerpen moeten beginnen met een letter of nummer, kunnen streepjes bevatten ('-') en kunnen maximaal 35 tekens lang zijn.
3.3 KiB
3.3 KiB
title |
---|
Dependencies on Windows |
There are several packages that need to be installed before getting started compiling Plume on Windows devices.
- Download and install Git-SCM
- Download and install Microsoft Visual Studio 2019
a. For SQLite Database:
Install [Chocalatey](https://chocolatey.org/) using a PowerShell v2+ prompt:
```powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
```
b. For PostgreSQL:
Download [PostgreSQL Binaries](https://www.enterprisedb.com/download-postgresql-binaries), extract to an easy place (i.e. `C:\Extra\pgsql`), and add the bin folder to your system path variable (which is needed to load the `libpq.dll` later on).
To support the linker, add a `PQ_LIB_DIR` environment variable and point the postgres `lib`-folder to it (e.g. `C:\Extra\pgsql\lib`). Without this hint, the linker may stop with `LINK : fatal error LNK1181: cannot open input file 'libpq.lib'`
- Download and install OpenSSL (i.e.
C:\Extra\ssl
). If not done by installer, add the bin folder to your system path variable (plume and plm will needlibcrypto-3-x64.dll
andlibssl-3-x64.dll
) - Create new system variable called
OPENSSL_DIR
with a value ofC:\Extra\ssl
(or wherever you installed OpenSSL NOTE: this is not to the bin folder, it must be to root to get the bin and lib folders!) - Download and install LLVM (libclang) (i.e. C:\Extra\LLVM)
- Create new system variable called
LIBCLANG_PATH
with a value ofC:\Extra\LLVM\bin
(or wherever you installed LLVM to) - Currently, the build process depends on few Linux commands (e.g.
xargs
,stat
, ...). These commands are not available in a normal Windows environment. The simplest workaround is to install Cygwin and later run thecargo
commands from the Cygwin terminal. A minimum package is sufficient. If this is not the case, the creation process panics withthread 'main' panicked at 'failed xargs command: Error { kind: NotFound, message: "program not found" }', build.rs...
. These dependencies may be removed in future releases to simplify the build process again. - The build needs GNUgettext to support text resources and internationalization. Download the zip file and extract it (e.g. to
C:\Extra\gnugettext
). Add thebin
-folder to yourPATH
environment variable (e.g.C:\Extra\gnugettext\bin
). As an alternative thegettext
package of Cygwin can be used. However, since the goal is not to have Cygwin as a mandatory installation for the build, it is recommended to install GNUgettext as Windows binaries. If you miss GNUgettext, you will run in errors on building withwasm-pack
(because the makroscompile_i18n!()
andinclude_i18n!()
will not work) - Reboot your PC to continue
Now that these dependencies have been installed, we need to install Rust which has a special installer.