[Qgis-developer] Building and debugging QGIS on Windows x64

Casper Børgesen (CABO) CABO at NIRAS.DK
Wed Oct 19 02:51:21 PDT 2016


Hi Frits

I think I read about double slashes causing problems somewhere, but I can’t remember where and in which situation. Your solution works just fine, but as you wrote it solves the symptom and not the cause, so it would be great to know where something is missing for both of us.

Thanks for helping me along the way ☺


Regards, Casper

From: Qgis-developer [mailto:qgis-developer-bounces at lists.osgeo.org] On Behalf Of Frits van Veen
Sent: 19. oktober 2016 09:42
To: qgis-developer at lists.osgeo.org
Subject: Re: [Qgis-developer] Building and debugging QGIS on Windows x64

Hi Casper

I don’t think the double slash is a problem.
I have a note regarding pyuic-wrapper. I changed pyuic-wrapper.bat and the ImportError goes away. This is probably not the optimal solution, but maybe it brings you a little further.

rem %PYTHON% %~dp0\pyuic-wrapper.py %5 %6 %7 %8 %9
%PYTHON% "C:\OSGeo4W64\apps\Python27\lib\site-packages\PyQt4\uic\pyuic.py" %5 %6 %7 %8 %9

Frits

From: Jürgen E. Fischer [via OSGeo.org] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=5291383&i=0>]
Sent: 19 October 2016 08:48
To: Frits van Veen
Subject: Re: Building and debugging QGIS on Windows x64

Hi Casper,

On Wed, 19. Oct 2016 at 06:21:40 +0000, Casper Børgesen (CABO) wrote:
> Thank you for your answer and your guidance. I used Jürgens advise and used
> the spatialite_i.lib instead and I got a bit further. I am now also able to
> run and debug a QGIS session, but I cannot use python either, which I really
> want to.

> I am using master_2 and building QGIS using "RelWithDebInfo", since "debug"
> gives me a lot of errors. Are the difference between the two, that using
> "debug" I'll be able to debug dependencies and not just the QGIS project?

No, the "Debug" uses another set of runtime libraries that have debugging code
in them (mainly for memory management), that makes them incompatible with the
original set.  So you also have to build the dependencies with those and end up
with two sets of everything.

"RelWithDebInfo" just adds the debugging information (and skips some
optimization) and hence enables debugging, but doesn't require the other set of
libraries.

> 263>    File "C:\QGIS\master_2\scripts\\pyuic-wrapper.py", line 26, in <module>
> 263>      import qgis.PyQt.uic.pyuic

> Has this got something to do with the double slash near pyuic-wrapper.py and
> in that case, where should I fix it? Or is this problem about something
> completely different?

Probably.  I guess you're running the development environment without the PATH
setup (like in package-nightly.cmd at the point where cmake --build %BUILDDIR%
--config %BUILDCONF% is invoked).


Jürgen

--
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode

_______________________________________________
Qgis-developer mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=5291369&i=0>
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[http://osgeo-org.1560.x6.nabble.com/images/icon_attachment.gif]attachment0 (844 bytes) Download Attachment<http://osgeo-org.1560.x6.nabble.com/attachment/5291369/0/attachment0>

________________________________
If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/Building-and-debugging-QGIS-on-Windows-x64-tp5291058p5291369.html
To unsubscribe from Building and debugging QGIS on Windows x64, click here.
NAML<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>

________________________________
View this message in context: RE: Building and debugging QGIS on Windows x64<http://osgeo-org.1560.x6.nabble.com/Building-and-debugging-QGIS-on-Windows-x64-tp5291058p5291383.html>
Sent from the Quantum GIS - Developer mailing list archive<http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-Developer-f4099106.html> at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161019/9c133d57/attachment-0001.html>


More information about the Qgis-developer mailing list