Plusieurs paquets doivent être installés avant de commencer à compiler Plume sur les machines Windows.
- Téléchargez et installez Git-SCM
- Téléchargez et installez Microsoft Visual Studio 2019
a. Pour la base de données SQLite :
Installez Chocalatey à l'aide d'une invite de commandes PowerShell v2+ :
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
b. Pour PostgreSQL:
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 thelibpq.dll
later on).To support the linker, add a
PQ_LIB_DIR
environment variable and point the postgreslib
-folder to it (e.g.C:\Extra\pgsql\lib
). Without this hint, the linker may stop withLINK : 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!)Télécharger et installer 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
Maintenant que ces dépendances ont été installées, nous devons installer Rust qui possède un installateur spécifique.