<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16939" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=243380208-13112009>Hello, Rob,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=243380208-13112009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=243380208-13112009><FONT color=#0000ff>> <FONT face="Times New Roman" 
size=3>Does anyone know what other dependencies are 
involved?</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=243380208-13112009><FONT face=Arial size=2>That depends, among 
other things, on what drivers you have included in your GDAL. Under Windows, 
there's an excellent program for this called depends.exe (a.k.a. Dependency 
Walker), which is either included with your MSVC or it can be downloaded from 
the net. Run it on your qgis.exe, and you'll find the complete dependency 
tree, and more. Useful to count the number of missing dlls, even more 
useful to verify that your program loads its dlls from the right files 
(spot debug/release + old version mixups).</FONT></SPAN></DIV>
<DIV><SPAN class=243380208-13112009><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=243380208-13112009><FONT face=Arial size=2>S</FONT></SPAN><SPAN 
class=243380208-13112009><FONT face=Arial size=2>jur  
:-)<BR></FONT></DIV></SPAN>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> qgis-user-bounces@lists.osgeo.org 
[mailto:qgis-user-bounces@lists.osgeo.org] <B>On Behalf Of 
</B>InterRob<BR><B>Sent:</B> 12. november 2009 10:56<BR><B>To:</B> 
qgis-user@lists.osgeo.org<BR><B>Subject:</B> Re: [Qgis-user] Debugging QGIS 
using MSVC<BR></FONT><BR></DIV>
<DIV></DIV>Hi All,
<DIV><BR></DIV>
<DIV>Thanks Jurgen & Sjur; that helped a bit.</DIV>
<DIV><BR></DIV>
<DIV>I found the INSTALL.vcproj; it indeed copies the files to my Program Files 
folder (after I granted myself access; note the Vista/Windows 7 superuser 
system) by some cmake rules. I put the Qt binary folder in my path. Then still I 
need to copy some fies by hand; think of gdal, geos, proj, libpq.dll and some 
from the GnuWin32 dependencies (as instructed by the PDF manual dealing with 
building / compiling QGIS from source).
<DIV><BR></DIV>
<DIV>Anyhow, QGIS.exe now still complains about missing DLLs; currently: 
SSLEAY32.dll</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><BR></DIV>
<DIV>Does anyone know what other dependencies are involved?</DIV>
<DIV><BR></DIV>
<DIV>Thanks in advance for your reply,</DIV>
<DIV>Rob</DIV>
<DIV><BR>
<DIV class=gmail_quote>2009/11/11 Sjur Kolberg <SPAN dir=ltr><<A 
href="mailto:Sjur.A.Kolberg@sintef.no">Sjur.A.Kolberg@sintef.no</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
  <DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2>Rob,</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>I haven't 
  actually built QGIS myself, but in general you need to make all necessary dlls 
  available to your .exe file, also for debugging. This means in the same 
  folder, or in a folder that's included in your path. Beware that these 
  may include both dlls that you compile as a part of the QGIS solution, and 
  pre-compiled dlls that you have downloaded in binary form.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>It is 
  quite common that multi-project solutions in Visual Studio put their binaries 
  in project-specific folders, typically /Debug and /Release at the same level 
  as each .vcproj file resides. This leaves it to you to (manually or by 
  setting some poist-build events) copy all dlls and .exes into the right 
  (common) place.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>VS will 
  always ask for executable when you try to debug a dll; naturally since a dll 
  needs to be run by an application (.exe file). qgis.exe will be the natural 
  choice here, be sure to pick the right of the debug or release 
  version.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>I tend to 
  create a /bin catalogue (and a /debbin, for debug versions) at the solution 
  directory level (where the .sln file is) , and either direct or copy the 
  linker output (.dlls and .exes) here.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>BTW, I 
  also copy all .lib files to a common /lib folder (/deblib), and the .h files 
  to a common /include folder, and make sure that either VS or all the projects 
  look in these folders for libraries and include files. This seems to be OK in 
  your case, if everyting builds nicely.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Good 
  luck,</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2>Sjur K :-)</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN> </DIV><FONT face=Arial color=#0000ff 
  size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><BR>
  <DIV lang=en-us dir=ltr align=left>
  <HR>
  <FONT face=Tahoma size=2><B>From:</B> <A 
  href="mailto:qgis-user-bounces@lists.osgeo.org" 
  target=_blank>qgis-user-bounces@lists.osgeo.org</A> [mailto:<A 
  href="mailto:qgis-user-bounces@lists.osgeo.org" 
  target=_blank>qgis-user-bounces@lists.osgeo.org</A>] <B>On Behalf Of 
  </B>InterRob<BR><B>Sent:</B> Wednesday, November 11, 2009 10:21 
  PM<BR><B>To:</B> <A href="mailto:qgis-user@lists.osgeo.org" 
  target=_blank>qgis-user@lists.osgeo.org</A><BR><B>Subject:</B> [Qgis-user] 
  Debugging QGIS using MSVC<BR></FONT><BR></DIV>
  <DIV>
  <DIV></DIV>
  <DIV class=h5>
  <DIV></DIV>Dear list, 
  <DIV><BR></DIV>
  <DIV>It has been quite a struggle to get QGIS to compile on my PC using MS 
  Visual Studio 8 (2005). At the moment, it seems like all binaries compile 
  correctly, but all in separate folders... Executing QGIS.exe ( 
  (...)\qgis-1.3.0\build\src\app\debug\qgis.exe) results in a message of missing 
  dlls.</DIV>
  <DIV><BR></DIV>
  <DIV>How am I supposed to Run / Debug QGIS from MSVC? Pressing the "play" 
  button, MSVC asks for which executable file to be used for the debug 
  session.</DIV>
  <DIV><BR></DIV>
  <DIV>Any help is appreciated. I guess I need some post-linking process that 
  copies newly built QGIS files? And some more static Qt binaries.</DIV>
  <DIV><BR></DIV>
  <DIV><BR></DIV>
  <DIV>Rob</DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>