postgrespro/jsquery

Building on Windows

alexeyfadeev opened this issue · 3 comments

I need help in building JsQuery extension for Windows to use with PostgreSQL 9.4 for Windows.

I will try. Thanks!

I have done it. Works fine.

I have forked and made branch 'windows' with Visual Studio project.
https://github.com/alexeyfadeev/jsquery/tree/windows
Developers can add this branch to main jsquery repository, if they find this useful.

Win Flex-bison is required for compilation. Installing instruction here: http://sourceforge.net/p/winflexbison/wiki/Visual%20Studio%20custom%20build%20rules/

After install open [win flex-bison folder]/custom_build_rules/win_flex_bison_custom_build.props
Change <OutputFile>%(Filename).tab.cpp</OutputFile> to <OutputFile>%(Filename).c</OutputFile>
<DefinesFile>%(Filename).tab.h</DefinesFile> to <DefinesFile>%(Filename).h</DefinesFile>
<OutputFile>%(Filename).flex.cpp</OutputFile> to <OutputFile>%(Filename).c</OutputFile>