|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
|
|
<meta name=Generator content="Microsoft Word 12 (filtered)">
|
|
<style>
|
|
<!--
|
|
/* Font Definitions */
|
|
@font-face
|
|
{font-family:Wingdings;
|
|
panose-1:5 0 0 0 0 0 0 0 0 0;}
|
|
@font-face
|
|
{font-family:"Cambria Math";
|
|
panose-1:2 4 5 3 5 4 6 3 2 4;}
|
|
@font-face
|
|
{font-family:Calibri;
|
|
panose-1:2 15 5 2 2 2 4 3 2 4;}
|
|
@font-face
|
|
{font-family:"Trebuchet MS";
|
|
panose-1:2 11 6 3 2 2 2 2 2 4;}
|
|
@font-face
|
|
{font-family:Verdana;
|
|
panose-1:2 11 6 4 3 5 4 4 2 4;}
|
|
/* Style Definitions */
|
|
p.MsoNormal, li.MsoNormal, div.MsoNormal
|
|
{margin-top:0in;
|
|
margin-right:0in;
|
|
margin-bottom:10.0pt;
|
|
margin-left:0in;
|
|
line-height:115%;
|
|
font-size:11.0pt;
|
|
font-family:"Calibri","sans-serif";}
|
|
h1
|
|
{mso-style-link:"Heading 1 Char";
|
|
margin-right:0in;
|
|
margin-left:0in;
|
|
font-size:24.0pt;
|
|
font-family:"Times New Roman","serif";
|
|
font-weight:bold;}
|
|
h2
|
|
{mso-style-link:"Heading 2 Char";
|
|
margin-right:0in;
|
|
margin-left:0in;
|
|
font-size:18.0pt;
|
|
font-family:"Times New Roman","serif";
|
|
font-weight:bold;}
|
|
h3
|
|
{mso-style-link:"Heading 3 Char";
|
|
margin-right:0in;
|
|
margin-left:0in;
|
|
font-size:13.5pt;
|
|
font-family:"Times New Roman","serif";
|
|
font-weight:bold;}
|
|
a:link, span.MsoHyperlink
|
|
{color:blue;
|
|
text-decoration:underline;}
|
|
a:visited, span.MsoHyperlinkFollowed
|
|
{color:purple;
|
|
text-decoration:underline;}
|
|
p
|
|
{margin-right:0in;
|
|
margin-left:0in;
|
|
font-size:12.0pt;
|
|
font-family:"Times New Roman","serif";}
|
|
pre
|
|
{mso-style-link:"HTML Preformatted Char";
|
|
margin:0in;
|
|
margin-bottom:.0001pt;
|
|
font-size:10.0pt;
|
|
font-family:"Courier New";}
|
|
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
|
|
{margin-top:0in;
|
|
margin-right:0in;
|
|
margin-bottom:10.0pt;
|
|
margin-left:.5in;
|
|
line-height:115%;
|
|
font-size:11.0pt;
|
|
font-family:"Calibri","sans-serif";}
|
|
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
|
|
{margin-top:0in;
|
|
margin-right:0in;
|
|
margin-bottom:0in;
|
|
margin-left:.5in;
|
|
margin-bottom:.0001pt;
|
|
line-height:115%;
|
|
font-size:11.0pt;
|
|
font-family:"Calibri","sans-serif";}
|
|
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
|
|
{margin-top:0in;
|
|
margin-right:0in;
|
|
margin-bottom:0in;
|
|
margin-left:.5in;
|
|
margin-bottom:.0001pt;
|
|
line-height:115%;
|
|
font-size:11.0pt;
|
|
font-family:"Calibri","sans-serif";}
|
|
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
|
|
{margin-top:0in;
|
|
margin-right:0in;
|
|
margin-bottom:10.0pt;
|
|
margin-left:.5in;
|
|
line-height:115%;
|
|
font-size:11.0pt;
|
|
font-family:"Calibri","sans-serif";}
|
|
span.Heading1Char
|
|
{mso-style-name:"Heading 1 Char";
|
|
mso-style-link:"Heading 1";
|
|
font-family:"Times New Roman","serif";
|
|
font-weight:bold;}
|
|
span.Heading2Char
|
|
{mso-style-name:"Heading 2 Char";
|
|
mso-style-link:"Heading 2";
|
|
font-family:"Times New Roman","serif";
|
|
font-weight:bold;}
|
|
span.Heading3Char
|
|
{mso-style-name:"Heading 3 Char";
|
|
mso-style-link:"Heading 3";
|
|
font-family:"Times New Roman","serif";
|
|
font-weight:bold;}
|
|
span.apple-converted-space
|
|
{mso-style-name:apple-converted-space;}
|
|
span.HTMLPreformattedChar
|
|
{mso-style-name:"HTML Preformatted Char";
|
|
mso-style-link:"HTML Preformatted";
|
|
font-family:"Courier New";}
|
|
.MsoPapDefault
|
|
{margin-bottom:10.0pt;
|
|
line-height:115%;}
|
|
@page WordSection1
|
|
{size:8.5in 11.0in;
|
|
margin:1.0in 1.0in 1.0in 1.0in;}
|
|
div.WordSection1
|
|
{page:WordSection1;}
|
|
/* List Definitions */
|
|
ol
|
|
{margin-bottom:0in;}
|
|
ul
|
|
{margin-bottom:0in;}
|
|
-->
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body lang=EN-US link=blue vlink=purple>
|
|
|
|
<div class=WordSection1>
|
|
|
|
<p class=MsoNormal style='margin-bottom:7.5pt;line-height:normal;background:
|
|
white'><b><span style='font-size:15.0pt;font-family:"Trebuchet MS","sans-serif";
|
|
color:#555555'>Using Komodo Edit to make Wt Applications</span></b></p>
|
|
|
|
<p class=MsoNormal style='margin-bottom:7.5pt;line-height:normal;background:
|
|
white'><a name=Introduction></a><b><span style='font-size:12.0pt;font-family:
|
|
"Trebuchet MS","sans-serif";color:#555555'>Introduction</span></b></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>This
|
|
is my introduction in how to use the Wt C++ library using Komodo Edit with Wt
|
|
and hopefully SOCI C++ to follow the tutorials on my YouTube page. I will also
|
|
post a link to my Google drive to download the files so you can modify them to
|
|
fit your setup. I have not tested them on another computer, so I hope this
|
|
works and would welcome any feedback.</span></p>
|
|
|
|
<p class=MsoNormal style='margin-bottom:7.5pt;line-height:normal;background:
|
|
white'><a name=What-is-CSS-and-why-do-we-need-it></a><b><span style='font-size:
|
|
12.0pt;font-family:"Trebuchet MS","sans-serif";color:#555555'>What do we need
|
|
to do?</span></b></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>You
|
|
need Komodo Edit, either version 8.5.3 or 10.1. I have tried version 9, but
|
|
could not get it to work the way I wanted it to. </span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Next
|
|
you will need CMake version 3.0 or greater, which will be used as a build
|
|
system. I have used version 2.8 but I have not used it in a while, so try it at
|
|
your own risk.</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Then
|
|
you will need these files from my Google drive: </span><a
|
|
href="https://drive.google.com/file/d/0B4dOxRq21jw6RWVtVHJPZXRPYms/view?usp=sharing"><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif"'>https://drive.google.com/file/d/0B4dOxRq21jw6RWVtVHJPZXRPYms/view?usp=sharing</span></a></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>You
|
|
will also need 7z to be able to extract the files. Just do a Google search. The
|
|
compression was much better than using a standard zip file. </span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>The 7z
|
|
file contains a standard Wt installation, in this case version 3.3.5. It also
|
|
contains boost 1.57. All the binaries are already built using MinGW-64.
|
|
MinGW-64 is also included in the 7z file, as well as SOCI C++. You do not have
|
|
to use SOCI, but if you do use it, you will need some additional files, like
|
|
MySQL.</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>The
|
|
layout of the 7z is as follows:</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Komodo</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
CPP</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Build</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Product</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Source</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
CMakeLists.txt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Main.cpp</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
SurpressGCCWarnings.h</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
CMakeLists.txt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
SOCI</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
Build</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Product</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Source</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Classes</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
GCC</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
SurpressGCCWarnings.h</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Libraries</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???? ???????????FindBoost.cmake</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
FindSOCI.cmake</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
FindWt.cmake</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
CMakeLists.txt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Main.cpp</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
CMakeLists.txt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
Tokenizer</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Tokenizer.cpp</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Tokenizer.h</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
Tools</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
CleanBuild.bat</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Compile.bat</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Debug.bat</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Run.bat</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Server.bat</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>??? Wt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Build</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Product</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Source</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Classes</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
GCC</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
SurpressGCCWarnings.h</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Libraries</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
FindBoost.cmake</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
FindSOCI.cmake</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
FindWt.cmake</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
CMakeLists.txt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Main.cpp</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
CMakeLists.txt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>??? Wt
|
|
Data</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Build</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Product</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
Source</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Classes</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
GCC</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
SurpressGCCWarnings.h</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Libraries</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
FindBoost.cmake</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
FindSOCI.cmake</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????????
|
|
FindWt.cmake</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
CMakeLists.txt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????????
|
|
Main.cpp</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
CMakeLists.txt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>mingw64</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
...all mingw tools like compiler, debugger</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>SOCI</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
...SOCI C++ headers and libraries made by MinGW-64</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>wt</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
boost</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
...Boost headers</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
headers</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
...Wt headers and CMake files</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???
|
|
libs</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>???????
|
|
...Boost 1.57 libraries and Wt 3.3.5 libraries</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>The
|
|
layout looks intimidating, but it really is simple. The Komodo folder contains
|
|
basic C++, Wt, and SOCI templates. The mingw folder contains the mingw compiler
|
|
and debug tools. The SOCI folder contains SOCI C++, if you want to use it. The
|
|
wt folder contains the Wt C++ installation using MinGW. Now that you see the
|
|
layout of the environment, let?s make some changes. </span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>First
|
|
you need to install Komodo Edit. In my earlier videos I used version 8.5.3, but
|
|
now I use version 10.1</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Next
|
|
you will need to install CMake. You can add to your system path but we will be
|
|
adding to our path using Komodo Edit.</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Start
|
|
up Komodo Edit and go under Edit->Preferences->Environment. This will set
|
|
your environment variables in Komodo Edit without having to do it in Windows. I
|
|
am using Windows 7 and Window 2008 Server R2. It should work in later versions
|
|
of Windows. </span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Now
|
|
click the <u>N</u>ew? button to add a new environment variable. We will name it
|
|
CMAKE. My default installation path was ?C:\Program Files (x86)\CMake\bin?. Set
|
|
it to your CMake install directory. This will tell Komodo Edit where to find
|
|
CMake.</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Next
|
|
find the PATH environment variable and double-click it. It will add it to the
|
|
User environment variable list. We want to override the PATH so Komodo Edit can
|
|
see it. Add the path of the MinGW bin directories ?C:\Environment\mingw64\i686-w64-mingw32\bin;C:\Environment\mingw64\bin;?.
|
|
The Environment folder can be any folder you decided to extract the 7z file
|
|
into. This allows Komodo Edit to find the make program and the MinGW gcc and
|
|
g++ compilers as well as the linker and debugger. Click ?OK? to save the
|
|
changes. Click ?OK? again to close the preferences dialog.</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Next,
|
|
if the right pane is not open, click on the right pane icon to open it. Then
|
|
right click to bring up the context menu. Click on ?Add?? and then ?New Custom
|
|
Toolbar?. When the dialog comes up, give the toolbar a name. I named mine ?Build?.
|
|
We will add the following toolbar items:</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Clean Project (already discussed)</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Compile</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Debug</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Run</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Run CMake</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Witty Server</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Once
|
|
you do this for one command, you can do it for all of them, including the
|
|
project templates. Right click on the Build toolbar. Click on ?Add Command?.
|
|
When the dialog comes up, enter an new command name. The first one is called ?Clean
|
|
Project?. Click on ?C<u>h</u>ange Icon?? and change the type of icons to ?FamFamFam
|
|
Silk Icons (1000). All the icons are listed alphabetically. Find the icon named
|
|
?bin_empty?. Click ?<u>O</u>K?. Now that adds our icon. Now in the Command
|
|
dropdown box, you can either enter a batch command or a file to a batch
|
|
command. We will add a file to a batch command. The batch files are part of the
|
|
7z file download. According to the layout, enter the path ?C:\Environment\Komodo\Tools\CleanBuild.bat?.
|
|
All the batch files are in the ?Environment\Komodo\Tools? folder. The
|
|
Environment folder is where I extracted my files, yours could be different. The
|
|
path needs to be put in parentheses. Now click on the start in arrow icon
|
|
(shortcuts) and click on the ?%p : directory path of the active project file?.
|
|
This enables to any batch file that is executed to be executed in the active
|
|
open project. So we can clean projects, run make files, compile, debug, and so
|
|
on in the active project file. All this is possible through Komodo Edit. We
|
|
will keep the ?Run in:? dropdown box the same of ?Command Output Tab? so the
|
|
output will be in the bottom pane. Then click ?OK?. Don?t worry about how the
|
|
batch file works.</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>We
|
|
will add the following Komodo commands (Project Templates)</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>C++ Project (already discussed)</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>SOCI Project</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Wt Data Project</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Wt Project</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>You
|
|
will repeat the same process for five more of these with some differences
|
|
between two of them.</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Command name: Compile, Debug, Run, Run CMake, Witty Server</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Command: "C:\Environment\Komodo\Tools\Compile.bat", "C:\Environment\Komodo\Tools\Debug.bat",
|
|
"C:\Environment\Komodo\Tools\Run.bat", ?<different from the rest,
|
|
see below>?, "C:\Environment\Komodo\Tools\Server.bat"</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Start in: %p for all except ?Run CMake? command. It should be
|
|
%p/Build</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Run in: Command Output Tab for all except for ?Debug? and ?Witty
|
|
Server?. Those two should be set to New Console</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>C<u>h</u>ange Icon? for each of these are all in the ?FamFamFam
|
|
Silk Icons? unless noted. build, application_xp_terminal, play_green,
|
|
disc-label (this is in ?fugue icons?), browser_omniweb</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>*Now
|
|
the Start in: dropdown box for ?Run CMake? should be set to this command: cmake
|
|
.. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>The
|
|
project templates are the same. Instead of a toolbar, right click on the right
|
|
pane and click on ?New Folder? and name it ?Projects?. Right click on the Projects
|
|
folder and click on add ?New Command?. When the dialog comes up, enter a new
|
|
command name. The first one is called ?C++ Project?. Click on ?C<u>h</u>ange
|
|
Icon?? and change the type of icons to ?FamFamFam Silk Icons (1000). This time
|
|
find the icon named ?application_add? and click ?<u>O</u>K?. Now lets add a new
|
|
command:</span></p>
|
|
|
|
<p class=MsoListParagraph style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>xcopy "</span> <span style='font-size:9.0pt;font-family:
|
|
"Verdana","sans-serif";color:#484848'>C:\Environment\Komodo\CPP" /e</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Again,
|
|
the Environment folder is dependent upon where you extract the 7z file. The <u>S</u>tart
|
|
in: dropdown box value should be %p. The Run in: dropdown should stay the same,
|
|
Command Output Tab. Click <u>O</u>K.</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Again,
|
|
you will repeat the same process for the same templates. The differences will
|
|
only be the commands:</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Command name: SOCI Project, Wt Data Project, Wt Project</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Command: xcopy " C:\Environment\Komodo\SOCI" /e, xcopy
|
|
" C:\Environment\Komodo\</span> <span style='font-size:9.0pt;font-family:
|
|
"Verdana","sans-serif";color:#484848'>Wt Data" /e, xcopy " C:\Environment\Komodo\</span>
|
|
<span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Wt"
|
|
/e, </span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Start in: %p for all templates</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpMiddle style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>Run in: Command Output Tab for all templates</span></p>
|
|
|
|
<p class=MsoListParagraphCxSpLast style='text-indent:-.25in;line-height:normal;
|
|
background:white'><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>-<span style='font:7.0pt "Times New Roman"'>
|
|
</span></span><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";
|
|
color:#484848'>C<u>h</u>ange Icon? for all templates is application_add under
|
|
the ?FamFamFam Silk Icons (1000)?.</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>For
|
|
now you can ignore the SOCI Project template and Wt Data Project template, as I
|
|
am still testing it out. I have just added them for your convenience. </span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>I will
|
|
also post a link to the YouTube video of how to add this setup as well. For
|
|
now, most of my tutorials are focus on really basic elements of the Wt library
|
|
and elements of C++. Check out my channel <a
|
|
href="https://www.youtube.com/channel/UCV6i0irLVAgHRjd2PnWrj9Q">https://www.youtube.com/channel/UCV6i0irLVAgHRjd2PnWrj9Q</a>
|
|
. I think this will help people who need to see visually how to get started
|
|
with Wt C++. This is the Windows version. Hopefully, I can do a Mac version
|
|
when I have time. I have already tested it in Komodo Edit 8.5.3 on Mac OS X.
|
|
The installation is similar but I have not tried it with Komodo 10.1 yet.</span></p>
|
|
|
|
<p class=MsoNormal style='line-height:normal;background:white'><span
|
|
style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#484848'>Rafael</span></p>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|