transactd 2.4.0-x86-mswin32-100 → 2.4.2-x86-mswin32-100
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/BUILD_UNIX-JA.md +37 -29
- data/BUILD_WIN-JA.md +96 -69
- data/CMakeLists.txt +7 -17
- data/README-JA.md +22 -17
- data/README.md +23 -16
- data/{RELEASE_NOTE-JA → RELEASE_NOTE-JA.md} +163 -98
- data/{RELEASE_NOTE → RELEASE_NOTE.md} +165 -99
- data/bin/1.9/transactd.so +0 -0
- data/bin/2.0/transactd.so +0 -0
- data/bin/2.1/transactd.so +0 -0
- data/bin/2.2/transactd.so +0 -0
- data/bin/common/tdclc_32_2_4.dll +0 -0
- data/bin/common/tdclcpp_vc100_32mr_2_4.dll +0 -0
- data/build/common/system.cmake +6 -4
- data/build/tdclrb/gem/Makefile.win32-VS +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8f68e473b42dfa80964965fd213fa90b6909d95
|
4
|
+
data.tar.gz: 992d3266ef36836ccde10f80eabbd4bbdd8a6a42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d89dc948a7c6a51d1e833df86e61d120588add4ef5a2e917090f1cc9b98be507b372f44ddd749a46cbbc49d7d121c3a18abcaa943de4db14689368fdc5f31037
|
7
|
+
data.tar.gz: a0747820eb08e955fdc11fe5f5a641a1d48d6615e741cef49638b8fd83c5f24b45f48d204339590372ce1a188a655aced4239bef7df13952fee94c86b2b28984
|
data/BUILD_UNIX-JA.md
CHANGED
@@ -7,12 +7,11 @@ Transactd Plugin および Transactd クライアントは、Unix上のGCC(64bit
|
|
7
7
|
でビルドできます。ここでは、以下の環境でのビルドを想定して進めます。
|
8
8
|
|
9
9
|
* Ubuntu 12.10 x86_64
|
10
|
-
* gcc 4.
|
10
|
+
* gcc 4.4.6
|
11
11
|
|
12
|
-
ビルドにはgccバージョン4.4
|
12
|
+
ビルドにはCMake 2.8.12以上、gccバージョン4.4.6以上、boost 1.58(以上)が必須です。
|
13
13
|
また、CentOS(GCC4.4以上 or clang LLVM 3.4)、Mac OS X 10.9(GCC4.4以上
|
14
|
-
|
15
|
-
|
14
|
+
または Xcode5.1 LLVM 3.4)でも同様にビルドできます。
|
16
15
|
|
17
16
|
|
18
17
|
2. CMakeのインストール
|
@@ -38,13 +37,13 @@ Mac OS Xでは、バイナリ配布をアプリケーションフォルダにイ
|
|
38
37
|
ソースコードをダウンロードし、解凍します。
|
39
38
|
```
|
40
39
|
cd ~
|
41
|
-
wget http://sourceforge.net/projects/boost/files/boost/1.
|
42
|
-
tar xzf
|
40
|
+
wget http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz/download -O boost_1_58_0.tar.gz
|
41
|
+
tar xzf boost_1_58_0.tar.gz
|
43
42
|
```
|
44
43
|
|
45
44
|
以下のコマンドを実行しBoostのビルドを行います。
|
46
45
|
```
|
47
|
-
cd ~/
|
46
|
+
cd ~/boost_1_58_0
|
48
47
|
./bootstrap.sh --with-libraries=chrono,filesystem,system,thread,timer,serialization,program_options
|
49
48
|
./b2 cxxflags=-fPIC
|
50
49
|
```
|
@@ -60,8 +59,8 @@ cd ~/boost_1_54_0
|
|
60
59
|
からソースコードをダウンロードし、解凍します。
|
61
60
|
```
|
62
61
|
cd ~
|
63
|
-
wget http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.
|
64
|
-
tar xzf mysql-5.6.
|
62
|
+
wget http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.25.tar.gz
|
63
|
+
tar xzf mysql-5.6.25.tar.gz
|
65
64
|
```
|
66
65
|
|
67
66
|
|
@@ -73,24 +72,33 @@ tar xzf mysql-5.6.20.tar.gz
|
|
73
72
|
pluginディレクトリに展開します。
|
74
73
|
```
|
75
74
|
cd ~
|
76
|
-
wget http://www.bizstation.jp/al/transactd/download/transactd-2.4.
|
75
|
+
wget http://www.bizstation.jp/al/transactd/download/transactd-2.4.2/transactd-source-2.4.2.zip
|
77
76
|
#Mac OS Xでは
|
78
|
-
#curl -O http://www.bizstation.jp/al/transactd/download/transactd-2.4.
|
79
|
-
unzip -q transactd-source-2.4.
|
80
|
-
mv transactd ~/mysql-5.6.
|
77
|
+
#curl -O http://www.bizstation.jp/al/transactd/download/transactd-2.4.2/transactd-source-2.4.2.zip
|
78
|
+
unzip -q transactd-source-2.4.2.zip -d transactd
|
79
|
+
mv transactd ~/mysql-5.6.25/plugin/
|
81
80
|
```
|
82
81
|
|
83
82
|
|
84
83
|
### 4-3 CMakeの実行
|
85
|
-
|
86
|
-
```
|
87
|
-
cd ~/mysql-5.6.
|
88
|
-
mkdir
|
89
|
-
cd
|
90
|
-
cmake .. -
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
84
|
+
MySQL 5.5/5.6 MariaDB 5.5/10.0の場合は以下のコマンドを実行します。オプションの意味はコマンドの後に記載しています。
|
85
|
+
```
|
86
|
+
cd ~/mysql-5.6.25
|
87
|
+
mkdir x64
|
88
|
+
cd x64
|
89
|
+
cmake .. -DBOOST_ROOT=~/boost_1_58_0 \
|
90
|
+
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.6.25 \
|
91
|
+
-DTRANSACTD_CLIENTS_PREFIX=/usr/lib \
|
92
|
+
-DTRANSACTD_PREFIX=/usr/local/transactd
|
93
|
+
```
|
94
|
+
MySQL 5.7の場合は以下のコマンドを実行します。
|
95
|
+
```
|
96
|
+
cd ~/mysql-5.7.8-rc
|
97
|
+
mkdir x64
|
98
|
+
cd x64
|
99
|
+
cmake .. -DBOOST_ROOT=~/boost_1_58_0 \
|
100
|
+
-DWITH_BOOST=~/boost_1_58_0 \
|
101
|
+
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.7.8-rc \
|
94
102
|
-DTRANSACTD_CLIENTS_PREFIX=/usr/lib \
|
95
103
|
-DTRANSACTD_PREFIX=/usr/local/transactd
|
96
104
|
```
|
@@ -121,20 +129,20 @@ make install
|
|
121
129
|
からソースコードをダウンロードします。
|
122
130
|
```
|
123
131
|
cd ~
|
124
|
-
wget http://www.bizstation.jp/al/transactd/download/transactd-2.4.
|
132
|
+
wget http://www.bizstation.jp/al/transactd/download/transactd-2.4.2/transactd-source-2.4.2.zip
|
125
133
|
#Mac OS Xでは
|
126
|
-
#curl curl -O http://www.bizstation.jp/al/transactd/download/transactd-2.4.
|
127
|
-
unzip -q transactd-source-2.4.
|
134
|
+
#curl curl -O http://www.bizstation.jp/al/transactd/download/transactd-2.4.2/transactd-source-2.4.2.zip
|
135
|
+
unzip -q transactd-source-2.4.2.zip -d transactd
|
128
136
|
```
|
129
137
|
|
130
138
|
### 5-2 CMakeの実行
|
131
|
-
|
139
|
+
以下のコマンドを実行します。オプションの意味はコマンドの後に記載しています。
|
132
140
|
```
|
133
141
|
cd ~/transactd
|
134
|
-
mkdir
|
135
|
-
cd
|
142
|
+
mkdir x64
|
143
|
+
cd x64
|
136
144
|
cmake .. -DWITH_TRANSACTD_SERVER=OFF -DWITH_TRANSACTD_CLIENTS=ON \
|
137
|
-
-DBOOST_ROOT=~/
|
145
|
+
-DBOOST_ROOT=~/boost_1_58_0 \
|
138
146
|
-DTRANSACTD_CLIENTS_PREFIX=/usr/lib \
|
139
147
|
-DTRANSACTD_PREFIX=/usr/local/transactd
|
140
148
|
```
|
data/BUILD_WIN-JA.md
CHANGED
@@ -1,20 +1,25 @@
|
|
1
|
-
Transactd ビルドガイド for Windows
|
1
|
+
Transactd ビルドガイド for Windows
|
2
2
|
============================================================
|
3
3
|
|
4
4
|
1. コンパイラの準備
|
5
5
|
------------------------------------------------------------
|
6
6
|
Transactd Plugin および Transactd クライアントは、Windows上のVisual Studio
|
7
|
-
(32bit/64bit)
|
7
|
+
(32bit/64bit)でビルドできます。
|
8
|
+
Transactd Pluginは、MySQLとともにビルドしますので、MySQLの要求するコンパイラに
|
9
|
+
合わせてビルドします。MySQL 5.7は、Visual Studio Express 2013、それ以外の
|
10
|
+
MySQL/MariaDBのバージョンはVisual Studio Express 2010を使用してビルドします。
|
8
11
|
|
9
|
-
|
12
|
+
クライアントはEmbarcaderoのコンパイラーC++ Builder XEシリーズでもビルドできます。
|
10
13
|
[クライアントのみをビルド]の項を参照してください。)
|
11
14
|
|
12
|
-
* Windows 7 (64bit)
|
13
|
-
* Visual Studio 2010 Express
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
16
|
+
MySQL 5.7は以下のコンパイラをダウンロードしてインストールします。
|
17
|
+
* [Visual Studio Express 2013 with Update 5 for Windows Desktop
|
18
|
+
ダウンロードページ(Microsoft)]
|
19
|
+
(http://go.microsoft.com/fwlink/?LinkId=532500&clcid=0x411)
|
20
|
+
|
21
|
+
MySQL 5.5/5.6、MariaDB 5.5/10.0は以下のコンパイラとSDKをダウンロードし
|
22
|
+
てインストールします。
|
18
23
|
|
19
24
|
* [Visual Studio 2010 Express ダウンロードページ(Microsoft)](
|
20
25
|
http://www.microsoft.com/visualstudio/jpn/downloads#d-2010-express)
|
@@ -25,10 +30,16 @@ Visual Studio 2010 Expressで64bitビルドを行うには、別途Windows SDK
|
|
25
30
|
|
26
31
|
### Visual Studioコマンドプロンプトの起動方法
|
27
32
|
後述する手順の中で、Visual Studioコマンドプロンプトを開くことがあります。
|
28
|
-
|
33
|
+
|
34
|
+
MySQL 5.5/5.6、MariaDB 5.5/10.0は以下の手順でVisual Studioコマンドプロンプトを
|
35
|
+
開きます。
|
36
|
+
|
37
|
+
[32Bit]
|
38
|
+
* [スタートメニュー]-[すべてのプログラム]-[Microsoft Visual Studio 2010 Express]-
|
29
39
|
[Visual Studio コマンドプロンプト (2010)]を選択し起動します。
|
30
40
|
|
31
|
-
|
41
|
+
[64Bit]
|
42
|
+
*Visual Studio 2010 Express には、64bit版ビルドツール用の Visual Studioコマンド
|
32
43
|
プロンプトが付属しません。代わりに、64bit用ビルドツールのパスを設定するための
|
33
44
|
バッチファイルを作成し、そこから起動します。
|
34
45
|
以下の内容のファイルを作成し、`set64env.cmd`という名前でデスクトップに保存します。
|
@@ -36,6 +47,15 @@ Visual Studio 2010 Express には、64bit版ビルドツール用の Visual Stud
|
|
36
47
|
%comspec% /k "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
|
37
48
|
```
|
38
49
|
|
50
|
+
MySQL 5.7は以下の手順でVisual Studioコマンドプロンプトを開きます。
|
51
|
+
[32Bit]
|
52
|
+
* [スタートメニュー]-[すべてのプログラム]-[Microsoft Visual Studio 2013]-
|
53
|
+
[Visual Studio ツール]-[VS2013 x86 Native Tools コマンド プロンプト]を選択し起動します。
|
54
|
+
|
55
|
+
[64Bit]
|
56
|
+
* [スタートメニュー]-[すべてのプログラム]-[Microsoft Visual Studio 2013]-
|
57
|
+
[Visual Studio ツール]-[VS2013 x64 Cross Tools コマンド プロンプト]を選択し起動します。
|
58
|
+
|
39
59
|
|
40
60
|
|
41
61
|
2. CMakeのダウンロードとインストール
|
@@ -50,58 +70,46 @@ cmakeの実行ファイルにパスが通るようにします。
|
|
50
70
|
|
51
71
|
3. Boost C++ Libraries のダウンロードとインストール
|
52
72
|
------------------------------------------------------------
|
53
|
-
|
54
|
-
とはできなくなりました。boostはソースからビルドします。
|
73
|
+
boostはソースからビルドします。
|
55
74
|
|
56
75
|
### ソースからのビルド
|
57
76
|
[Boostのダウンロードページ](http://www.boost.org/users/download)からソースコードを
|
58
77
|
ダウンロードし、解凍します。ここでは、以下のフォルダに保存したものとします。
|
59
78
|
```
|
60
|
-
C:\
|
79
|
+
C:\boost\boost_1_58_0
|
61
80
|
```
|
62
81
|
|
63
82
|
Visual Studioコマンドプロンプトを起動します。以下のコマンドを実行し、Boostのビル
|
64
83
|
ドを行います。
|
65
84
|
```
|
66
|
-
cd C:\
|
85
|
+
cd C:\boost\boost_1_58_0
|
67
86
|
bootstrap.bat
|
68
87
|
|
69
|
-
@REM 64bitの場合
|
70
|
-
bjam.exe toolset=msvc threading=multi address-model=64 architecture=x86 ^
|
88
|
+
@REM Visula studio 2010 64bitの場合
|
89
|
+
bjam.exe toolset=msvc-10.0 threading=multi address-model=64 architecture=x86 ^
|
71
90
|
--with-chrono --with-filesystem --with-system --with-thread --with-timer ^
|
72
91
|
--with-serialization --with-program_options ^
|
73
|
-
variant=debug,release link=static runtime-link=static
|
74
|
-
|
92
|
+
variant=debug,release link=static runtime-link=static,shared
|
93
|
+
|
94
|
+
@REM Visula studio 2010 32bitの場合
|
95
|
+
bjam.exe toolset=msvc-10.0 threading=multi architecture=x86 ^
|
75
96
|
--with-chrono --with-filesystem --with-system --with-thread --with-timer ^
|
76
97
|
--with-serialization --with-program_options ^
|
77
|
-
variant=debug,release link=static runtime-link=shared
|
98
|
+
variant=debug,release link=static runtime-link=static,shared
|
78
99
|
|
79
|
-
@REM
|
80
|
-
bjam.exe toolset=msvc threading=multi architecture=x86 ^
|
100
|
+
@REM Visula studio 2013 64bitの場合
|
101
|
+
bjam.exe toolset=msvc-12.0 threading=multi address-model=64 architecture=x86 ^
|
81
102
|
--with-chrono --with-filesystem --with-system --with-thread --with-timer ^
|
82
103
|
--with-serialization --with-program_options ^
|
83
|
-
variant=debug,release link=static runtime-link=static
|
84
|
-
|
104
|
+
variant=debug,release link=static runtime-link=static,shared
|
105
|
+
|
106
|
+
@REM Visula studio 2013 32bitの場合
|
107
|
+
bjam.exe toolset=msvc-12.0 threading=multi architecture=x86 ^
|
85
108
|
--with-chrono --with-filesystem --with-system --with-thread --with-timer ^
|
86
109
|
--with-serialization --with-program_options ^
|
87
|
-
variant=debug,release link=static runtime-link=shared
|
88
|
-
```
|
89
|
-
|
90
|
-
ビルドができたら、システム環境変数に `TI_BOOST_ROOT_32` および
|
91
|
-
`TI_BOOST_ROOT_64`という変数を追加し、32bitと64bitのフォルダのパスを値として設
|
92
|
-
定します。自分のビルドするbitに合わせた変数が設定されていれば、両方を設定する必
|
93
|
-
要はありません。
|
94
|
-
```
|
95
|
-
64bitの場合
|
96
|
-
TI_BOOST_ROOT_64 = C:\Program Files\boost\boost_1_54_0
|
110
|
+
variant=debug,release link=static runtime-link=static,shared
|
97
111
|
|
98
|
-
32bitの場合
|
99
|
-
TI_BOOST_ROOT_32 = C:\Program Files\boost\boost_1_54_0
|
100
112
|
```
|
101
|
-
環境変数の追加は、[コントロールパネル]-[システム]-[詳細設定]タブ-[環境変数]から
|
102
|
-
行います。
|
103
|
-
|
104
|
-
|
105
113
|
|
106
114
|
4. サーバープラグインとクライアントの両方をビルド
|
107
115
|
------------------------------------------------------------
|
@@ -116,7 +124,7 @@ TI_BOOST_ROOT_32 = C:\Program Files\boost\boost_1_54_0
|
|
116
124
|
ダウンロードした圧縮ファイルを解凍します。ここでは、以下のフォルダに保存したも
|
117
125
|
のとします。
|
118
126
|
```
|
119
|
-
C:\Users\Public\Documents\mysql-5.6.
|
127
|
+
C:\Users\Public\Documents\mysql-5.6.25
|
120
128
|
```
|
121
129
|
|
122
130
|
|
@@ -126,12 +134,12 @@ C:\Users\Public\Documents\mysql-5.6.20
|
|
126
134
|
ソースを展開するフォルダ transactd をMySQLのソースツリー内のpluginフォルダに作成
|
127
135
|
します。
|
128
136
|
```
|
129
|
-
md C:\Users\Public\Documents\mysql-5.6.
|
137
|
+
md C:\Users\Public\Documents\mysql-5.6.25\plugin\transactd
|
130
138
|
```
|
131
139
|
ダウンロードしたソースコードを、上記で作成したtransactdフォルダに展開します。
|
132
140
|
ここでは、以下のようなフォルダ構造になります。
|
133
141
|
```
|
134
|
-
C:\Users\Public\Documents\mysql-5.6.
|
142
|
+
C:\Users\Public\Documents\mysql-5.6.25\plugin\transactd
|
135
143
|
```
|
136
144
|
|
137
145
|
|
@@ -143,15 +151,15 @@ Transactd Pluginソースコードのpatchディレクトリにmysqlのソース
|
|
143
151
|
します。(パッチはmysql/mariadbのバージョンごとに異なる名前になっています。
|
144
152
|
パッチ名のバージョンの部分は合ったものに変更してください。)
|
145
153
|
```
|
146
|
-
cd C:\Users\Public\Documents\mysql-5.6.
|
147
|
-
copy plugin\transactd\patch\transactd-win-mysql-5.6.
|
154
|
+
cd C:\Users\Public\Documents\mysql-5.6.25
|
155
|
+
copy plugin\transactd\patch\transactd-win-mysql-5.6.25.patch *
|
148
156
|
```
|
149
157
|
|
150
158
|
patchコマンドを使用できる環境(Cygwin、Git Bashなど)があるならば、以下の
|
151
159
|
コマンドでパッチを適用します。
|
152
160
|
```
|
153
|
-
cd C:\Users\Public\Documents\mysql-5.6.
|
154
|
-
patch -p0 -i transactd-win-mysql-5.6.
|
161
|
+
cd C:\Users\Public\Documents\mysql-5.6.25
|
162
|
+
patch -p0 -i transactd-win-mysql-5.6.25.patch
|
155
163
|
```
|
156
164
|
|
157
165
|
patchコマンドがない場合、[宮坂 賢 氏のGNU patch 2.5.4 (Win32 版)](
|
@@ -163,8 +171,8 @@ C:\Program Files (x86)\patc254w
|
|
163
171
|
```
|
164
172
|
以下のコマンドでパッチを適用します。
|
165
173
|
```
|
166
|
-
cd C:\Users\Public\Documents\mysql-5.6.
|
167
|
-
"C:\Program Files (x86)\patc254w\patch.exe" -p0 --binary -i transactd-win-mysql-5.6.
|
174
|
+
cd C:\Users\Public\Documents\mysql-5.6.25
|
175
|
+
"C:\Program Files (x86)\patc254w\patch.exe" -p0 --binary -i transactd-win-mysql-5.6.25.patch
|
168
176
|
```
|
169
177
|
|
170
178
|
#### 4-3.2 ソースコードのエンコーディングの修正
|
@@ -180,29 +188,37 @@ cd C:\Users\Public\Documents\mysql-5.6.20
|
|
180
188
|
### 4-4 CMakeの実行
|
181
189
|
Visual Studioコマンドプロンプトを起動して、以下のコマンドを実行します。
|
182
190
|
```
|
183
|
-
|
184
|
-
|
185
|
-
|
191
|
+
@REM Visual studio 2010 64Bitの場合
|
192
|
+
cd C:\Users\Public\Documents\mysql-5.6.25
|
193
|
+
md x64
|
194
|
+
cd x64
|
186
195
|
cmake .. -G "Visual Studio 10 Win64" ^
|
187
|
-
|
188
|
-
|
196
|
+
-DBOOST_ROOT="C:\boost\boost_1_58_0"
|
197
|
+
|
198
|
+
@REM Visual studio 2013 64Bitの場合
|
199
|
+
cd C:\Users\Public\Documents\mysql-5.7.8
|
200
|
+
md x64
|
201
|
+
cd x64
|
202
|
+
cmake .. -G "Visual Studio 12 Win64" ^
|
203
|
+
-DWITH_BOOST="C:\boost\boost_1_58_0" ^
|
204
|
+
-DBOOST_ROOT="C:\boost\boost_1_58_0"
|
205
|
+
|
189
206
|
```
|
190
207
|
|
191
208
|
|
192
209
|
### 4-5 ビルド
|
193
210
|
CMakeが完了すると、以下のソリューションファイルが生成されています。
|
194
211
|
```
|
195
|
-
C:\Users\Public\Documents\mysql-5.6.
|
212
|
+
C:\Users\Public\Documents\mysql-5.6.25\x64\MySQL.sln
|
196
213
|
```
|
197
214
|
MySQL.slnをVisual Studioで開きます。メニューの[ビルド]-[構成マネージャー]から構
|
198
|
-
成を「
|
199
|
-
す。
|
215
|
+
成を「Release」に変更し、[ビルド]-[ソリューションのビルド]をクリックします。
|
200
216
|
|
201
217
|
バイナリは以下のフォルダに出力されます。
|
202
218
|
```
|
203
|
-
C:\Users\Public\Documents\mysql-5.6.
|
204
|
-
C:\Users\Public\Documents\mysql-5.6.
|
205
|
-
C:\Users\Public\Documents\mysql-5.6.
|
219
|
+
C:\Users\Public\Documents\mysql-5.6.25\x64\sql\lib\plugin
|
220
|
+
C:\Users\Public\Documents\mysql-5.6.25\x64\plugin\transactd\bin
|
221
|
+
C:\Users\Public\Documents\mysql-5.6.25\x64\plugin\transactd\lib
|
206
222
|
```
|
207
223
|
|
208
224
|
|
@@ -223,28 +239,39 @@ C:\Users\Public\Documents\transactd
|
|
223
239
|
### 5-2 CMakeの実行
|
224
240
|
Visual Studioコマンドプロンプトを起動して、以下のコマンドを実行します。
|
225
241
|
```
|
242
|
+
@REM Visual studio 2010 64Bitの場合
|
226
243
|
cd C:\Users\Public\Documents\transactd
|
227
|
-
md
|
228
|
-
cd
|
244
|
+
md x64
|
245
|
+
cd x64
|
229
246
|
cmake .. -G "Visual Studio 10 Win64" ^
|
230
|
-
-
|
231
|
-
-
|
247
|
+
-DBOOST_ROOT="C:\boost\boost_1_58_0" ^
|
248
|
+
-DWITH_TRANSACTD_SERVER=OFF -DWITH_TRANSACTD_CLIENTS=ON
|
249
|
+
|
250
|
+
@REM Visual studio 2013 64Bitの場合
|
251
|
+
cd C:\Users\Public\Documents\transactd
|
252
|
+
md x64
|
253
|
+
cd x64
|
254
|
+
cmake .. -G "Visual Studio 12 Win64" ^
|
255
|
+
-DBOOST_ROOT="C:\boost\boost_1_58_0" ^
|
256
|
+
-DWITH_TRANSACTD_SERVER=OFF -DWITH_TRANSACTD_CLIENTS=ON
|
257
|
+
|
232
258
|
```
|
233
259
|
|
234
260
|
|
235
261
|
### 5-3 ビルド
|
236
|
-
CMake
|
262
|
+
CMakeが完了すると、以下のソリューションファイル (TransactdClinet.sln)が生成されています。
|
263
|
+
(Version 2.4.0以前は tdcl.sln)
|
237
264
|
```
|
238
|
-
C:\Users\Public\Documents\transactd\
|
265
|
+
C:\Users\Public\Documents\transactd\x64\TransactdClinet.sln
|
239
266
|
```
|
240
|
-
|
241
|
-
成を「
|
267
|
+
TransactdClinet.slnをVisual Studioで開きます。メニューの[ビルド]-[構成マネージャー]から構
|
268
|
+
成を「Release」に変更し、[ビルド]-[ソリューションのビルド]をクリックしま
|
242
269
|
す。
|
243
270
|
|
244
271
|
バイナリは以下のフォルダに出力されます。
|
245
272
|
```
|
246
|
-
C:\Users\Public\Documents\transactd\
|
247
|
-
C:\Users\Public\Documents\transactd\
|
273
|
+
C:\Users\Public\Documents\transactd\x64\bin
|
274
|
+
C:\Users\Public\Documents\transactd\x64\lib
|
248
275
|
```
|
249
276
|
|
250
277
|
|
data/CMakeLists.txt
CHANGED
@@ -96,7 +96,7 @@ if(WITH_TRANSACTD_CLIENTS)
|
|
96
96
|
message(STATUS "BUILD Transactd Client Libraries")
|
97
97
|
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
|
98
98
|
# build without server plugin
|
99
|
-
project(
|
99
|
+
project("TransactdClinet")
|
100
100
|
endif()
|
101
101
|
tdcl_set_compiler_flags()
|
102
102
|
subdirs("build/tdclc")
|
@@ -106,9 +106,7 @@ if(WITH_TRANSACTD_CLIENTS)
|
|
106
106
|
set(TDCL_CPP_CHARSET m)
|
107
107
|
endif()
|
108
108
|
foreach(srcname tdclcpp test_tdcl bench_td bench_query tdclstmt querystmts ormsrcgen)
|
109
|
-
|
110
|
-
"${TRANSACTD_ROOT}" "${srcname}" "${srcname}${TDCL_CPP_CHARSET}")
|
111
|
-
subdirs("build/${srcname}${TDCL_CPP_CHARSET}")
|
109
|
+
subdirs("build/${srcname}")
|
112
110
|
endforeach()
|
113
111
|
endif()
|
114
112
|
|
@@ -119,18 +117,16 @@ endif()
|
|
119
117
|
if(TRANSACTD_RUBY_GEM)
|
120
118
|
message(STATUS "BUILD Transactd Ruby Gem")
|
121
119
|
set(TDCL_CPP_CHARSET m)
|
122
|
-
project(
|
120
|
+
project(TransactdRubyClient)
|
123
121
|
tdcl_set_compiler_flags()
|
124
122
|
if(NOT TRANSACTD_WITHOUT_C_CPP_CLIENTS)
|
125
123
|
if(WIN32)
|
126
124
|
if(MSVC)
|
127
|
-
|
128
|
-
subdirs("build/tdclcppmr")
|
125
|
+
subdirs("build/tdclcpp")
|
129
126
|
endif()
|
130
127
|
else()
|
131
|
-
transactd_copy_subdir("${TRANSACTD_ROOT}" tdclcpp tdclcppm)
|
132
128
|
subdirs("build/tdclc")
|
133
|
-
subdirs("build/
|
129
|
+
subdirs("build/tdclcpp")
|
134
130
|
endif()
|
135
131
|
endif()
|
136
132
|
subdirs("build/tdclrb")
|
@@ -143,17 +139,11 @@ endif()
|
|
143
139
|
if(TRANSACTD_PHP)
|
144
140
|
message(STATUS "BUILD Transactd client PHP extension")
|
145
141
|
set(TDCL_CPP_CHARSET m)
|
146
|
-
project(
|
142
|
+
project(TransactdPhpClient)
|
147
143
|
tdcl_set_compiler_flags()
|
148
144
|
if(NOT TRANSACTD_WITHOUT_C_CPP_CLIENTS)
|
149
145
|
subdirs("build/tdclc")
|
150
|
-
|
151
|
-
transactd_copy_subdir("${TRANSACTD_ROOT}" tdclcpp tdclcppmr)
|
152
|
-
subdirs("build/tdclcppmr")
|
153
|
-
else()
|
154
|
-
transactd_copy_subdir("${TRANSACTD_ROOT}" tdclcpp tdclcppm)
|
155
|
-
subdirs("build/tdclcppm")
|
156
|
-
endif()
|
146
|
+
subdirs("build/tdclcpp")
|
157
147
|
endif()
|
158
148
|
subdirs("build/tdclphp")
|
159
149
|
endif()
|