<div dir="ltr">What does cygcheck.exe have to say about it?<div><br></div><div>A</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 25, 2013 at 6:05 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, 25 Sep 2013, Satish Balay wrote:<br>
<br>
> On Wed, 25 Sep 2013, Aron Ahmadia wrote:<br>
><br>
> > The Fortran test failed, I'm not going to bother looking into it.<br>
> ><br>
> > CMake is happily dumping the output library, cygpetsc.dll, in<br>
> > $PETSC_DIR/$PETSC_ARCH<br>
> ><br>
> > According to the wizards at Microsoft/Cygwin, DLLs belong in bin/, so they<br>
> > end up on the PATH when somebody tries to do an import.<br>
><br>
> I guess one can do 'export PATH=$PATH:$PETSC_DIR/PETSC_ARCH/lib' to get the dll<br>
><br>
> But somehow It doesnt' work for me.<br>
><br>
> Also - I'm not sure this [dll] change should go into petsc-3.4. Since<br>
> --with-shared-libraries=1 is the configure default - now petsc-3.4<br>
> users will get a dll - that requies a PATH to be set [for it work]<br>
><br>
> Also - how is this supporsed to work? I set PATH - but still get errors..<br>
><br>
> balay@msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials<br>
> $ echo $PATH<br>
> /home/balay/petsc.test/arch-gnu-ini/lib:/bin:/usr/bin<br>
><br>
> balay@msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials<br>
> $ ls -l /home/balay/petsc.test/arch-gnu-ini/lib<br>
> total 145820<br>
> -rwxr-xr-x  1 balay None 149317546 Sep 25 16:38 libpetsc.dll<br>
> drwxr-xr-x+ 1 balay None         0 Sep 25 16:34 modules<br>
> drwxr-xr-x+ 1 balay None         0 Sep 25 16:34 pkgconfig<br>
><br>
> balay@msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials<br>
> $ ./ex2<br>
> /home/balay/petsc.test/src/ksp/ksp/examples/tutorials/ex2.exe: error while loading shared libraries: libpetsc.dll: cannot open shared object file: No such file or directory<br>
><br>
<br>
</div></div>ldd can find it though...<br>
<br>
balay@msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials<br>
$ ldd ex2.exe<br>
        ntdll.dll => /cygdrive/c/Windows/SysWOW64/ntdll.dll (0x770b0000)<br>
        kernel32.dll => /cygdrive/c/Windows/syswow64/kernel32.dll (0x74e00000)<br>
        KERNELBASE.dll => /cygdrive/c/Windows/syswow64/KERNELBASE.dll (0x74c90000)<br>
        cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)<br>
        libpetsc.dll => /home/balay/petsc.test/arch-gnu-ini/lib/libpetsc.dll (0x6b1c0000)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Satish<br>
</font></span></blockquote></div><br></div>