Thread: Fwd: [pgsql-hackers-win32] Build with Visual Studio & MSVC
(missed the mailing list last time) Hi William, Thanks for the steps to succeed with vcproject. I am sure that there will be a few more tweaks involved (like setting VC's include path etc.). I will try to build it and consult/inform you if there is any deviation from the README. This will work as a starting point in understanding the requirements for what I intend to do. As Magnus mentioned earlier, I also wish to create the project that will not include the source files like 'vcproject' does; instead, it will contain just the dsp and the dsw (VC 6) files. Somebody interested in working with newer versions of VS can use it's feature to upgrade these formats to the respective version. Chris, the on initial cursory look, the msvcgen.sh file stored in the attic shows that your project uses some tool called jam to do the magic. I would really love to have this functionality in the new port we are developing. I will look deeper into it. Thomas, I love the idea of eclipse; any platform, any language, one IDE. I am downloading it right now. Can you please send in the steps that you perform to setup the environment, including mingw toolkit; I will try to grow on that. The idea of this effort is to have a GUI IDE, with a slew of features that MSVC offers: Memory window that allows you to edit memory inplace, call-stack window, watches, quick-expression evaluater with class/struct support, etc. etc. . If Eclipse can offer all these, then I dont think anyone would mind using it insead of MSVC. <Jonah> ...If you have a grudge, do something about it... ...a lot of us have more important things to work on thansimple porting... </Jonah> That's exactly the point Mr Jonah. I am trying to do something, and trying to leverage from the past experiences of others in the community. Looking at these handful of the responses, it seems that I am not alone in the quest for using a better IDE!!! And, no one is forced to respond to a mail to criticize, rather than help. If it is such a 'simple porting', may I ask why hasn't it been attempted successfuly in so many years of PG's history? At least I dont see anybody documening any such procedure. This 'simple porting' will allow and pull-in a lot more talented devs than you and I. Wish me luck in this effort Mr Jonah. Gurjeet.
Gurjeet Singh wrote: > Thomas, I love the idea of eclipse; any platform, any language, > one IDE. I am downloading it right now. Can you please send in the > steps that you perform to setup the environment, including mingw > toolkit; I will try to grow on that. My setup is pretty basic. I can't give you an exact step by step instruction since it's been a while since I last did it. I installed msys, mingw, Eclipse. and then, using the Eclipse update manager and the 'Callisto' site, I installed the C/C++ plugin. I also made sure that the PATH in effect for the Eclipse IDE contains entries for the %MSYS_HOME%\bin and %MINGW_HOME%\bin. That's it basically. > The idea of this effort is to > have a GUI IDE, with a slew of features that MSVC offers: Memory > window that allows you to edit memory inplace, call-stack window, > watches, quick-expression evaluater with class/struct support, etc. > etc. . If Eclipse can offer all these, then I dont think anyone would > mind using it insead of MSVC. > Eclipse won't offer all of these. Not yet anyway. What you get is a fair C/C++ editor and parsers for your make output that will annotate your files with errors and warnings. There's said to be some debugging support too on top of gdb, but to be honest, I've never tried it on Windows. I do my C-debugging using gdb on Linux. My attempts to use gdb on Windows have been quite futile so far. Then again, I'm not using the latest MinGW version so perhaps there's still hope. All in all, Eclipse C/C++ has some way to go before it can match up with MSVC. My point was that you can do Windows development without MSVC and you can do it fairly well. If you are a Linux hacker, you might even prefer doing it that way. So as a platform, Windows is not by any means "left alone". I really think that what you and others are trying to accomplish is very valuable. If not for me (since I'm mixing Java and C and work on multiple platforms) then certainly for many others. Personally, I'd rather see a Visual Studio port than one for VC++6.0. I wish you the best of luck. Regards, Thomas Hallgren
Hi All, I know it has been over a week now since I said that I'll put together a document that describes how to debug postgres using Eclipse IDE on Windows. I have finally completed the first draft and uploaded it here: http://www.geocities.com/gurjeet79/pg_on_eclipse.txt And here's a screenshot of the fruits it'd bear if someone tries to follow it and go through with it: http://www.geocities.com/gurjeet79/pg_on_eclipse.jpg Hope it helps to get more people more familiar with the postgres code. Thomas, thanks a lot for the background. IMO, now Eclipse + CDT is very close to MSVC / VS.Net in terms of the features that I was looking for. The debugger is well integrated now, and I haven't had any issues in this last one week. Since you said that you haven't tried debugging on Windows, I'd request you to go through this document and see if you like what you finally can do within Eclipse. Any inputs on the document will be appreciated. Thanks, Gurjeet. On 5/8/06, Thomas Hallgren <thomas@tada.se> wrote: > Gurjeet Singh wrote: > > Thomas, I love the idea of eclipse; any platform, any language, > > one IDE. I am downloading it right now. Can you please send in the > > steps that you perform to setup the environment, including mingw > > toolkit; I will try to grow on that. > > My setup is pretty basic. I can't give you an exact step by step instruction since it's been > a while since I last did it. I installed msys, mingw, Eclipse. and then, using the Eclipse > update manager and the 'Callisto' site, I installed the C/C++ plugin. > > I also made sure that the PATH in effect for the Eclipse IDE contains entries for the > %MSYS_HOME%\bin and %MINGW_HOME%\bin. That's it basically. > > > > The idea of this effort is to > > have a GUI IDE, with a slew of features that MSVC offers: Memory > > window that allows you to edit memory inplace, call-stack window, > > watches, quick-expression evaluater with class/struct support, etc. > > etc. . If Eclipse can offer all these, then I dont think anyone would > > mind using it insead of MSVC. > > > Eclipse won't offer all of these. Not yet anyway. What you get is a fair C/C++ editor and > parsers for your make output that will annotate your files with errors and warnings. There's > said to be some debugging support too on top of gdb, but to be honest, I've never tried it > on Windows. I do my C-debugging using gdb on Linux. My attempts to use gdb on Windows have > been quite futile so far. Then again, I'm not using the latest MinGW version so perhaps > there's still hope. > > All in all, Eclipse C/C++ has some way to go before it can match up with MSVC. My point was > that you can do Windows development without MSVC and you can do it fairly well. If you are a > Linux hacker, you might even prefer doing it that way. So as a platform, Windows is not by > any means "left alone". > > I really think that what you and others are trying to accomplish is very valuable. If not > for me (since I'm mixing Java and C and work on multiple platforms) then certainly for many > others. Personally, I'd rather see a Visual Studio port than one for VC++6.0. I wish you the > best of luck. > > Regards, > Thomas Hallgren > >
Gurjeet, > I know it has been over a week now since I said that I'll put > together a document that describes how to debug postgres using Eclipse > IDE on Windows. I have finally completed the first draft and uploaded > it here: Hey, are you a member of the Eclipse Project? Mike was bugging me a few months ago about wanting more involvement by PostgreSQL people in their Data Tools project. -- Josh Berkus Aglio Database Solutions San Francisco
No I am not... I used Eclipse for the first time just last week. But yes, I wish to contribute to the CDT plugin. I think their Indexer is a bit slow... it takes more than an hour (about two hours) to index postgres' source code!!! Also, I just noticed that the background gdb crashes when trying to open an uninitialized structure in the 'Variables' view. If you are talking about, Mike Taylor from Eclipse, (http://www.eclipse.org/org/elections/candidate.php?year=2006&id=mtaylor), then I'd be delighted to get in touch with him and see if Postgres and Eclipse can work more closely. Gurjeet. On 5/15/06, Josh Berkus <josh@agliodbs.com> wrote: > Gurjeet, > > > I know it has been over a week now since I said that I'll put > > together a document that describes how to debug postgres using Eclipse > > IDE on Windows. I have finally completed the first draft and uploaded > > it here: > > Hey, are you a member of the Eclipse Project? Mike was bugging me a few > months ago about wanting more involvement by PostgreSQL people in their Data > Tools project. > > -- > Josh Berkus > Aglio Database Solutions > San Francisco >
Josh, I'm the lead architect of the Eclipse Buckminster project (www.eclipse.org/buckminster). I'd be happy to help the guys from data tools with PostgreSQL if there's anything I can do. Not sure what that would be though. Which Mike is it you're referring to? Regards, Thomas Hallgren Gurjeet Singh wrote: > No I am not... I used Eclipse for the first time just last week. > But yes, I wish to contribute to the CDT plugin. I think their Indexer > is a bit slow... it takes more than an hour (about two hours) to index > postgres' source code!!! Also, I just noticed that the background gdb > crashes when trying to open an uninitialized structure in the > 'Variables' view. > > If you are talking about, Mike Taylor from Eclipse, > (http://www.eclipse.org/org/elections/candidate.php?year=2006&id=mtaylor), > > then I'd be delighted to get in touch with him and see if Postgres and > Eclipse can work more closely. > > Gurjeet. > > On 5/15/06, Josh Berkus <josh@agliodbs.com> wrote: >> Gurjeet, >> >> > I know it has been over a week now since I said that I'll put >> > together a document that describes how to debug postgres using Eclipse >> > IDE on Windows. I have finally completed the first draft and uploaded >> > it here: >> >> Hey, are you a member of the Eclipse Project? Mike was bugging me a >> few >> months ago about wanting more involvement by PostgreSQL people in >> their Data >> Tools project. >> >> -- >> Josh Berkus >> Aglio Database Solutions >> San Francisco >>
I just recently came to know that geocities.com is down. It is accessible from geocities.yahoo.com though, but my site is still not accessible. I had deleted my local copy, relying on the gecities, and almost lost it; but then I twisted some knobs in geocities.yahoo.com to get the file back... Since I almost lost it, I thought it'd be a good idea to mail it across to everyone this time, so that there is at least one source when needed....!!! Regards, Gurjeet. On 5/15/06, Thomas Hallgren <thomas@tada.se> wrote: > Josh, > I'm the lead architect of the Eclipse Buckminster project > (www.eclipse.org/buckminster). I'd be happy to help the guys from data > tools with PostgreSQL if there's anything I can do. Not sure what that > would be though. Which Mike is it you're referring to? > > Regards, > Thomas Hallgren > > Gurjeet Singh wrote: > > No I am not... I used Eclipse for the first time just last week. > > But yes, I wish to contribute to the CDT plugin. I think their Indexer > > is a bit slow... it takes more than an hour (about two hours) to index > > postgres' source code!!! Also, I just noticed that the background gdb > > crashes when trying to open an uninitialized structure in the > > 'Variables' view. > > > > If you are talking about, Mike Taylor from Eclipse, > > (http://www.eclipse.org/org/elections/candidate.php?year=2006&id=mtaylor), > > > > then I'd be delighted to get in touch with him and see if Postgres and > > Eclipse can work more closely. > > > > Gurjeet. > > > > On 5/15/06, Josh Berkus <josh@agliodbs.com> wrote: > >> Gurjeet, > >> > >> > I know it has been over a week now since I said that I'll put > >> > together a document that describes how to debug postgres using Eclipse > >> > IDE on Windows. I have finally completed the first draft and uploaded > >> > it here: > >> > >> Hey, are you a member of the Eclipse Project? Mike was bugging me a > >> few > >> months ago about wanting more involvement by PostgreSQL people in > >> their Data > >> Tools project. > >> > >> -- > >> Josh Berkus > >> Aglio Database Solutions > >> San Francisco > >> > >