[petsc-users] PETSc, C++ and Eclipse
Mohammad Mirzadeh
mirzadeh at gmail.com
Wed Jul 27 02:01:34 CDT 2011
Although this is sort of orthogonal to what you do right now, I recommend Qt
Creator as an alternative IDE to Eclipse. It links nicely with PETSc(or any
other library for that matter) and has excellent c/c++ support.
Mohammad
On Tue, Jul 26, 2011 at 7:22 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> There is a tiny bit of information in the PETSc users manual about
> Eclipse:
>
> \section{Eclipse Users} \sindex{eclipse}
>
> If you are interested in developing code that uses PETSc from Eclipse or
> developing PETSc in Eclipse and have knowledge of how to do indexing and
> build libraries in Eclipse please contact us at \trl{petsc-dev at mcs.anl.gov
> }.
>
> To make PETSc an Eclipse package
> \begin{itemize}
> \item Install the Mecurial plugin for Eclipse and then import the PETSc
> repository to Eclipse.
> \item elected New->Convert to C/C++ project and selected shared library.
> After this point you can perform searchs in the code.
> \end{itemize}
>
> A PETSc user has provided the following steps to build an Eclipse index
> for PETSc that can be used with their own code without compiling PETSc
> source into their project.
> \begin{itemize}
> \item In the user project source directory, create a symlink to the
> petsc/src directory.
> \item Refresh the project explorer in Eclipse, so the new symlink is
> followed.
> \item Right-click on the project in the project explorer, and choose "Index
> -> Rebuild". The index should now be build.
> \item Right-click on the PETSc symlink in the project explorer, and choose
> "Exclude from build..." to make sure Eclipse does not try to compile PETSc
> with the project.
> \end{itemize}
>
> We'd love to have someone figure out how to do it right and include that
> information.
>
> Barry
>
> On Jul 26, 2011, at 4:32 PM, Matt Bockman wrote:
>
> > Has anyone gotten PETSc to work w/Eclipse? Eclipse nicely generates all
> my makefiles for me for my current project (which is written in C++). I'd
> like to link PETSc w/my application but I'm not sure how to do this.
> >
> > Suggestions?
> >
> > Thanks,
> > Matt
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110727/a3b2a604/attachment.htm>
More information about the petsc-users
mailing list