Fw: Re: Which compiler should I use to build example code?

2 messages Options
Embed this post
Permalink
Henri De Feraudy

Fw: Re: Which compiler should I use to build example code?

Reply Threaded More More options
Print post
Permalink
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 <[hidden email]> wrote:

From: Jürgen E. Fischer <[hidden email]>
Subject: Re: [Qgis-developer] Which compiler should I use to build example code?
To: [hidden email]
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@...
http://lists.osgeo.org/mailman/listinfo/qgis-developer

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Mailing Lists-3

Re: Fw: Re: Which compiler should I use to build example code?

Reply Threaded More More options
Print post
Permalink
Hi

On Sun, Nov 1, 2009 at 10:46 PM, Henri De Feraudy <[hidden email]> wrote:

>
> 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!!


I tested tuts 1-5 on linux last night and all were working ok. I
havent tested on windows in a loong time. Perhaps you can step through
with the debugger and see where it runs off the rails?

Regards

Tim

>
>
>
>
> ( Jurgen: Sorry I accidentally replied to your message, and too early
> Henri
>
> --- On Sun, 11/1/09, Jürgen E. Fischer <[hidden email]> wrote:
>
> From: Jürgen E. Fischer <[hidden email]>
> Subject: Re: [Qgis-developer] Which compiler should I use to build example code?
> To: [hidden email]
> 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
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> _______________________________________________
> Qgis-developer mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



--
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
* QGIS programming and support services
* Mapserver and PostGIS based hosting plans
* FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer