jsquery icon indicating copy to clipboard operation
jsquery copied to clipboard

Building on Windows

Open alexeyfadeev opened this issue 9 years ago • 3 comments

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

alexeyfadeev avatar Jul 24 '15 02:07 alexeyfadeev

Could you try this instruction?

https://wiki.postgresql.org/wiki/Building_and_Installing_PostgreSQL_Extension_Modules#Windows_with_Microsoft_Visual_Studio

akorotkov avatar Jul 24 '15 09:07 akorotkov

I will try. Thanks!

alexeyfadeev avatar Jul 24 '15 09:07 alexeyfadeev

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>

alexeyfadeev avatar Jul 30 '15 05:07 alexeyfadeev