summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/Compiling_the_native_Windows_EFL.txt188
1 files changed, 188 insertions, 0 deletions
diff --git a/pages/Compiling_the_native_Windows_EFL.txt b/pages/Compiling_the_native_Windows_EFL.txt
new file mode 100644
index 000000000..f377238de
--- /dev/null
+++ b/pages/Compiling_the_native_Windows_EFL.txt
@@ -0,0 +1,188 @@
1====Compiling the native Windows EFL ====
2=== Preparing the build environment ===
3
4The steps below correspond to the preparation of the **EFL native windows** compilation environment.
5
6> [Note!]
7> these steps were tested on Windows server 2019 64bit and Windows 10 64bit.
8
9Except for topic 7 (Environment variables) that can be consulted during the process of preparing the environment, the ideal is that the steps are fulfilled in the proposed order.
10
11 - Visual studio installation
12 - Meson
13 - Perl
14 - PCRE
15 - LLVM
16 - Openssl
17 - Environment variables
18 - Compiling the EFL
19
20
21----
22
23=== 1 - Visual studio installation ===
24
25 * Download the software from the official website: [[https://visualstudio.microsoft.com/|Visual Studio]]
26
27 * Choose the option you want, the most basic and free version is the [[https://visualstudio.microsoft.com/pt-br/thank-you-downloading-visual-studio/?sku=Community&rel=16 |community]]
28
29 * After installation add the build package for c and c ++
30
31 * If there is no list of options for including the package, complete the installation and locate in the Start Menu Virtual Studio Installer, you can add the package to c / c ++, update or check if it was successfully installed.
32
33----
34
35=== 2 - Meson ===
36
372.1. Install the [[https://pypi.org/project/meson/|MESON]] using the following command on the terminal:
38
39<code>
40>pip istall meson
41</code>
42
43> The version of mesmon used in this tutorial is the **0.53.2**, it is possible to directly install this version as follows `pip install meson==0.52.2` to check the installed summer use: `meson --version` or use `pip freeze` to check all installed packages and their versions.
44
45> Check the python summer installed on your Windows, in this tutorial we are using Python 3.8
46
47 2.2. At the end of the previous step, open a new terminal, type the command below and press enter:
48
49<code>
50>meson
51</code>
52The result should look like this:
53<code>
54>ERROR: Must specify at least one directory name
55</code>
56If the command is not recognized, finish the environment variables step, and try again, the documentation can be found at: [[https://pypi.org/project/meson/|MESON.]]
57
58
59----
60
61=== 3 - Perl===
62
63
643.1. The version used in this tutorial was the **strawberry-perl-5.30.2.1-64bit.msi**, Download it here: [[http://strawberryperl.com/|Download Perl.]]
65
663.2. Install in: C:\Strawberry/.
67
68----
69
70=== 4 - PCRE===
71
724.1. download PCRE, the version used in this tutorial is that of March 23, 2007, the version can be found at: [[http://gnuwin32.sourceforge.net/packages/pcre.html|Download PCRE.]], in the section: **Developer files**.
73
744.2. After the download, extract the files in a directory of your choice, in this case, extract in: `C:\Users\ricardo.campos\AppData\Local\efl\pcre`.
75
76> Add the environment variables according to the section: **7 - Windows Environment Variables**
77
78----
79
80===5 - LLVM===
81
825.1. Download the LLVM, the version used in this tutorial is 9.0.1, both this section and the higher versions can be found at: [[https://github.com/llvm/llvm-project/releases/|LVVM Download.]].
83
84> Upon entering the corresponding section with the chosen version, a file with the following description (in this case with version 9.0.1) must be located: ``LLVM-9.0.1-win64.exe``, download this file.
85
865.2. when installing, it is important to select at least one of the options below:
87
88>[x] Add LLVM to the system PATH for all users.
89>[x] Add LLVM to thr system PATH for current user.
90
91In this case we install in `C:\Program Files\LLVM`.
92
93----
94
95===OpenSSL===
96
976.1. Clone or download the **OpenSSL** in: [[https://github.com/openssl/openssl|Download Openssl]].
98
996.2. Downlaod the **NASM** in: [[https://www.nasm.us/|Download NASM]].
100
101> Add **NASM** Windows environment variables, see the guide: - 7 Environment variables.
102
1036.3. After installing NASM, Open the OpenSSL directory in visual studio, in the Visual Studio file explorer, right-click on the OpenSSL root directory and select the option: **Open Developer Command Prompt**
104> Check that the terminal that was opened is running on 64bit version.
105
106In this step, type the following command in the terminal:
107
108<code>
109>perl5.30.1.exe Configure VC-WIN64A --prefix=C:/Users/<your_user_name>/AppData/Local/efl/OpenSSL --openssldir=C:/Users/<your_user_name>/AppData/Local/efl/openssldir
110</code>
111
112>Caso não saiba a versão correta do PERL instalado, digite o seguinte comando no terminal e pressione enter:
113<code>
114>perl --version
115</code>
116
1176.4.Chegou a hora de compilar a OpenSSL, no mesmo prompt de comando aberto anteriormente, digite o seguinte comando para compilar:
118
119<code>
120>nmake
121</code>
122
123The file [[https://github.com/openssl/openssl/blob/master/INSTALL.md|INSTALL.md]] can be consulted if there is a problem during installation, or if you have any questions.
124
125----
126
127=== 7 Windows Environment Variables ===
128
129 * This module is aimed at checking environment variables:
130==python==
131 * During python installation, you can select the option to add python environment variables automatically, if there is a problem with MESON, delete the existing variables and add as shown below.
132 * For the conference, we are using `Python 3.8` for this tutorial
133 * Open the windows environment variable editor, for the variables corresponding to the user, locate **`path`** and two clicks, in the next window, click new and add the following variables:
134 * <code>C:\Users\<seu-usuário>\AppData\Roaming\Python\Python38\Scripts</code>
135 * <code>C:\Python38</code>
136 * <code>C:\Python38\Scripts</code>
137 * Don't forget to edit the path name, according to the location of your python installation.
138
139
140==NASM==
141 * Add ==NASM== to the environment variables as follows:
142 * Open the windows environment variable editor, for the variables corresponding to the user, locate **`path`** and two clicks, in the next window, click new and add the following path_name:
143 * <code>C:\Users\<your_user_name>\AppData\Local\efl\NASM</code>
144 * Do not forget to edit the path name, according to the location of your installation.
145
146==OpenSSL==
147 * Add the following environment variable for OpenSSL:
148 * Open the windows environment variable editor, for the variables corresponding to the user, click **NEW**:
149 * In **Variable name** add the following name:
150 * <code>OPENSSL_DIR</code>
151 * In **Variable value** add the following path:
152 * <code>C:\Users\<your_user_name>\AppData\Local\efl\openssl</code>
153 * do not forget to edit the path name, according to the location of your installation.
154
155
156
157==PCRE==
158 * Add the following environment variable for PCRE:
159
160 - Open the windows environment variable editor, for the variables corresponding to the user, click **NEW**:
161 * In **Variable name** add the following name:
162 *<code>REGEX_DIR</code>
163 * In **Variable value** add the following path:
164 *<code>C:\Users\<your_user_name>\AppData\Local\efl\pcre\lib</code>
165 *do not forget to edit the path name, according to the location of your installation.
166 - Open the windows environment variable editor, for the variables corresponding to the user, click **NEW**:
167 * In **Variable name** add the following name:
168 *<code>REGEX_INCLUDE_DIR</code>
169 * In **Variable value** add the following path:
170 *<code>C:\Users\<your_user_name>\AppData\Local\efl\pcre\include</code>
171 * Do not forget to edit the path name, according to the location of your installation.
172
173
174----
175
176===8 - Compiling the EFL===
177
178 * Choose a directory to clone **EFL NATIVE WINDOWS** files
179 > Search for directories that have no space in the name
180 * Clone the repository at: [[https://github.com/expertisesolutions/efl.git|Repositório Efl NAtive Windows]].
181 * Open a command prompt in the EFL directory, run the following command:
182 * <code>>configure.bat</code>
183 * If an error occurs in this step, enter the following command:
184 * <code>>"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"</code>
185 *[1] The path may vary depending on the version of Visual Studio used.
186 *[2] Try again, and if you still have errors, check the environment variables again, remember that at each modification it is necessary to restart the command prompt.
187 * After you finish executing **configure.bat** execute **build.bat**:
188 * <code>>build.bat</code> \ No newline at end of file