<div dir="ltr"><div><div><div><div><div>> Then I would copy the data files from my ubuntu system and run it up and see what happens.<br><br></div>This won't work. Data dumps are not portable. Please read this ticket and the tickets referenced in it:<br><br><a href="https://github.com/Project-OSRM/osrm-backend/issues/2242">https://github.com/Project-OSRM/osrm-backend/issues/2242</a><br><br>Wilhelm Berg automatically builds OSRM binaries with scripts at:<br><br><a href="https://github.com/mapbox/windows-builds">https://github.com/mapbox/windows-builds</a><br><a href="https://github.com/Project-OSRM/osrm-backend/blob/master/appveyor.yml#L32-L42">https://github.com/Project-OSRM/osrm-backend/blob/master/appveyor.yml#L32-L42</a><br><br></div>You can find the binaries at:<br><br><a href="http://build.project-osrm.org">http://build.project-osrm.org</a><br><br></div>Unfortunately, there are no Windows binaries for v5 yet (they will follow in the next days to weeks probably).<br>As far as I can remember, Wilhelm Berg is not on this mailinglist.<br>If you want to build v5 for Windows from source I would recommend opening an issue over at<br><br><a href="https://github.com/Project-OSRM/osrm-backend/issues">https://github.com/Project-OSRM/osrm-backend/issues</a><br><br>and then /cc @BergWerkGIS<br><br></div>Cheers,<br></div>Daniel J H<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 27, 2016 at 6:08 PM, John Aherne <span dir="ltr"><<a href="mailto:johnaherne@rocs.co.uk" target="_blank">johnaherne@rocs.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have made an attempt to get osrm running on windows.<div><br></div><div>So I thought I would download the release for windows which has the compiled files. This way I would not need to compile the complete system.</div><div><br></div><div>Then I would copy the data files from my ubuntu system and run it up and see what happens.</div><div><br></div><div>The message  got was  that 'the .hsgr file was prepared with a different build'.</div><div><br></div><div>So I checked. The windows build is 4.9.1 and the ubuntu is 4.9.0. I did not think this minor change would have affected the data structure so much.</div><div><br></div><div>I then downloaded the 4.9.1 files and rebuilt for 4.9.1 on ubuntu. Copied the files across to the windows system and lo and behold got the same result. Prepared on a different build.</div><div><br></div><div>Now I bite the bullet and decide to try and compile the system. I have no experience in c or c++ programming nor do I know anything about cmake or make files.</div><div><br></div><div>I pull together the different packages change the various x letters to where I have placed the files and start compiling.</div><div><br></div><div>I am using the batch files that come with the windows build files. I edited them to fit where I had placed the files.</div><div><br></div><div>One thing that came up was TBB was missing. So I download that and set it up.</div><div><br></div><div>Boost takes a long time to build but after various messing around I think it has build successfully.</div><div><br></div><div>Now I try to build osrm but is fails in the make file somewhere because it cannot find STXXL. It is looking in a x location but I cannot find where it is getting this information so I can change it to the correct place.</div><div><br></div><div><br></div><div>The issue at this point is that  STXXL does not compile. The log output is as follows:</div><div><br></div><div><div>D:\osrm_utils>build_stxxl.bat</div><div><br></div><div>D:\osrm_utils>SET PREFIX="d:/libs18d"</div><div><br></div><div>D:\osrm_utils>SET VARIANT=Release</div><div><br></div><div>D:\osrm_utils>rem for older MSVC than VS 2013</div><div><br></div><div>D:\osrm_utils>rem SET BOOST_ROOT="d:/libs18/boost"</div><div><br></div><div>D:\osrm_utils>rem git clone <a href="https://github.com/DennisOSRM/stxxl.git" target="_blank">https://github.com/DennisOSRM/stxxl.git</a></div><div><br></div><div>D:\osrm_utils>git clone <a href="https://github.com/stxxl/stxxl.git" target="_blank">https://github.com/stxxl/stxxl.git</a></div><div>fatal: destination path 'stxxl' already exists and is not an empty directory.</div><div><br></div><div>D:\osrm_utils>cd stxxl</div><div><br></div><div>D:\osrm_utils\stxxl>mkdir build</div><div>A subdirectory or file build already exists.</div><div><br></div><div>D:\osrm_utils\stxxl>cd build</div><div><br></div><div>D:\osrm_utils\stxxl\build>cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="d:/libs18d"</div><div>-- Detected git refspec 1.4.1-360-g5b9663e sha 5b9663e6b769748f3b3d3a9a779b4b89e24d7a27</div><div>-- OpenMP found, enabling built-in parallel algorithms.</div><div>-- Using std::thread and other C++11 library functions.</div><div>-- Configuring done</div><div>-- Generating done</div><div>-- Build files have been written to: D:/osrm_utils/stxxl/build</div><div><br></div><div>D:\osrm_utils\stxxl\build>rem for older MSVC than VS 2013</div><div><br></div><div>D:\osrm_utils\stxxl\build>rem cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="d:/libs18d" -DBOOST_ROOT="d:/libs/boost" -DBoost_USE_STATIC_LIBS=ON</div><div><br></div><div>D:\osrm_utils\stxxl\build>nmake install</div><div><br></div><div>Microsoft (R) Program Maintenance Utility Version 12.00.21005.1</div><div>Copyright (C) Microsoft Corporation.  All rights reserved.</div><div><br></div><div>[  2%] Building CXX object lib/CMakeFiles/stxxl.dir/common/log.cpp.obj</div><div>NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~2.0\VC\bin\X86_AM~1\cl.exe' : return code '0xc000007b'</div><div>Stop.</div><div>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'</div><div>Stop.</div><div>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'</div><div>Stop.</div><div><br></div><div>D:\osrm_utils\stxxl\build>cd ..</div><div><br></div><div>D:\osrm_utils\stxxl>cd ..</div><div><br></div><div>D:\osrm_utils></div></div><div><br></div><div>So if anyone has had any joy installing on windows and can point me in the direction to solve this problem I shall be very grateful.</div><div><br></div><div>If more information is needed let me know and I shall try to send it up.</div><div><br></div><div>Regards</div><div><br></div><div><br></div><div>John Aherne</div><div><br></div><div>The finale output I get if I ignore the STXXL problem and try to build osrm I get the following log output:</div><div><br></div><div><div>-- Boost version: 1.55.0</div><div>-- Found the following Boost libraries:</div><div>--   date_time</div><div>--   filesystem</div><div>--   iostreams</div><div>--   program_options</div><div>--   regex</div><div>--   system</div><div>--   thread</div><div>--   date_time</div><div>--   chrono</div><div>--   zlib</div><div>--   atomic</div><div>-- Found Intel TBB</div><div>-- Looking for LuaJIT 5.2</div><div>-- Could NOT find LUAJIT (missing:  LUAJIT_LIBRARIES)</div><div>-- Looking for Luabind...</div><div>-- Found Luabind: D:/libs18d/lib/luabind.lib</div><div>-- Looking for STXXL...</div><div>CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):</div><div>  Could NOT find STXXL (missing: STXXL_LIBRARY STXXL_INCLUDE_DIR)</div><div>Call Stack (most recent call first):</div><div>  C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)</div><div>  cmake/FindSTXXL.cmake:43 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)</div><div>  CMakeLists.txt:226 (find_package)</div><div><br></div><div><br></div><div>-- Configuring incomplete, errors occurred!</div><div>See also "D:/osrm_utils/Project-OSRM/build/CMakeFiles/CMakeOutput.log".</div><div>See also "D:/osrm_utils/Project-OSRM/build/CMakeFiles/CMakeError.log".</div><div><br></div><div>D:\osrm_utils\Project-OSRM\build>rem use for debug:</div><div><br></div><div>D:\osrm_utils\Project-OSRM\build>rem cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DSTXXL_LIBRARY="d:/libs18d"/lib/stxxl_debug.lib -DBZIP2_INCLUDE_DIR="d:/libs18d"/include -DBZIP2_LIBRARIES="d:/libs18d"/lib/libbz2.lib -DCMAKE_INSTALL_PREFIX="d:/libs18d" -DBOOST_ROOT="d:/libs/boost" -DBoost_USE_STATIC_LIBS=ON</div><div><br></div><div>D:\osrm_utils\Project-OSRM\build>nmake</div><div><br></div><div>Microsoft (R) Program Maintenance Utility Version 12.00.21005.1</div><div>Copyright (C) Microsoft Corporation.  All rights reserved.</div><div><br></div><div>NMAKE : fatal error U1064: MAKEFILE not found and no target specified</div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div><br></div><div><br clear="all"><div><br></div>-- <br><div><b>John Aherne</b><div><b><br></b><div><b><img src="http://www.rocs.co.uk/Images/rocs_logo_sig.gif"><br></b></div><div><b><br></b></div><div><div><b><a href="http://www.rocs.co.uk" target="_blank">www.rocs.co.uk</a><br></b></div></div></div><div>020 7223 7567</div></div>
</div></font></span></div>
<br>_______________________________________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>