1 | ========== |
---|
2 | MSYS |
---|
3 | ========== |
---|
4 | |
---|
5 | De MSYS hay que describir lo minimo requerido. Hay que tomar notas desde la proxima instalacion. |
---|
6 | |
---|
7 | export PATH=/C/Archivos\ de\ programa/R/R-3.1.2/bin:/C/Archivos\ de\ programa/Microsoft\ Visual\ Studio\ 10.0/VC/bin:${PATH} |
---|
8 | |
---|
9 | ========== |
---|
10 | boost_1_57 |
---|
11 | ========== |
---|
12 | |
---|
13 | wget http://packages.tol-prj.org/win32/development/sources/boost_1_57_0.zip |
---|
14 | |
---|
15 | desde una ventana del DOS no MSYS ejecutar "bootstrap.bat mingw" ya que desde la ventana de msys da errores al no encontrar algunos .h, no entiendo bien |
---|
16 | por que. |
---|
17 | |
---|
18 | Luego desde la ventana de msys podemos hacer |
---|
19 | |
---|
20 | Compilacion Release: hay que modificar gcc.jam para cambiar -O3 por -O2 |
---|
21 | |
---|
22 | $ b2 --address-model=32 cxxflags=-mno-align-double variant=release runtime-link=shared threading=multi --layout=system --without-mpi link=shared toolset=gcc --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release install |
---|
23 | |
---|
24 | -ftemplate-depth-128 -O2 -fno-inline -w -mthreads -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DNDEBUG |
---|
25 | |
---|
26 | Compilacion Debug |
---|
27 | |
---|
28 | $ b2 --address-model=32 cxxflags=-mno-align-double variant=debug runtime-link=shared threading=multi --layout=system --without-mpi link=shared toolset=gcc --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug install |
---|
29 | |
---|
30 | -ftemplate-depth-128 -O0 -fno-inline -w -g -mthreads -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 |
---|
31 | |
---|
32 | Si la compilacion es correcta debe salir algo como esto: |
---|
33 | |
---|
34 | The Boost C++ Libraries were successfully built! |
---|
35 | |
---|
36 | The following directory should be added to compiler include paths: |
---|
37 | |
---|
38 | C:/users/toldevel/external/boost_1_57_0 |
---|
39 | |
---|
40 | The following directory should be added to linker library paths: |
---|
41 | |
---|
42 | C:\users\toldevel\external\boost_1_57_0\stage\lib |
---|
43 | |
---|
44 | ======================== |
---|
45 | google sparsehash |
---|
46 | ======================== |
---|
47 | |
---|
48 | Descargar google sparsehash |
---|
49 | |
---|
50 | wget http://packages.tol-prj.org/win32/development/sources/sparsehash-2.0.2.zip |
---|
51 | |
---|
52 | Se configura con configure |
---|
53 | |
---|
54 | CFLAGS='-m32 -m32 -O2 -mno-align-double' CXXFLAGS='-m32 -O2 -mno-align-double' configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release |
---|
55 | make |
---|
56 | make install |
---|
57 | make distclean |
---|
58 | CFLAGS='-m32 -m32 -O0 -ggdb -mno-align-double' CXXFLAGS='-m32 -O0 -ggdb -mno-align-double' configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug |
---|
59 | make |
---|
60 | make install |
---|
61 | |
---|
62 | ======== |
---|
63 | bzip2 |
---|
64 | ======== |
---|
65 | |
---|
66 | wget http://packages.tol-prj.org/win32/development/sources/bzip2-1.0.6.zip |
---|
67 | unzip bzip2-1.0.6.zip |
---|
68 | cd bzip2-1.0.6 |
---|
69 | mkdir Build |
---|
70 | mkdir Build/Debug ; cd Build/Debug |
---|
71 | cmake -DCMAKE_C_FLAGS_DEBUG='-O0 -ggdb -Wall -mno-align-double' -DCMAKE_INSTALL_PREFIX=/c/users/toldevel/external/toldevel-rtools-m32/debug -DCMAKE_BUILD_TYPE=Debug -G"MSYS Makefiles" ../.. |
---|
72 | make install |
---|
73 | cd ../.. |
---|
74 | mkdir Build/Release ; cd Build/Release |
---|
75 | cmake -DCMAKE_C_FLAGS_RELEASE='-O2 -Wall -DNDEBUG -mno-align-double' -DCMAKE_INSTALL_PREFIX=/c/users/toldevel/external/toldevel-rtools-m32/release -DCMAKE_BUILD_TYPE=Release -G"MSYS Makefiles" ../.. |
---|
76 | make install |
---|
77 | |
---|
78 | |
---|
79 | ************** NO HACE FALTA YA QUE CON CMAKE SE PUEDE COMPILAR *********** |
---|
80 | wget http://skylink.dl.sourceforge.net/project/mingw/MinGW/Extension/bzip2/bzip2-1.0.6-4/libbz2-1.0.6-4-mingw32-dll-2.tar.lzma |
---|
81 | wget http://skylink.dl.sourceforge.net/project/mingw/MinGW/Extension/bzip2/bzip2-1.0.6-4/bzip2-1.0.6-4-mingw32-dev.tar.lzma |
---|
82 | tar -C /C/users/toldevel/external/install/release --lzma -xvf bzip2-1.0.6-4-mingw32-dev.tar.lzma |
---|
83 | tar -C /C/users/toldevel/external/install/release --lzma -xvf libbz2-1.0.6-4-mingw32-dll-2.tar.lzma |
---|
84 | tar -C /C/users/toldevel/external/install/debug --lzma -xvf bzip2-1.0.6-4-mingw32-dev.tar.lzma |
---|
85 | tar -C /C/users/toldevel/external/install/debug --lzma -xvf libbz2-1.0.6-4-mingw32-dll-2.tar.lzma |
---|
86 | |
---|
87 | ======== |
---|
88 | zlib |
---|
89 | ======== |
---|
90 | |
---|
91 | wget http://packages.tol-prj.org/win32/development/sources/zlib-1.2.8.zip |
---|
92 | unzip zlib-1.2.8.zip |
---|
93 | cd zlib-1.2.8 |
---|
94 | mkdir Build |
---|
95 | mkdir Build/Release ; cd Build/Release |
---|
96 | cmake -DCMAKE_C_FLAGS_RELEASE='-O2 -Wall -DNDEBUG -mno-align-double' -DCMAKE_INSTALL_PREFIX=/c/users/toldevel/external/toldevel-rtools-m32/release/ -DCMAKE_BUILD_TYPE=Release -G"MSYS Makefiles" ../.. |
---|
97 | make |
---|
98 | make install |
---|
99 | cd ../.. |
---|
100 | mkdir Build/Debug ; cd Build/Debug |
---|
101 | cmake -DCMAKE_C_FLAGS_DEBUG='-O0 -ggdb -Wall -mno-align-double' -DCMAKE_INSTALL_PREFIX=/c/users/toldevel/external/toldevel-rtools-m32/debug/ -DCMAKE_BUILD_TYPE=Debug -G"MSYS Makefiles" ../.. |
---|
102 | make |
---|
103 | make install |
---|
104 | |
---|
105 | ================ |
---|
106 | ZipArchive |
---|
107 | ================ |
---|
108 | |
---|
109 | wget http://packages.tol-prj.org/win32/development/sources/ZipArchive.zip |
---|
110 | unzip ZipArchive.zip |
---|
111 | cd ZipArchive |
---|
112 | mkdir -p Build/Release ; cd Build/Release |
---|
113 | cmake -DCMAKE_C_FLAGS_RELEASE='-O2 -Wall -DNDEBUG -mno-align-double' -DCMAKE_CXX_FLAGS_RELEASE='-O2 -Wall -DNDEBUG -mno-align-double' -DCMAKE_PREFIX_PATH=/c/users/toldevel/external/toldevel-rtools-m32/release -DCMAKE_INSTALL_PREFIX=/c/users/toldevel/external/toldevel-rtools-m32/release -DCMAKE_BUILD_TYPE=Release -G"MSYS Makefiles" -DBUILD_SHARED_LIBS:BOOL=ON ../.. |
---|
114 | make install |
---|
115 | cd ../.. |
---|
116 | mkdir -p Build/Debug ; cd Build/Debug |
---|
117 | cmake -DCMAKE_C_FLAGS_RELEASE='-O0 -ggdb -Wall -mno-align-double' -DCMAKE_CXX_FLAGS_RELEASE='-O0 -ggdb -Wall -mno-align-double' -DCMAKE_PREFIX_PATH=/c/users/toldevel/external/toldevel-rtools-m32/debug -DCMAKE_INSTALL_PREFIX=/c/users/toldevel/external/toldevel-rtools-m32/debug -DCMAKE_BUILD_TYPE=Debug -G"MSYS Makefiles" -DBUILD_SHARED_LIBS:BOOL=ON ../.. |
---|
118 | make install |
---|
119 | |
---|
120 | ======= |
---|
121 | fftw |
---|
122 | ======= |
---|
123 | |
---|
124 | wget http://packages.tol-prj.org/linux/sources/fftw-3.3.1.tar.gz |
---|
125 | tar zxf fftw-3.3.1.tar.gz |
---|
126 | cd fftw-3.3.1 |
---|
127 | |
---|
128 | CFLAGS='-m32 -m32 -O0 -ggdb -Wall -mno-align-double' configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug --enable-shared |
---|
129 | make |
---|
130 | make install |
---|
131 | make distclean |
---|
132 | CFLAGS='-m32 -m32 -O2 -Wall -DNDEBUG -mno-align-double' configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release --enable-shared |
---|
133 | make |
---|
134 | make install |
---|
135 | |
---|
136 | ============= |
---|
137 | ROOT CINT |
---|
138 | ============= |
---|
139 | |
---|
140 | wget http://packages.tol-prj.org/win32/development/sources/include_cint_root_v5.34.24.zip |
---|
141 | unzip include_cint_root_v5.34.24.zip |
---|
142 | cp -r cint /c/users/toldevel/external/toldevel-rtools-m32/debug/include/. |
---|
143 | cp -r cint /c/users/toldevel/external/toldevel-rtools-m32/release/include/. |
---|
144 | |
---|
145 | Los includes de cint han sido extraidos desde http://root.cern.ch/download/root_v5.34.24.source.tar.gz |
---|
146 | |
---|
147 | =================== |
---|
148 | BLAS/LAPACK |
---|
149 | =================== |
---|
150 | |
---|
151 | wget http://packages.tol-prj.org/win32/development/lapack-mingw.zip |
---|
152 | unzip lapack-mingw.zip |
---|
153 | cd lapack-mingw/win32/ |
---|
154 | cp *.dll /c/users/toldevel/external/toldevel-rtools-m32/debug/bin |
---|
155 | cp *.lib /c/users/toldevel/external/toldevel-rtools-m32/debug/lib |
---|
156 | cp *.dll /c/users/toldevel/external/toldevel-rtools-m32/release/bin |
---|
157 | cp *.lib /c/users/toldevel/external/toldevel-rtools-m32/release/lib |
---|
158 | |
---|
159 | ======== |
---|
160 | GBLA |
---|
161 | ======== |
---|
162 | |
---|
163 | export BLAPI_BLAS_LIB=/c/Archivos\ de\ programa/R/R-3.1.2/bin/i386/Rblas.dll |
---|
164 | export BLAPI_LAPACK_LIB=/c/Archivos\ de\ programa/R/R-3.1.2/bin/i386/Rlapack.dll |
---|
165 | |
---|
166 | svn co https://www.tol-prj.org/svn/gbla |
---|
167 | cd gbla/trunk/libltdl |
---|
168 | CFLAGS='-m32 -O0 -ggdb -Wall -mno-align-double' configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug |
---|
169 | cd .. |
---|
170 | bjam cflags=-mno-align-double cxxflags=-mno-align-double variant=debug runtime-link=shared threading=multi link=shared toolset=gcc --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug install |
---|
171 | cd examples/blas |
---|
172 | bjam cflags=-mno-align-double cxxflags=-mno-align-double variant=debug runtime-link=shared threading=multi link=shared toolset=gcc --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug |
---|
173 | |
---|
174 | ejecutar los test generados dentro del directorio bin. |
---|
175 | |
---|
176 | cd gbla/trunk/libltdl |
---|
177 | make distclean |
---|
178 | CFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release |
---|
179 | cd .. |
---|
180 | bjam cflags=-mno-align-double cxxflags=-mno-align-double variant=release runtime-link=shared threading=multi link=shared toolset=gcc --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release install |
---|
181 | cd examples/blas |
---|
182 | bjam cflags=-mno-align-double cxxflags=-mno-align-double variant=release runtime-link=shared threading=multi link=shared toolset=gcc --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release |
---|
183 | |
---|
184 | =============== |
---|
185 | SuiteSparse: esta esta poco automatizada, hay que trabajarla mas |
---|
186 | =============== |
---|
187 | |
---|
188 | SuitSparse no compila bien con bjam, al menos lo que tenemos preparado. |
---|
189 | |
---|
190 | Ver este: https://github.com/jlblancoc/suitesparse-metis-for-windows |
---|
191 | |
---|
192 | wget http://packages.tol-prj.org/win32/development/sources/SuiteSparse-4.4.1.tar.gz |
---|
193 | |
---|
194 | Hay que editar SuiteSparse_config/SuiteSparse_config.mk y modificarlo para que use nuestras blas y lapack |
---|
195 | |
---|
196 | BLAS = /c/users/toldevel/external/rtools-x86/release/lib/libblas.lib |
---|
197 | LAPACK = /c/users/toldevel/external/rtools-x86/release/lib/liblapack.lib |
---|
198 | |
---|
199 | tambien hay que eliminarla opcion de enlace -lrt |
---|
200 | |
---|
201 | al compilar las libs hay que especificar CC=gcc |
---|
202 | |
---|
203 | editar "SuiteSparse_config.mk" para instalar en toldevel-rtools-m32/debug |
---|
204 | CFLAGS='-m32 -O0 -ggdb -Wall -mno-align-double' CPPFLAGS='-O0 -ggdb -Wall -mno-align-double' CC=gcc make |
---|
205 | make install |
---|
206 | make distclean |
---|
207 | editar "SuiteSparse_config.mk" para instalar en toldevel-rtools-m32/release |
---|
208 | CFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' CPPFLAGS='-O2 -Wall -DNDEBUG -mno-align-double' CC=gcc make |
---|
209 | make install |
---|
210 | |
---|
211 | ====== |
---|
212 | GSL |
---|
213 | ====== |
---|
214 | |
---|
215 | wget http://packages.tol-prj.org/win32/development/sources/gsl-1.16.tar.gz |
---|
216 | tar zxf gsl-1.16.tar.gz |
---|
217 | cd gsl-1.16 |
---|
218 | |
---|
219 | CFLAGS='-m32 -O0 -ggdb -Wall -mno-align-double' configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug --enable-shared |
---|
220 | make |
---|
221 | make install |
---|
222 | make distclean |
---|
223 | CFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release --enable-shared |
---|
224 | make |
---|
225 | make install |
---|
226 | |
---|
227 | ./configure --prefix=/usr/local --enable-shared |
---|
228 | make |
---|
229 | make install |
---|
230 | |
---|
231 | =================== |
---|
232 | CBLAS/CLAPACK |
---|
233 | =================== |
---|
234 | |
---|
235 | wget http://packages.tol-prj.org/win32/development/atlas-windows.zip |
---|
236 | cd atlas-windows |
---|
237 | cp -r include/* /c/users/toldevel/external/toldevel-rtools-m32/debug/include/. |
---|
238 | cp lib/* /c/users/toldevel/external/toldevel-rtools-m32/debug/lib/. |
---|
239 | cp -r include/* /c/users/toldevel/external/toldevel-rtools-m32/release/include/. |
---|
240 | cp lib/* /c/users/toldevel/external/toldevel-rtools-m32/release/lib/. |
---|
241 | |
---|
242 | =========== |
---|
243 | ltdl |
---|
244 | =========== |
---|
245 | |
---|
246 | wget http://packages.tol-prj.org/win32/development/sources/libtool-2.4.4.tar.gz |
---|
247 | tar zxf libtool-2.4.4.tar.gz |
---|
248 | cd libtool-2.4.4 |
---|
249 | CFLAGS='-m32 -O0 -ggdb -mno-align-double' CXXFLAGS='-m32 -O0 -ggdb -mno-align-double' configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug --enable-shared |
---|
250 | make |
---|
251 | make install |
---|
252 | make distclean |
---|
253 | CFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' CXXFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' ./configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release --enable-shared |
---|
254 | make |
---|
255 | make install |
---|
256 | |
---|
257 | ============================ |
---|
258 | PostgreSQL client libraries |
---|
259 | ============================ |
---|
260 | see: https://pgolub.wordpress.com/2008/12/15/building-postgresql-client-library-using-mingw-under-winxp-sp3/ |
---|
261 | |
---|
262 | wget http://packages.tol-prj.org/win32/development/sources/postgresql-9.4.1.tar.gz |
---|
263 | tar zxf postgresql-9.4.1.tar.gz |
---|
264 | cd postgresql-9.4.1 |
---|
265 | |
---|
266 | CFLAGS='-m32 -m32 -O0 -ggdb -mno-align-double' CXXFLAGS='-m32 -O0 -ggdb -mno-align-double' ./configure --without-zlib --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug |
---|
267 | make -C src/common |
---|
268 | make -C src/interfaces/libpq install |
---|
269 | cp src/include/postgres_ext.h src/include/pg_config_ext.h /c/users/toldevel/external/toldevel-rtools-m32/debug/include/. |
---|
270 | |
---|
271 | make distclean |
---|
272 | CFLAGS='-m32 -m32 -O2 -Wall -DNDEBUG -mno-align-double' CXXFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' ./configure --without-zlib --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release |
---|
273 | make -C src/common |
---|
274 | make -C src/interfaces/libpq install |
---|
275 | cp src/include/postgres_ext.h src/include/pg_config_ext.h /c/users/toldevel/external/toldevel-rtools-m32/release/include/. |
---|
276 | |
---|
277 | Compilar Tcl |
---|
278 | ============= |
---|
279 | |
---|
280 | wget http://packages.tol-prj.org/win32/development/sources/tcl8.4.20.zip |
---|
281 | unzip tcl8.4.20.zip |
---|
282 | cd tcl8.4.20 |
---|
283 | mkdir build-debug |
---|
284 | mkdir build-release |
---|
285 | cd build-debug |
---|
286 | CFLAGS='-m32 -O0 -ggdb -mno-align-double' CXXFLAGS='-m32 -O0 -ggdb -mno-align-double' ../win/configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug --enable-threads --enable-shared |
---|
287 | make |
---|
288 | make install |
---|
289 | make install-private-headers |
---|
290 | cd ../build-release |
---|
291 | CFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' CXXFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' ../win/configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release --enable-threads --enable-shared |
---|
292 | make |
---|
293 | make install |
---|
294 | make install-private-headers |
---|
295 | |
---|
296 | Compilar Tk |
---|
297 | ============ |
---|
298 | |
---|
299 | wget http://packages.tol-prj.org/win32/development/sources/tk8.4.20.zip |
---|
300 | unzip tk8.4.20.zip |
---|
301 | cd tcl8.4.20 |
---|
302 | mkdir build-debug |
---|
303 | mkdir build-release |
---|
304 | cd build-debug |
---|
305 | PATH=/c/users/toldevel/external/toldevel-rtools-m32/debug/bin:${PATH} CFLAGS='-m32 -O0 -ggdb -mno-align-double' CXXFLAGS='-m32 -O0 -ggdb -mno-align-double' ../win/configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug --enable-threads --enable-shared --with-tcl=/c/users/toldevel/external/toldevel-rtools-m32/debug/lib |
---|
306 | make |
---|
307 | make install |
---|
308 | make install-private-headers |
---|
309 | cd ../build-release |
---|
310 | PATH=/c/users/toldevel/external/toldevel-rtools-m32/release/bin:${PATH} CFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' CXXFLAGS='-m32 -O2 -Wall -DNDEBUG -mno-align-double' ../win/configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release --enable-threads --enable-shared --with-tcl=/c/users/toldevel/external/toldevel-rtools-m32/release/lib |
---|
311 | make |
---|
312 | make install |
---|
313 | make install-private-headers |
---|
314 | |
---|
315 | ================ |
---|
316 | libcurl |
---|
317 | ================ |
---|
318 | |
---|
319 | wget http://packages.tol-prj.org/win32/development/sources/curl-7.40.0.tar.gz |
---|
320 | tar zxf curl-7.40.0.tar.gz |
---|
321 | cd curl-7.40.0 |
---|
322 | CFLAGS='-m32 -O0 -ggdb -mno-align-double' CXXFLAGS='-m32 -O0 -ggdb -mno-align-double' ./configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/debug --enable-shared |
---|
323 | make |
---|
324 | make install |
---|
325 | make distclean |
---|
326 | CFLAGS='-m32 -O2 -Wall -mno-align-double' CPPFLAGS=-DNDEBUG CXXFLAGS='-m32 -O2 -Wall -mno-align-double' ./configure --prefix=/c/users/toldevel/external/toldevel-rtools-m32/release --enable-shared |
---|
327 | make |
---|
328 | make install |
---|
329 | |
---|
330 | ================ |
---|
331 | TclCurl |
---|
332 | ================ |
---|
333 | |
---|
334 | OJO: UnxUtils/usr/local/wbin/bc.exe si esta en el path puede hacer que el configure falle. Renombrarlo. Hay que usar el que esta en /c/MinGW/bin, para eso incluir la ruta anterior en el path. |
---|
335 | |
---|
336 | wget http://packages.tol-prj.org/win32/development/sources/tclcurl-7.22.0.zip |
---|
337 | unzip tclcurl-7.22.0.zip |
---|
338 | cd tclcurl-7.22.0 |
---|
339 | CFLAGS='-m32 -O0 -ggdb -mno-align-double' CXXFLAGS='-m32 -O0 -ggdb -mno-align-double' ./configure --with-tcl=/c/users/toldevel/external/toldevel-rtools-m32/debug/lib --with-curlprefix=/c/users/toldevel/external/toldevel-rtools-m32/debug --enable-threads --enable-symbols |
---|
340 | make install |
---|
341 | make distclean |
---|
342 | CFLAGS='-m32 -O2 -Wall -mno-align-double' CPPFLAGS=-DNDEBUG CXXFLAGS='-m32 -O2 -Wall -mno-align-double' ./configure --with-tcl=/c/users/toldevel/external/toldevel-rtools-m32/release/lib --with-curlprefix=/c/users/toldevel/external/toldevel-rtools-m32/release --enable-threads |
---|
343 | |
---|
344 | ======= |
---|
345 | TOL |
---|
346 | ======= |
---|
347 | |
---|
348 | cd tolp/trunk/tol |
---|
349 | mkdir BUILD_CMAKE |
---|
350 | cd BUILD_CMAKE |
---|
351 | cmake -DFFTW_ROOT:PATH=c:/MinGW/msys/1.0/local -DFFTW_USE_STATIC_LIBS=1 -DCINT_ROOT_DIR:PATH=c:/users/toldevel/external/root_v5.34.24.source/root/cint/cint -DZIPARCHIVE_AS_STATIC=1 -DCBLAS_DIR=c:/users/toldevel/external/atlas-windows -DCLAPACK_DIR=c:/users/toldevel/external/atlas-windows -DCMAKE_BUILD_TYPE=Debug -G"MSYS Makefiles" .. |
---|
352 | |
---|
353 | cmake -DCMAKE_C_FLAGS_DEBUG="-O0 -g2" -DCMAKE_CXX_FLAGS_RELEASE="-O0 -g2" -DTOL_EXTERNAL_DEVEL_DIR=C:\users\toldevel\external\TOL_DEVEL_MINGW32 -DCMAKE_BUILD_TYPE=Debug -G"CodeLite - MinGW Makefiles" ../.. |
---|
354 | |
---|
355 | cmake -DCMAKE_C_FLAGS_RELEASE='-O2 -Wall -DNDEBUG' -DCMAKE_CXX_FLAGS_RELEASE='-O2 -Wall -DNDEBUG' -DTOL_EXTERNAL_DIR=C:/users/toldevel/external/install -DCMAKE_BUILD_TYPE=Release -G"CodeLite - MinGW Makefiles" ../.. |
---|
356 | |
---|
357 | Para tolsh se require Tcl/Tk y otros paquetes como TclCurl |
---|
358 | |
---|
359 | ============= |
---|
360 | TclCurl |
---|
361 | ============= |
---|
362 | |
---|
363 | download from https://bitbucket.org/smh377/tclcurl/downloads |
---|
364 | |
---|
365 | Compilar MatQuery |
---|
366 | |
---|
367 | mkdir CodeLite\Debug |
---|
368 | cd CodeLite\Debug |
---|
369 | |
---|
370 | cmake -DTOL_INCLUDE_DIR=c:\users\toldevel\tolp\trunk\tol\CodeLite\Debug -DTOL_LIBRARY=C:\users\toldevel\tolp\trunk\tol\CodeLite\Debug\libtol.dll -DGSL_INCLUDE_SEARCH=C:\users\toldevel\external\TOL_DEVEL_MINGW32\debug\include -DGSL_LIBS_SEARCH=C:\users\toldevel\external\TOL_DEVEL_MINGW32\debug\lib -DCMAKE_BUILD_TYPE=Debug -G"CodeLite - MinGW Makefiles" ../.. |
---|
371 | |
---|
372 | ================== |
---|
373 | Compilar NLOPT |
---|
374 | ================== |
---|
375 | |
---|
376 | ================== |
---|
377 | Compilar IPOPT |
---|
378 | ================== |
---|
379 | |
---|
380 | wget http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.2.tgz |
---|
381 | tar zxf http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.2.tgz |
---|
382 | cd Ipopt-3.12.2/ThirdParty/Blas |
---|
383 | ./get.Blas |
---|
384 | cd Ipopt-3.12.2/ThirdParty/Lapack |
---|
385 | ./get.Lapack |
---|
386 | cd Ipopt-3.12.2/ThirdParty/ |
---|
387 | cd Ipopt-3.12.2/Mumps |
---|
388 | ./get.Mumps |
---|
389 | mkdir build |
---|
390 | cd build |
---|
391 | CFLAGS='-m32 -O2 -Wall -mno-align-double' CPPFLAGS=-DNDEBUG CXXFLAGS='-m32 -O2 -Wall -mno-align-double' ../configure --prefix=/usr/local/Ipopt-3-12.2 --enable-shared --enable-dependency-linking LD=ld |
---|
392 | make |
---|
393 | |
---|
394 | Mumps falla la compilacion hay que copiar el paso link y anadirle la opcion -Wl,--allow-multiple-definition luego retomar el paso make |
---|
395 | |
---|
396 | El resultado de esta compilacion debe ir a TolIpopt\CppTools\MinGW_32 y TolIpopt\CppTools\Ipopt-mingw32 |
---|
397 | |
---|