Building Postgres in Eclipse

View: New views
8 Messages — Rating Filter:   Alert me  

Building Postgres in Eclipse

by Emmanuel Cecchet-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I am building Postgres using Eclipse with the CDT plugins (pre-packaged
distrib from eclipse.org). I am wondering if anyone else is using
Eclipse here?
If I am not the only one, we could setup a page on the Wiki explaining
how to setup the project under Eclipse and share our settings.

Cheers,
manu

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

Re: Building Postgres in Eclipse

by Dave Page-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 8, 2008 at 1:51 PM, Emmanuel Cecchet <manu@...> wrote:
> Hi all,
>
> I am building Postgres using Eclipse with the CDT plugins (pre-packaged
> distrib from eclipse.org). I am wondering if anyone else is using Eclipse
> here?
> If I am not the only one, we could setup a page on the Wiki explaining how
> to setup the project under Eclipse and share our settings.

I don't know of anyone else actually working that way, but I've
certainly heard of people wanting to. It would be good if you can
document what you've done for their benefit.

--
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

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

Re: Building Postgres in Eclipse

by Emmanuel Cecchet-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dave Page wrote:
> I don't know of anyone else actually working that way, but I've
> certainly heard of people wanting to. It would be good if you can
> document what you've done for their benefit.
>  
Any recommendation where I should setup the page?

manu

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

Re: Building Postgres in Eclipse

by Chris Mayfield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I am building Postgres using Eclipse with the CDT plugins (pre-packaged
> distrib from eclipse.org). I am wondering if anyone else is using
> Eclipse here?

I've been using Eclipse to build and debug postgres for the past couple
of years.  There's nothing to it really, since all it does is call make
and gdb for you.

> If I am not the only one, we could setup a page on the Wiki explaining
> how to setup the project under Eclipse and share our settings.

Here's what I've found works well, regardless of your platform:

Step 1, from a shell: configure and make postgres as usual

Step 2a, in Eclipse: New Project -> C Project -> Makefile project

Step 2b: uncheck "Use default location" and select the postgres source
dir (i.e. where you ran configure in step 1)

So basically you just tell Eclipse where the files are, and you're done.
  Once you create the project it takes a few minutes to index the code
for the first time (e.g. for jumping to declarations / references).

--Chris

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

Re: Building Postgres in Eclipse

by Dave Page-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 8, 2008 at 2:11 PM, Emmanuel Cecchet <manu@...> wrote:
> Dave Page wrote:
>>
>> I don't know of anyone else actually working that way, but I've
>> certainly heard of people wanting to. It would be good if you can
>> document what you've done for their benefit.
>>
>
> Any recommendation where I should setup the page?

Perhaps a 'Working with Eclipse' page under
http://wiki.postgresql.org/wiki/Development_information ?

--
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

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

Re: Building Postgres in Eclipse

by Emmanuel Cecchet-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dave,
> Perhaps a 'Working with Eclipse' page under
> http://wiki.postgresql.org/wiki/Development_information 
I have added a link at the bottom of the page.
All the info on how to use Eclipse with Postgres can be found at
http://wiki.postgresql.org/wiki/Working_with_Eclipse

All suggestions and comments are welcome of course.
Emmanuel

--
Emmanuel Cecchet
FTO @ Frog Thinker
Open Source Development & Consulting
--
Web: http://www.frogthinker.org
email: manu@...
Skype: emmanuel_cecchet


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

Re: Building Postgres in Eclipse

by Dave Page-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 10, 2008 at 9:14 PM, Emmanuel Cecchet <manu@...> wrote:
> Hi Dave,
>>
>> Perhaps a 'Working with Eclipse' page under
>> http://wiki.postgresql.org/wiki/Development_information
>
> I have added a link at the bottom of the page.
> All the info on how to use Eclipse with Postgres can be found at
> http://wiki.postgresql.org/wiki/Working_with_Eclipse

Very impressive - thanks for taking the time.

--
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

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

Re: Building Postgres in Eclipse

by Chris Mayfield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I have added a link at the bottom of the page.
> All the info on how to use Eclipse with Postgres can be found at
> http://wiki.postgresql.org/wiki/Working_with_Eclipse
>
> All suggestions and comments are welcome of course.
> Emmanuel

Looks great, thanks!

--Chris

--
Sent via pgsql-hackers mailing list (pgsql-hackers@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
LightInTheBox - Buy quality products at wholesale price!