[petsc-users] PETSc/VC12 compilation
Abilash Nair
abilash at gmail.com
Tue Jan 14 15:36:30 CST 2014
Thanks Satish, I was able to get to a successful petsc build.
In a related question: could you please direct me to the version of slepc
that compiles well with this installation of petsc? also, are there any
special configurations that you would recommend for a VS2012-slepc build?
Thanks,
Abilash.
On Tue, Jan 14, 2014 at 3:25 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> Configure Options: --configModules=PETSc.Configure
> --optionsModule=PETSc.compilerOptions --with-mpi=0
> --download-f2cblaslapack=1 --with-fc=0 --with-cxx="win32fe cl"
> --with-debugging=1 --useThreads=0
>
> You've removed the option: --with-cc="win32fe cl"
>
> You need both: --with-cc="win32fe cl" --with-cxx="win32fe cl"
>
> Suggest:
>
> rm -rf arch-mswin-c-debug
> rerun configure...
>
> Satish
>
> On Tue, 14 Jan 2014, Abilash Nair wrote:
>
> > Thank you Satish for that input. I had a successful build and test on
> > cygwin, However I notice two things: a) when I make a test case, say ex1,
> > the make calls gcc; instead of win32fe cl and b) The petsc archive
> created
> > is a ".a" extension, my assumption was that a ".lib" would be generated
> in
> > this exercise. In any case, I am unable to build "ex1" as a project in
> > VS2012, is there some flags that I need to play around with?
> >
> > I send the config, make and test logs with this email.
> >
> > Thank you greatly,
> > Abilash.
> >
> >
> > On Tue, Jan 14, 2014 at 11:37 AM, Satish Balay <balay at mcs.anl.gov>
> wrote:
> >
> > > Try adding configure option: --with-cxx='win32fe cl'
> > >
> > > Satish
> > >
> > > On Tue, 14 Jan 2014, Abilash Nair wrote:
> > >
> > > > Hello all,
> > > >
> > > > I am trying to build petsc to use as a library on a visual C++
> project.
> > > >
> > > > I configured the petsc (v3.4.3) with VC++ 2012 under the shell
> provided
> > > by
> > > > VC2012 with the following command (in cygwin):
> > > >
> > > > ./config/configure.py --with-mpi=0 --download-f2cblaslapack=1
> --with-fc=0
> > > > --with-cc='win32fe cl' --with-debugging=1
> > > >
> > > > then I did a make all; make test while still in cygwin. I have sent
> the
> > > log
> > > > file outputs from these commands. As the files show, I am able to
> make
> > > with
> > > > no errors at all, however I am unable to execute any of the tests
> (error
> > > > being that a libstcc++.lib not found).
> > > >
> > > > I hope you would be able to suggest a path forward.
> > > >
> > > > Thanks!
> > > > Abilash.
> > > >
> > >
> > >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140114/e91becae/attachment.html>
More information about the petsc-users
mailing list