[GENERAL] Building PostgreSQL in Eclipse on Windows

2016-01-11 Thread Igal @ Lucee.org
Can anyone help me figure out how to run/debug PostgreSQL in Eclipse on 
Windows?  This is a cross post with 
http://stackoverflow.com/questions/34733991/building-postgresql-in-eclipse-on-windows 
:


I'm trying to build|PosgreSQL|in Eclipse CDT Mars on Windows using the 
MinGW-64 gcc 5.3.0


I installed|MSYS2|and used|pacman|to update all the software that came 
with it and install gcc etc.


I downloaded the PostgreSQL source code and tried to follow thedocs 
*but 
can't figure out where to download the 
dependencies?*1.|libreadline5-dev|, 2.|zlib1g-dev|, 3.|bison (YACC)|, 
4.|flex|and where to save them to on disk?


I ran|./configure --prefix=$HOME/project --enable-depend 
--enable-cassert --enable-debug|and it seems to have completed with no 
errors,*but I do not see anything at|$HOME/project|?*


I installed Eclipse CDT and added the include paths to the 
Environment:Screenshot of Eclipse Environment 



I imported the project as Existing Code as Makefile Project.

When I try to|build|the project Eclipse says|Info: Nothing to build for 
postgres|


When I try to run it a dialog box says|Unable to Launch. The selection 
can not be launched and there are no recent launches|


How can I run/debug PostgreSQL in Eclipse on Windows?

Thanks!



--

Igal Sapir
Lucee Core Developer
Lucee.org 



Re: [GENERAL] Building PostgreSQL in Eclipse on Windows

2016-01-11 Thread Michael Paquier
On Tue, Jan 12, 2016 at 10:32 AM, Igal @ Lucee.org  wrote:
> I downloaded the PostgreSQL source code and tried to follow the docs but 
> can't figure out where to download the dependencies? 1. libreadline5-dev, 2. 
> zlib1g-dev, 3. bison (YACC), 4. flex and where to save them to on disk?

Regarding bison and flex, you should have a look here:
http://www.postgresql.org/docs/devel/static/install-windows-full.html
For readline and zlib, you will save yourself a lot of pain by using
--without-readline and --without-zlib. For development purposes that's
surely fine to build without them.

> I ran ./configure --prefix=$HOME/project --enable-depend --enable-cassert 
> --enable-debug and it seems to have completed with no errors, but I do not 
> see anything at $HOME/project?

I would not think so, without bison in PATH ./configure would not
complete, and complain loudly.
-- 
Michael


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] Building PostgreSQL in Eclipse on Windows

2016-01-11 Thread Igal @ Lucee.org

On 1/11/2016 6:21 PM, John R Pierce wrote:
wait, are you trying to USE postgres on Eclipse on Windows, or BUILD 
it ?I would use the enterprisedb build of postgres-for-windows, 
and then you just need to install the appropriate postgresql jdbc jar 
file into Eclipse to be able to use it from your Eclipsed based 
development.

I'm trying to build from source, and hopefully be able to run in debug mode.



I ran|./configure --prefix=$HOME/project --enable-depend 
--enable-cassert --enable-debug|and it seems to have completed with 
no errors,*but I do not see anything at|$HOME/project|?*


that just sets up the makefiles... you now need to `make` and `make 
install` to build postgres, then put its binaries in your 'prefix' path.
thank you, I will try this as well as Michael's suggestions and let you 
guys know how it went.




Re: [GENERAL] Building PostgreSQL in Eclipse on Windows

2016-01-11 Thread John R Pierce

On 1/11/2016 5:32 PM, Igal @ Lucee.org wrote:
Can anyone help me figure out how to run/debug PostgreSQL in Eclipse 
on Windows?  This is a cross post with 
http://stackoverflow.com/questions/34733991/building-postgresql-in-eclipse-on-windows 
:


I'm trying to build|PosgreSQL|in Eclipse CDT



wait, are you trying to USE postgres on Eclipse on Windows, or BUILD it 
?I would use the enterprisedb build of postgres-for-windows, and 
then you just need to install the appropriate postgresql jdbc jar file 
into Eclipse to be able to use it from your Eclipsed based development.



I ran|./configure --prefix=$HOME/project --enable-depend 
--enable-cassert --enable-debug|and it seems to have completed with no 
errors,*but I do not see anything at|$HOME/project|?*


that just sets up the makefiles... you now need to `make` and `make 
install` to build postgres, then put its binaries in your 'prefix' path.



--
john r pierce, recycling bits in santa cruz