Just pointing it to the library would be sufficient. <div><br></div><div>Matt<br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 10:21 AM, Mohammad Mirzadeh <span dir="ltr">&lt;<a href="mailto:mirzadeh@gmail.com">mirzadeh@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">So do you want to be able to compile PETSc with Eclipse or just point it to the library to use in your own applications?<div>
<div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 9:14 AM, Matt Bockman <span dir="ltr">&lt;<a href="mailto:mdbockma@ucsd.edu" target="_blank">mdbockma@ucsd.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Mohammad,<div><br></div><div>I&#39;ll give that a shot. I use Qt Creator for some GUI applications so I am familiar with it, but I&#39;ve never tried doing a non-Qt project in it. I&#39;d really like to get Eclipse to work. </div>



<div><br></div><div>Regarding the makefiles for eclipse. There are makefiles that it generates (which are for GNU make) but I think I can also manually create my makefiles. After sleeping on it, it seems like this might be the best option, unless I can figure out a way to configure eclipse to include the conf/variables and conf/rules files in the makefile. </div>



<div><br></div><div><font color="#888888">Matt</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 12:01 AM, Mohammad Mirzadeh <span dir="ltr">&lt;<a href="mailto:mirzadeh@gmail.com" target="_blank">mirzadeh@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">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.<div>





<br></div><div><font color="#888888">Mohammad</font><div><div></div><div><br><br><div class="gmail_quote">On Tue, Jul 26, 2011 at 7:22 PM, Barry Smith <span dir="ltr">&lt;<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
  There is a tiny bit of information in the PETSc users manual about Eclipse:<br>
<br>
\section{Eclipse Users} \sindex{eclipse}<br>
<br>
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 \<a href="mailto:trl%7Bpetsc-dev@mcs.anl.gov" target="_blank">trl{petsc-dev@mcs.anl.gov</a>}.<br>






<br>
To make PETSc an Eclipse package<br>
\begin{itemize}<br>
\item Install the Mecurial plugin for Eclipse and then import the PETSc repository to Eclipse.<br>
\item elected New-&gt;Convert to C/C++ project and selected shared library. After this point you can perform searchs in the code.<br>
\end{itemize}<br>
<br>
  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.<br>
\begin{itemize}<br>
\item In the user project source directory, create a symlink to the petsc/src directory.<br>
\item Refresh the project explorer in Eclipse, so the new symlink is followed.<br>
\item Right-click on the project in the project explorer, and choose &quot;Index -&gt; Rebuild&quot;. The index should now be build.<br>
\item Right-click on the PETSc symlink in the project explorer, and choose &quot;Exclude from build...&quot; to make sure Eclipse does not try to compile PETSc with the project.<br>
\end{itemize}<br>
<br>
We&#39;d love to have someone figure out how to do it right and include that information.<br>
<font color="#888888"><br>
   Barry<br>
</font><div><div></div><div><br>
On Jul 26, 2011, at 4:32 PM, Matt Bockman wrote:<br>
<br>
&gt; 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&#39;d like to link PETSc w/my application but I&#39;m not sure how to do this.<br>






&gt;<br>
&gt; Suggestions?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Matt<br>
<br>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>