Fw: Re: Fw: Re: [Qgis-developer] Which compiler should I use to build example code?

Henri De Feraudy feraudyh at yahoo.com
Sun Nov 1 16:01:55 EST 2009


This mail below has been badly edited!
  Thanks to Jurgen I learned about import Libs (I'm a C++ newbie)
  A modification of Path fixes up the problem of finding the dll's and 
comparing the old version of the source file with the new version shows no difference.
So, I wonder if the fact that I am using Qt 4.5 (rather than 4.3) explains the problem 
 
program ...\timtut1.exe
file: global::qglobal.cpp
line 2030
 
QWidget: Must construct a Qapplication before a QPaint device.
 
Henri


--- On Sun, 11/1/09, Henri De Feraudy <feraudyh at yahoo.com> wrote:


From: Henri De Feraudy <feraudyh at yahoo.com>
Subject: Fw: Re: [Qgis-developer] Which compiler should I use to build example code?
To: qgis-developer at lists.osgeo.org
Date: Sunday, November 1, 2009, 9:46 PM







Hello,
 I tried your suggestion and now link works, and then I made cmake generation more verbose, and noticed it's what I should have been doing all along.
  Unfortunately I still have a problem qgis_core.dll cannot be found, yet I modified the path to
search in the directory where qgis_core.dll must lie, and also the place where geos_c.dll 
and gdal16.dll must lie.
 
The program begins to run and then I have a runtime error!
program ...\timtut1.exe
file: global::qglobal.cpp
line 2030
 
QWidget: Must construct a Qapplication before a QPaint device.
 
 
Is this due to an untested  last minute tweak of the sample code?
I have not touched the sample code myself!!
 
 
 
 
( Jurgen: Sorry I accidentally replied to your message, and too early
Henri


--- On Sun, 11/1/09, Jürgen E. Fischer <jef at norbit.de> wrote:


From: Jürgen E. Fischer <jef at norbit.de>
Subject: Re: [Qgis-developer] Which compiler should I use to build example code?
To: qgis-developer at lists.osgeo.org
Date: Sunday, November 1, 2009, 6:56 PM


Hi Henri,

On Sun, 01. Nov 2009 at 06:36:50 -0800, Henri De Feraudy wrote:
>    C:\Program Files\Quantum GIS\bin\qgis_core.dll : fatal error LNK1107:
>    invalid or corrupt file: cannot read at 0x2F0
>    (About the same mistake occurs when I use the osgeo release.)

Link with the .lib not with the .dll.

Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

-----Inline Attachment Follows-----


_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the Qgis-developer mailing list