git clone http://github.com/LuaDist/luasql-postgresql.git
cd luasql-postgresql
cmake -G "Visual Studio 11 Win64" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=r:/libs
(в r:/libs должны лежать Lua и библиотеки PostgreSql)
Нужно знать конкретную версию Lua и Postgresql (с другими потом не заработает). Если нужно, скажите версии - соберу (это 5 минут).
Cmake -верно. Еще нужна студия или Windows sdk. Lua перед этим тоже придется собрать из соседнего репозитория и проинсталлировать в r:/libs В дистрибутиве postrgresql должны быть include-файлы и .lib-файлы (их положить в соотв. папки)
Должно быть достаточно (у нас полная версия по DreamSpark, так что не пробовал). Если вдруг не хватит стандартных библиотек, можно доустановить Windows 8 SDK.
Вместо запуска cmake из консоли можно пользоваться cmake-gui .
Вот моя инструкция по сборке osrm с батниками (там есть Lua): https://gist.github.com/alex85k/8637217
Thanks for compiling OSRM in windows. I tried to do it myself, but failed
Would you be so kind to share your complete project; incl boost, lua, protobuf etcetera?
I’ve seen these topics and tried them last week. Thanks to your reply I tried that again.
The first 4 steps of the readme are compiled without errors. The final step (compiling OSRM) fails with an error: Could not find the following static Boost libraries: boost_zlib. Do you use the same parameters as Alex wrote?
In Alex’ topic there are two different commands for compiling boost: with and without sZLIB_SOURCE. I tried them both. Using VS2013 64 bits.
Oh, I am sorry. Boost-ZLIB is actually needed by boost-iostreams (I’ll recheck bat file and recompile from scratch on VS2013, maybe updating to latest development version of OSRM). It is better to compile Boost with sources of BZIP and ZLIB
Fixed instructions and batch files for VS 2013 (now with needed ZLIB), added better library repositories:
Beware boost 1.55 incompatibility with VS2013 - the fix is described in readme.txt
Подправил инструкцию по сборке, теперь она работает (пересобрал всё заново для проверки)
Boost 1.55 приходится пропатчить для совместимости с VS2013, файлик для замены прилагается. https://gist.github.com/alex85k/8637217#file-readme-txt
Thanks for the update.
I followed the new instructions. It works almost.
When I use in the build_boost.bat “bjam toolset=msvc address-model=64 runtime-link=shared --prefix=%PREFIX% -sBZIP2_SOURCE=”%src%\bzip2-1.0.6" -sZLIB_SOURCE=“%src%\zlib-1.2.8” install" I get this error at the final build (OSRM): libboost_program_options-vc120-mt-1_55.lib(value_semantic.obj) : fatal error LNK1112: module machine type ‘x64’ conflicts with target machine type ‘X86’
I also see this message: “Building on a 32 bit system is unsupported”. Looking in CMakeLists.txt I see there is a test. I see what I did wrong: I opened the prompt via “Developer Command Prompt for VS2013”. Maybe you can mention to open the prompt by selecting “VS2013 x64 Cross Tools Command Prompt”? Anyway I started completely clean (deleted everything).
I’ve a small remark regarding build_base.bat: when you install libxml2 there is no version number in the path
I used these commands in the batfile:
git clone git://git.gnome.org/libxml2
rem cd libxml2-2.9.0/win32
cd libxml2/win32
In build_stxxl.bat please use %BOOST_ROOT% in the argument
Regarding stxxl, there is indeed no patch needed with vs2013 64bits.
When compiling the OSRM project I get at the end some weird externals errors. It looks like he still tries to compile in 32 bit mode. Here is the logfile: http://pastebin.com/aHQEjGRS
It seems you are using old 32 bit build of libxml2 (before starting x64 command prompt). I have tested bat-file on unpacked sources from ftp ftp://xmlsoft.org/libxml2/libxml2-sources-2.9.0.tar.gz
Problems should stop after recompiling it in correct console (I hope your Windows is 64 bit? Use “x64 Native Tools” command prompt) (remove old 32 bit libxml files from /libs)
I started new. Using “VS2013 x64 Native Tools Command Prompt”, sorry I missed your “Variant 0”.
Now I get this error when compiling OSRM:
XMLParser.cpp.obj : error LNK2019: unresolved external symbol BZ2_bzReadOpen referenced in function “struct _xmlTextReader * __cdecl inputReaderFactory(char const *)” (?inputReaderFactory@@YAPEAU_xmlTextReader@@PEBD@Z)
In total 4 errors for the extractor, see the last lines in pastebin.