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

2 messages Options
Embed this post
Permalink
Henri De Feraudy

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

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


From: Henri De Feraudy <[hidden email]>
Subject: Fw: Re: [Qgis-developer] Which compiler should I use to build example code?
To: [hidden email]
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 <[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

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


_______________________________________________
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
Mailing Lists-3

Re: Fw: 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 11:01 PM, Henri De Feraudy <[hidden email]> wrote:


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

Try removing the QWidget include in main. But probably  you need to
step through with the debugger to see what is really going on.

BTW I wanted to apologise for my previous 'dont email me privately
only' message - my cell phone mail client showed me as the only
recipient but looking at my gmail client I see you had indeed sent
your reply to the list.

Best

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