Project

General

Profile

Wt Tutorials ยป Komodo Wt Setup.html

Using Komodo Edit to make Wt Applications - Rafael Ray, 09/05/2016 09:12 AM

 
1
<html>
2

    
3
<head>
4
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
5
<meta name=Generator content="Microsoft Word 12 (filtered)">
6
<style>
7
<!--
8
 /* Font Definitions */
9
 @font-face
10
	{font-family:Wingdings;
11
	panose-1:5 0 0 0 0 0 0 0 0 0;}
12
@font-face
13
	{font-family:"Cambria Math";
14
	panose-1:2 4 5 3 5 4 6 3 2 4;}
15
@font-face
16
	{font-family:Calibri;
17
	panose-1:2 15 5 2 2 2 4 3 2 4;}
18
@font-face
19
	{font-family:"Trebuchet MS";
20
	panose-1:2 11 6 3 2 2 2 2 2 4;}
21
@font-face
22
	{font-family:Verdana;
23
	panose-1:2 11 6 4 3 5 4 4 2 4;}
24
 /* Style Definitions */
25
 p.MsoNormal, li.MsoNormal, div.MsoNormal
26
	{margin-top:0in;
27
	margin-right:0in;
28
	margin-bottom:10.0pt;
29
	margin-left:0in;
30
	line-height:115%;
31
	font-size:11.0pt;
32
	font-family:"Calibri","sans-serif";}
33
h1
34
	{mso-style-link:"Heading 1 Char";
35
	margin-right:0in;
36
	margin-left:0in;
37
	font-size:24.0pt;
38
	font-family:"Times New Roman","serif";
39
	font-weight:bold;}
40
h2
41
	{mso-style-link:"Heading 2 Char";
42
	margin-right:0in;
43
	margin-left:0in;
44
	font-size:18.0pt;
45
	font-family:"Times New Roman","serif";
46
	font-weight:bold;}
47
h3
48
	{mso-style-link:"Heading 3 Char";
49
	margin-right:0in;
50
	margin-left:0in;
51
	font-size:13.5pt;
52
	font-family:"Times New Roman","serif";
53
	font-weight:bold;}
54
a:link, span.MsoHyperlink
55
	{color:blue;
56
	text-decoration:underline;}
57
a:visited, span.MsoHyperlinkFollowed
58
	{color:purple;
59
	text-decoration:underline;}
60
p
61
	{margin-right:0in;
62
	margin-left:0in;
63
	font-size:12.0pt;
64
	font-family:"Times New Roman","serif";}
65
pre
66
	{mso-style-link:"HTML Preformatted Char";
67
	margin:0in;
68
	margin-bottom:.0001pt;
69
	font-size:10.0pt;
70
	font-family:"Courier New";}
71
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
72
	{margin-top:0in;
73
	margin-right:0in;
74
	margin-bottom:10.0pt;
75
	margin-left:.5in;
76
	line-height:115%;
77
	font-size:11.0pt;
78
	font-family:"Calibri","sans-serif";}
79
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
80
	{margin-top:0in;
81
	margin-right:0in;
82
	margin-bottom:0in;
83
	margin-left:.5in;
84
	margin-bottom:.0001pt;
85
	line-height:115%;
86
	font-size:11.0pt;
87
	font-family:"Calibri","sans-serif";}
88
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
89
	{margin-top:0in;
90
	margin-right:0in;
91
	margin-bottom:0in;
92
	margin-left:.5in;
93
	margin-bottom:.0001pt;
94
	line-height:115%;
95
	font-size:11.0pt;
96
	font-family:"Calibri","sans-serif";}
97
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
98
	{margin-top:0in;
99
	margin-right:0in;
100
	margin-bottom:10.0pt;
101
	margin-left:.5in;
102
	line-height:115%;
103
	font-size:11.0pt;
104
	font-family:"Calibri","sans-serif";}
105
span.Heading1Char
106
	{mso-style-name:"Heading 1 Char";
107
	mso-style-link:"Heading 1";
108
	font-family:"Times New Roman","serif";
109
	font-weight:bold;}
110
span.Heading2Char
111
	{mso-style-name:"Heading 2 Char";
112
	mso-style-link:"Heading 2";
113
	font-family:"Times New Roman","serif";
114
	font-weight:bold;}
115
span.Heading3Char
116
	{mso-style-name:"Heading 3 Char";
117
	mso-style-link:"Heading 3";
118
	font-family:"Times New Roman","serif";
119
	font-weight:bold;}
120
span.apple-converted-space
121
	{mso-style-name:apple-converted-space;}
122
span.HTMLPreformattedChar
123
	{mso-style-name:"HTML Preformatted Char";
124
	mso-style-link:"HTML Preformatted";
125
	font-family:"Courier New";}
126
.MsoPapDefault
127
	{margin-bottom:10.0pt;
128
	line-height:115%;}
129
@page WordSection1
130
	{size:8.5in 11.0in;
131
	margin:1.0in 1.0in 1.0in 1.0in;}
132
div.WordSection1
133
	{page:WordSection1;}
134
 /* List Definitions */
135
 ol
136
	{margin-bottom:0in;}
137
ul
138
	{margin-bottom:0in;}
139
-->
140
</style>
141

    
142
</head>
143

    
144
<body lang=EN-US link=blue vlink=purple>
145

    
146
<div class=WordSection1>
147

    
148
<p class=MsoNormal style='margin-bottom:7.5pt;line-height:normal;background:
149
white'><b><span style='font-size:15.0pt;font-family:"Trebuchet MS","sans-serif";
150
color:#555555'>Using Komodo Edit to make Wt Applications</span></b></p>
151

    
152
<p class=MsoNormal style='margin-bottom:7.5pt;line-height:normal;background:
153
white'><a name=Introduction></a><b><span style='font-size:12.0pt;font-family:
154
"Trebuchet MS","sans-serif";color:#555555'>Introduction</span></b></p>
155

    
156
<p class=MsoNormal style='line-height:normal;background:white'><span
157
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>This
158
is my introduction in how to use the Wt C++ library using Komodo Edit with Wt
159
and hopefully SOCI C++ to follow the tutorials on my YouTube page. I will also
160
post a link to my Google drive to download the files so you can modify them to
161
fit your setup. I have not tested them on another computer, so I hope this
162
works and would welcome any feedback.</span></p>
163

    
164
<p class=MsoNormal style='margin-bottom:7.5pt;line-height:normal;background:
165
white'><a name=What-is-CSS-and-why-do-we-need-it></a><b><span style='font-size:
166
12.0pt;font-family:"Trebuchet MS","sans-serif";color:#555555'>What do we need
167
to do?</span></b></p>
168

    
169
<p class=MsoNormal style='line-height:normal;background:white'><span
170
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>You
171
need Komodo Edit, either version 8.5.3 or 10.1. I have tried version 9, but
172
could not get it to work the way I wanted it to. </span></p>
173

    
174
<p class=MsoNormal style='line-height:normal;background:white'><span
175
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Next
176
you will need CMake version 3.0 or greater, which will be used as a build
177
system. I have used version 2.8 but I have not used it in a while, so try it at
178
your own risk.</span></p>
179

    
180
<p class=MsoNormal style='line-height:normal;background:white'><span
181
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Then
182
you will need these files from my Google drive: </span><a
183
href="https://drive.google.com/file/d/0B4dOxRq21jw6RWVtVHJPZXRPYms/view?usp=sharing"><span
184
style='font-size:9.0pt;font-family:"Verdana","sans-serif"'>https://drive.google.com/file/d/0B4dOxRq21jw6RWVtVHJPZXRPYms/view?usp=sharing</span></a></p>
185

    
186
<p class=MsoNormal style='line-height:normal;background:white'><span
187
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>You
188
will also need 7z to be able to extract the files. Just do a Google search. The
189
compression was much better than using a standard zip file. </span></p>
190

    
191
<p class=MsoNormal style='line-height:normal;background:white'><span
192
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>The 7z
193
file contains a standard Wt installation, in this case version 3.3.5. It also
194
contains boost 1.57. All the binaries are already built using MinGW-64.
195
MinGW-64 is also included in the 7z file, as well as SOCI C++. You do not have
196
to use SOCI, but if you do use it, you will need some additional files, like
197
MySQL.</span></p>
198

    
199
<p class=MsoNormal style='line-height:normal;background:white'><span
200
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>The
201
layout of the 7z is as follows:</span></p>
202

    
203
<p class=MsoNormal style='line-height:normal;background:white'><span
204
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Komodo</span></p>
205

    
206
<p class=MsoNormal style='line-height:normal;background:white'><span
207
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
208
CPP</span></p>
209

    
210
<p class=MsoNormal style='line-height:normal;background:white'><span
211
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
212
Build</span></p>
213

    
214
<p class=MsoNormal style='line-height:normal;background:white'><span
215
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
216
Product</span></p>
217

    
218
<p class=MsoNormal style='line-height:normal;background:white'><span
219
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
220
Source</span></p>
221

    
222
<p class=MsoNormal style='line-height:normal;background:white'><span
223
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
224
CMakeLists.txt</span></p>
225

    
226
<p class=MsoNormal style='line-height:normal;background:white'><span
227
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
228
Main.cpp</span></p>
229

    
230
<p class=MsoNormal style='line-height:normal;background:white'><span
231
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
232
SurpressGCCWarnings.h</span></p>
233

    
234
<p class=MsoNormal style='line-height:normal;background:white'><span
235
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
236
CMakeLists.txt</span></p>
237

    
238
<p class=MsoNormal style='line-height:normal;background:white'><span
239
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
240
SOCI</span></p>
241

    
242
<p class=MsoNormal style='line-height:normal;background:white'><span
243
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
244
Build</span></p>
245

    
246
<p class=MsoNormal style='line-height:normal;background:white'><span
247
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
248
Product</span></p>
249

    
250
<p class=MsoNormal style='line-height:normal;background:white'><span
251
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
252
Source</span></p>
253

    
254
<p class=MsoNormal style='line-height:normal;background:white'><span
255
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
256
Classes</span></p>
257

    
258
<p class=MsoNormal style='line-height:normal;background:white'><span
259
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
260
GCC</span></p>
261

    
262
<p class=MsoNormal style='line-height:normal;background:white'><span
263
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
264
SurpressGCCWarnings.h</span></p>
265

    
266
<p class=MsoNormal style='line-height:normal;background:white'><span
267
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
268
Libraries</span></p>
269

    
270
<p class=MsoNormal style='line-height:normal;background:white'><span
271
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???? ???????????FindBoost.cmake</span></p>
272

    
273
<p class=MsoNormal style='line-height:normal;background:white'><span
274
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
275
FindSOCI.cmake</span></p>
276

    
277
<p class=MsoNormal style='line-height:normal;background:white'><span
278
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
279
FindWt.cmake</span></p>
280

    
281
<p class=MsoNormal style='line-height:normal;background:white'><span
282
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
283
CMakeLists.txt</span></p>
284

    
285
<p class=MsoNormal style='line-height:normal;background:white'><span
286
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
287
Main.cpp</span></p>
288

    
289
<p class=MsoNormal style='line-height:normal;background:white'><span
290
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
291
CMakeLists.txt</span></p>
292

    
293
<p class=MsoNormal style='line-height:normal;background:white'><span
294
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
295
Tokenizer</span></p>
296

    
297
<p class=MsoNormal style='line-height:normal;background:white'><span
298
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
299
Tokenizer.cpp</span></p>
300

    
301
<p class=MsoNormal style='line-height:normal;background:white'><span
302
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
303
Tokenizer.h</span></p>
304

    
305
<p class=MsoNormal style='line-height:normal;background:white'><span
306
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
307
Tools</span></p>
308

    
309
<p class=MsoNormal style='line-height:normal;background:white'><span
310
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
311
CleanBuild.bat</span></p>
312

    
313
<p class=MsoNormal style='line-height:normal;background:white'><span
314
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
315
Compile.bat</span></p>
316

    
317
<p class=MsoNormal style='line-height:normal;background:white'><span
318
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
319
Debug.bat</span></p>
320

    
321
<p class=MsoNormal style='line-height:normal;background:white'><span
322
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
323
Run.bat</span></p>
324

    
325
<p class=MsoNormal style='line-height:normal;background:white'><span
326
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
327
Server.bat</span></p>
328

    
329
<p class=MsoNormal style='line-height:normal;background:white'><span
330
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>??? Wt</span></p>
331

    
332
<p class=MsoNormal style='line-height:normal;background:white'><span
333
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
334
Build</span></p>
335

    
336
<p class=MsoNormal style='line-height:normal;background:white'><span
337
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
338
Product</span></p>
339

    
340
<p class=MsoNormal style='line-height:normal;background:white'><span
341
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
342
Source</span></p>
343

    
344
<p class=MsoNormal style='line-height:normal;background:white'><span
345
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
346
Classes</span></p>
347

    
348
<p class=MsoNormal style='line-height:normal;background:white'><span
349
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
350
GCC</span></p>
351

    
352
<p class=MsoNormal style='line-height:normal;background:white'><span
353
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
354
SurpressGCCWarnings.h</span></p>
355

    
356
<p class=MsoNormal style='line-height:normal;background:white'><span
357
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
358
Libraries</span></p>
359

    
360
<p class=MsoNormal style='line-height:normal;background:white'><span
361
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
362
FindBoost.cmake</span></p>
363

    
364
<p class=MsoNormal style='line-height:normal;background:white'><span
365
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
366
FindSOCI.cmake</span></p>
367

    
368
<p class=MsoNormal style='line-height:normal;background:white'><span
369
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
370
FindWt.cmake</span></p>
371

    
372
<p class=MsoNormal style='line-height:normal;background:white'><span
373
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
374
CMakeLists.txt</span></p>
375

    
376
<p class=MsoNormal style='line-height:normal;background:white'><span
377
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
378
Main.cpp</span></p>
379

    
380
<p class=MsoNormal style='line-height:normal;background:white'><span
381
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
382
CMakeLists.txt</span></p>
383

    
384
<p class=MsoNormal style='line-height:normal;background:white'><span
385
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>??? Wt
386
Data</span></p>
387

    
388
<p class=MsoNormal style='line-height:normal;background:white'><span
389
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
390
Build</span></p>
391

    
392
<p class=MsoNormal style='line-height:normal;background:white'><span
393
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
394
Product</span></p>
395

    
396
<p class=MsoNormal style='line-height:normal;background:white'><span
397
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
398
Source</span></p>
399

    
400
<p class=MsoNormal style='line-height:normal;background:white'><span
401
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
402
Classes</span></p>
403

    
404
<p class=MsoNormal style='line-height:normal;background:white'><span
405
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
406
GCC</span></p>
407

    
408
<p class=MsoNormal style='line-height:normal;background:white'><span
409
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
410
SurpressGCCWarnings.h</span></p>
411

    
412
<p class=MsoNormal style='line-height:normal;background:white'><span
413
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
414
Libraries</span></p>
415

    
416
<p class=MsoNormal style='line-height:normal;background:white'><span
417
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
418
FindBoost.cmake</span></p>
419

    
420
<p class=MsoNormal style='line-height:normal;background:white'><span
421
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
422
FindSOCI.cmake</span></p>
423

    
424
<p class=MsoNormal style='line-height:normal;background:white'><span
425
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
426
FindWt.cmake</span></p>
427

    
428
<p class=MsoNormal style='line-height:normal;background:white'><span
429
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
430
CMakeLists.txt</span></p>
431

    
432
<p class=MsoNormal style='line-height:normal;background:white'><span
433
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
434
Main.cpp</span></p>
435

    
436
<p class=MsoNormal style='line-height:normal;background:white'><span
437
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
438
CMakeLists.txt</span></p>
439

    
440
<p class=MsoNormal style='line-height:normal;background:white'><span
441
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>mingw64</span></p>
442

    
443
<p class=MsoNormal style='line-height:normal;background:white'><span
444
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
445
...all mingw tools like compiler, debugger</span></p>
446

    
447
<p class=MsoNormal style='line-height:normal;background:white'><span
448
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>SOCI</span></p>
449

    
450
<p class=MsoNormal style='line-height:normal;background:white'><span
451
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
452
...SOCI C++ headers and libraries made by MinGW-64</span></p>
453

    
454
<p class=MsoNormal style='line-height:normal;background:white'><span
455
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>wt</span></p>
456

    
457
<p class=MsoNormal style='line-height:normal;background:white'><span
458
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
459
boost</span></p>
460

    
461
<p class=MsoNormal style='line-height:normal;background:white'><span
462
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
463
...Boost headers</span></p>
464

    
465
<p class=MsoNormal style='line-height:normal;background:white'><span
466
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
467
headers</span></p>
468

    
469
<p class=MsoNormal style='line-height:normal;background:white'><span
470
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
471
...Wt headers and CMake files</span></p>
472

    
473
<p class=MsoNormal style='line-height:normal;background:white'><span
474
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
475
libs</span></p>
476

    
477
<p class=MsoNormal style='line-height:normal;background:white'><span
478
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
479
...Boost 1.57 libraries and Wt 3.3.5 libraries</span></p>
480

    
481
<p class=MsoNormal style='line-height:normal;background:white'><span
482
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>The
483
layout looks intimidating, but it really is simple. The Komodo folder contains
484
basic C++, Wt, and SOCI templates. The mingw folder contains the mingw compiler
485
and debug tools. The SOCI folder contains SOCI C++, if you want to use it. The
486
wt folder contains the Wt C++ installation using MinGW. Now that you see the
487
layout of the environment, let?s make some changes. </span></p>
488

    
489
<p class=MsoNormal style='line-height:normal;background:white'><span
490
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>First
491
you need to install Komodo Edit. In my earlier videos I used version 8.5.3, but
492
now I use version 10.1</span></p>
493

    
494
<p class=MsoNormal style='line-height:normal;background:white'><span
495
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Next
496
you will need to install CMake. You can add to your system path but we will be
497
adding to our path using Komodo Edit.</span></p>
498

    
499
<p class=MsoNormal style='line-height:normal;background:white'><span
500
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Start
501
up Komodo Edit and go under Edit-&gt;Preferences-&gt;Environment. This will set
502
your environment variables in Komodo Edit without having to do it in Windows. I
503
am using Windows 7 and Window 2008 Server R2. It should work in later versions
504
of Windows. </span></p>
505

    
506
<p class=MsoNormal style='line-height:normal;background:white'><span
507
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Now
508
click the <u>N</u>ew? button to add a new environment variable. We will name it
509
CMAKE. My default installation path was ?C:\Program Files (x86)\CMake\bin?. Set
510
it to your CMake install directory. This will tell Komodo Edit where to find
511
CMake.</span></p>
512

    
513
<p class=MsoNormal style='line-height:normal;background:white'><span
514
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Next
515
find the PATH environment variable and double-click it. It will add it to the
516
User environment variable list. We want to override the PATH so Komodo Edit can
517
see it. Add the path of the MinGW bin directories ?C:\Environment\mingw64\i686-w64-mingw32\bin;C:\Environment\mingw64\bin;?.
518
The Environment folder can be any folder you decided to extract the 7z file
519
into. This allows Komodo Edit to find the make program and the MinGW gcc and
520
g++ compilers as well as the linker and debugger. Click ?OK? to save the
521
changes. Click ?OK? again to close the preferences dialog.</span></p>
522

    
523
<p class=MsoNormal style='line-height:normal;background:white'><span
524
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Next,
525
if the right pane is not open, click on the right pane icon to open it. Then
526
right click to bring up the context menu. Click on ?Add?? and then ?New Custom
527
Toolbar?. When the dialog comes up, give the toolbar a name. I named mine ?Build?.
528
We will add the following toolbar items:</span></p>
529

    
530
<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;line-height:normal;
531
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
532
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
533
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
534
color:#484848'>Clean Project (already discussed)</span></p>
535

    
536
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
537
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
538
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
539
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
540
color:#484848'>Compile</span></p>
541

    
542
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
543
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
544
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
545
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
546
color:#484848'>Debug</span></p>
547

    
548
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
549
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
550
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
551
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
552
color:#484848'>Run</span></p>
553

    
554
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
555
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
556
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
557
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
558
color:#484848'>Run CMake</span></p>
559

    
560
<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;line-height:normal;
561
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
562
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
563
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
564
color:#484848'>Witty Server</span></p>
565

    
566
<p class=MsoNormal style='line-height:normal;background:white'><span
567
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Once
568
you do this for one command, you can do it for all of them, including the
569
project templates. Right click on the Build toolbar. Click on ?Add Command?.
570
When the dialog comes up, enter an new command name. The first one is called ?Clean
571
Project?. Click on ?C<u>h</u>ange Icon?? and change the type of icons to ?FamFamFam
572
Silk Icons (1000). All the icons are listed alphabetically. Find the icon named
573
?bin_empty?. Click ?<u>O</u>K?. Now that adds our icon. Now in the Command
574
dropdown box, you can either enter a batch command or a file to a batch
575
command. We will add a file to a batch command. The batch files are part of the
576
7z file download. According to the layout, enter the path ?C:\Environment\Komodo\Tools\CleanBuild.bat?.
577
All the batch files are in the ?Environment\Komodo\Tools? folder. The
578
Environment folder is where I extracted my files, yours could be different. The
579
path needs to be put in parentheses. Now click on the start in arrow icon
580
(shortcuts) and click on the ?%p : directory path of the active project file?.
581
This enables to any batch file that is executed to be executed in the active
582
open project. So we can clean projects, run make files, compile, debug, and so
583
on in the active project file. All this is possible through Komodo Edit. We
584
will keep the ?Run in:? dropdown box the same of ?Command Output Tab? so the
585
output will be in the bottom pane. Then click ?OK?. Don?t worry about how the
586
batch file works.</span></p>
587

    
588
<p class=MsoNormal style='line-height:normal;background:white'><span
589
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>We
590
will add the following Komodo commands (Project Templates)</span></p>
591

    
592
<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;line-height:normal;
593
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
594
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
595
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
596
color:#484848'>C++ Project (already discussed)</span></p>
597

    
598
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
599
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
600
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
601
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
602
color:#484848'>SOCI Project</span></p>
603

    
604
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
605
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
606
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
607
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
608
color:#484848'>Wt Data Project</span></p>
609

    
610
<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;line-height:normal;
611
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
612
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
613
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
614
color:#484848'>Wt Project</span></p>
615

    
616
<p class=MsoNormal style='line-height:normal;background:white'><span
617
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>You
618
will repeat the same process for five more of these with some differences
619
between two of them.</span></p>
620

    
621
<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;line-height:normal;
622
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
623
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
624
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
625
color:#484848'>Command name: Compile, Debug, Run, Run CMake, Witty Server</span></p>
626

    
627
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
628
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
629
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
630
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
631
color:#484848'>Command: &quot;C:\Environment\Komodo\Tools\Compile.bat&quot;, &quot;C:\Environment\Komodo\Tools\Debug.bat&quot;,
632
&quot;C:\Environment\Komodo\Tools\Run.bat&quot;, ?&lt;different from the rest,
633
see below&gt;?, &quot;C:\Environment\Komodo\Tools\Server.bat&quot;</span></p>
634

    
635
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
636
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
637
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
638
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
639
color:#484848'>Start in: %p for all except ?Run CMake? command. It should be
640
%p/Build</span></p>
641

    
642
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
643
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
644
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
645
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
646
color:#484848'>Run in: Command Output Tab for all except for ?Debug? and ?Witty
647
Server?. Those two should be set to New Console</span></p>
648

    
649
<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;line-height:normal;
650
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
651
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
652
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
653
color:#484848'>C<u>h</u>ange Icon? for each of these are all in the ?FamFamFam
654
Silk Icons? unless noted. build, application_xp_terminal, play_green,
655
disc-label (this is in ?fugue icons?), browser_omniweb</span></p>
656

    
657
<p class=MsoNormal style='line-height:normal;background:white'><span
658
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>*Now
659
the Start in: dropdown box for ?Run CMake? should be set to this command: cmake
660
.. -G &quot;MinGW Makefiles&quot; -DCMAKE_BUILD_TYPE=Debug</span></p>
661

    
662
<p class=MsoNormal style='line-height:normal;background:white'><span
663
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>The
664
project templates are the same. Instead of a toolbar, right click on the right
665
pane and click on ?New Folder? and name it ?Projects?. Right click on the Projects
666
folder and click on add ?New Command?. When the dialog comes up, enter a new
667
command name. The first one is called ?C++ Project?. Click on ?C<u>h</u>ange
668
Icon?? and change the type of icons to ?FamFamFam Silk Icons (1000). This time
669
find the icon named ?application_add? and click ?<u>O</u>K?. Now lets add a new
670
command:</span></p>
671

    
672
<p class=MsoListParagraph style='text-indent:-.25in;line-height:normal;
673
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
674
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
675
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
676
color:#484848'>xcopy &quot;</span> <span style='font-size:9.0pt;font-family:
677
"Verdana","sans-serif";color:#484848'>C:\Environment\Komodo\CPP&quot; /e</span></p>
678

    
679
<p class=MsoNormal style='line-height:normal;background:white'><span
680
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Again,
681
the Environment folder is dependent upon where you extract the 7z file. The <u>S</u>tart
682
in: dropdown box value should be %p. The Run in: dropdown should stay the same,
683
Command Output Tab. Click <u>O</u>K.</span></p>
684

    
685
<p class=MsoNormal style='line-height:normal;background:white'><span
686
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Again,
687
you will repeat the same process for the same templates. The differences will
688
only be the commands:</span></p>
689

    
690
<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;line-height:normal;
691
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
692
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
693
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
694
color:#484848'>Command name: SOCI Project, Wt Data Project, Wt Project</span></p>
695

    
696
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
697
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
698
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
699
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
700
color:#484848'>Command: xcopy &quot; C:\Environment\Komodo\SOCI&quot; /e, xcopy
701
&quot; C:\Environment\Komodo\</span> <span style='font-size:9.0pt;font-family:
702
"Verdana","sans-serif";color:#484848'>Wt Data&quot; /e, xcopy &quot; C:\Environment\Komodo\</span>
703
<span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Wt&quot;
704
/e, </span></p>
705

    
706
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
707
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
708
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
709
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
710
color:#484848'>Start in: %p for all templates</span></p>
711

    
712
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
713
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
714
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
715
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
716
color:#484848'>Run in: Command Output Tab for all templates</span></p>
717

    
718
<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;line-height:normal;
719
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
720
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
721
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
722
color:#484848'>C<u>h</u>ange Icon? for all templates is application_add under
723
the ?FamFamFam Silk Icons (1000)?.</span></p>
724

    
725
<p class=MsoNormal style='line-height:normal;background:white'><span
726
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>For
727
now you can ignore the SOCI Project template and Wt Data Project template, as I
728
am still testing it out. I have just added them for your convenience. </span></p>
729

    
730
<p class=MsoNormal style='line-height:normal;background:white'><span
731
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>I will
732
also post a link to the YouTube video of how to add this setup as well. For
733
now, most of my tutorials are focus on really basic elements of the Wt library
734
and elements of C++. Check out my channel <a
735
href="https://www.youtube.com/channel/UCV6i0irLVAgHRjd2PnWrj9Q">https://www.youtube.com/channel/UCV6i0irLVAgHRjd2PnWrj9Q</a>
736
. I think this will help people who need to see visually how to get started
737
with Wt C++. This is the Windows version. Hopefully, I can do a Mac version
738
when I have time. I have already tested it in Komodo Edit 8.5.3 on Mac OS X.
739
The installation is similar but I have not tried it with Komodo 10.1 yet.</span></p>
740

    
741
<p class=MsoNormal style='line-height:normal;background:white'><span
742
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Rafael</span></p>
743

    
744
</div>
745

    
746
</body>
747

    
748
</html>
    (1-1/1)