<div dir="ltr"><div>MobilityDB is an OSGeo Community project</div><a href="https://www.osgeo.org/projects/mobilitydb/">https://www.osgeo.org/projects/mobilitydb/</a><div><br></div><div>A recurrent request from users is to have a Windows version</div><div><a href="https://github.com/MobilityDB/MobilityDB/issues/176">https://github.com/MobilityDB/MobilityDB/issues/176</a></div><div><br></div><div>We are able to generate a Windows version using msys2 both in Github</div><div><a href="https://github.com/MobilityDB/MobilityDB/actions/runs/5059343801/jobs/9080732581">https://github.com/MobilityDB/MobilityDB/actions/runs/5059343801/jobs/9080732581</a><br></div><div>and locally as in the script below.</div><div><br></div><div>Can someone instructs us how to package MobilityDB so it can be added using e.g. Stackbuilder (as it is done for PostGIS) to an existing PostgreSQL database in Windows ?</div><div><br></div><div>We have been struggling for long time to achieve this and haven't found a way to do it :-(</div><div><br></div><div>Many thanks for your help</div><div><br></div><div>Esteban</div><div><br></div><div>----------------------------------------------------------------------------------------------------<br></div><div>Install msys2 as explained in the web site below<br><a href="https://www.msys2.org/">https://www.msys2.org/</a><br><br>After executing the installer, do the following on the MSYS2 UCRT64 prompt<br><br>$ pacman -S mingw-w64-ucrt-x86_64-gcc<br>$ pacman -S mingw-w64-ucrt-x86_64-cmake<br>$ pacman -S mingw-w64-ucrt-x86_64-ninja<br>$ pacman -S mingw-w64-ucrt-x86_64-postgis<br>$ pacman -S mingw-w64-ucrt-x86_64-gsl<br>$ pacman -S git<br>$ pacman -Syyu<br>$ export PGDATA="C:/msys64/usr/local/pgsql/data"<br>$ export PGPORT=5434<br>$ initdb<br>$ pg_ctl start<br>$ createdb mydb<br>$ psql mydb<br>psql (15.1)<br>WARNING: Console code page (437) differs from Windows code page (1252)<br>         8-bit characters might not work correctly. See psql reference<br>         page "Notes for Windows users" for details.<br>Type "help" for help.<br><br>mydb=# SELECT version();<br>                                                 version<br>----------------------------------------------------------------------------------------------------------<br> PostgreSQL 15.1 on x86_64-w64-mingw32, compiled by gcc.exe (Rev7, Built by MSYS2 project) 12.2.0, 64-bit<br>(1 row)<br><br>mydb=# CREATE EXTENSION postgis;<br>CREATE EXTENSION<br>mydb=# SELECT postgis_full_version();<br>                                                 postgis_full_version<br>----------------------------------------------------------------------------------------------------------------------<br> POSTGIS="3.3.1 3786b21" [EXTENSION] PGSQL="150" GEOS="3.9.1-CAPI-1.14.2" PROJ="9.2.0" LIBXML="2.10.3" LIBJSON="0.16"<br>(1 row)<br>---------------------------------------------------------------------------------<br><br>After this first step continue building MobilityDB<br><br>$ git clone <a href="https://github.com/MobilityDB/MobilityDB.git">https://github.com/MobilityDB/MobilityDB.git</a><br>$ cd MobilityDB/<br>$ mkdir build<br>$ cd build<br>$ git checkout develop<br>$ cmake ..<br>$ cmake --build .<br>$ cmake --install .<br><br>Edit the file C:\msys64\usr\local\pgsql\data\postgresql.conf with your favorite editor (e.g. Notepad++) and add at the end the following lines<br><br>shared_preload_libraries = 'postgis-3.dll'<br>max_locks_per_transaction = 128<br>timezone = 'UTC'<br>parallel_tuple_cost = 100<br>parallel_setup_cost = 100<br>force_parallel_mode = off<br>min_parallel_table_scan_size = 0<br>min_parallel_index_scan_size = 0<br><br>Continue on the MSYS2 UCRT64 prompt<br><br>$ pg_ctl restart<br>$ psql mydb<br>psql (15.1)<br>WARNING: Console code page (437) differs from Windows code page (1252)<br>         8-bit characters might not work correctly. See psql reference<br>         page "Notes for Windows users" for details.<br>Type "help" for help.<br><br>mydb=# create extension mobilitydb;<br>CREATE EXTENSION<br>mydb=# select mobilitydb_full_version();<br>                               mobilitydb_full_version<br>--------------------------------------------------------------------------------------<br> MobilityDB 1.1.0, PostgreSQL 15.1, PostGIS 3.3.1, GEOS 3.9.1-CAPI-1.14.2, PROJ 9.2.0<br>(1 row)<br><br>mydb=# select tfloat '1@2000-01-01';<br>          tfloat<br>--------------------------<br> 1@2000-01-01 00:00:00+00<br>(1 row)<br>------------------------------------------------------------<br></div><div><div><br></div></div><div>Regards</div><div><br></div><div>Esteban</div><div><br></div></div>