Discussion:
Which compiler for a c++ QGIS custom app
Denis Rouzaud
2014-02-21 14:20:19 UTC
Permalink
Hi all,

I am a bit lost at trying to build a custom QGIS app on a windows 7.

I have installed QGIS libs, Qt libs and minGW using osgeo4w installer
(thanks to Nathan's advices).
I have also installed Qt Creator 3.0.

Now in creator, I have configured Qt version as Qt 4.7. using
c:\osgeo4w\bin\qmake.exe.

But I can't manage to find the right compiler to use for this version.
With all the compilers I tried, it says "none of the compiler can
produce code for this version of Qt".

Does someone know which compiler to use? Can't I use one embedded in
osgeo package?

PS: I don't have visual studio installed, and I would like to avoid
installing it.

Thanks a lot,

Denis
Jürgen E. Fischer
2014-02-21 15:24:14 UTC
Permalink
Hi Denis,
Post by Denis Rouzaud
I have installed QGIS libs, Qt libs and minGW using osgeo4w installer
(thanks to Nathan's advices).
mingw using the osgeo4w installer? That might be there for GRASS.

But QGIS and Qt in OSGeo4W is built with Visual C++ not MinGW. You can't use
OSGeo4W's Qt with MinGW.
Post by Denis Rouzaud
Does someone know which compiler to use? Can't I use one embedded in
osgeo package?
PS: I don't have visual studio installed, and I would like to avoid
installing it.
Sorry, I didn't do that for years - should also be possible, but I suppose it
takes some work.



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 PSC member (RM) Germany IRC: jef on FreeNode
--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
Rouzaud Denis
2014-02-21 16:14:57 UTC
Permalink
Hi Jürgen,

Thanks a lot for your reply.

It seems I should finally use Visual C++.
I will give it a try this weekend!

Thanks again and happy release ;)

Denis
Post by Jürgen E. Fischer
Hi Denis,
Post by Denis Rouzaud
I have installed QGIS libs, Qt libs and minGW using osgeo4w installer
(thanks to Nathan's advices).
mingw using the osgeo4w installer? That might be there for GRASS.
But QGIS and Qt in OSGeo4W is built with Visual C++ not MinGW. You can't use
OSGeo4W's Qt with MinGW.
Post by Denis Rouzaud
Does someone know which compiler to use? Can't I use one embedded in
osgeo package?
PS: I don't have visual studio installed, and I would like to avoid
installing it.
Sorry, I didn't do that for years - should also be possible, but I suppose it
takes some work.
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 PSC member (RM) Germany IRC: jef on FreeNode
--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
_______________________________________________
Qgis-developer mailing list
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Rouzaud Denis
2014-02-24 11:10:53 UTC
Permalink
Hi Jürgen,
Post by Jürgen E. Fischer
But QGIS and Qt in OSGeo4W is built with Visual C++ not MinGW. You can't use
OSGeo4W's Qt with MinGW.
I installed Visual Studio Express 2013, and it seems the compiler given with (version 12.0) is not compliant with Qt libs from the osgeo package.

Do you know if I should I restrict to a given version of the compiler? Which one has been used for building osgeo’s qt lib?
I saw that Nathan is using version 9.0.

Thanks a lot,
Denis
Nathan Woodrow
2014-02-24 11:14:00 UTC
Permalink
The supported version is VS 2008. I have never tried building with
anything else.

- Nathan
Post by Rouzaud Denis
Hi Jürgen,
But QGIS and Qt in OSGeo4W is built with Visual C++ not MinGW. You can't use
OSGeo4W's Qt with MinGW.
I installed Visual Studio Express 2013, and it seems the compiler given
with (version 12.0) is not compliant with Qt libs from the osgeo package.
Do you know if I should I restrict to a given version of the compiler?
Which one has been used for building osgeo's qt lib?
I saw that Nathan is using version 9.0.
Thanks a lot,
Denis
_______________________________________________
Qgis-developer mailing list
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Rouzaud Denis
2014-02-24 11:31:55 UTC
Permalink
Thanks a lot Nathan, this brought me further!
The supported version is VS 2008. I have never tried building with anything else.
- Nathan
Hi Jürgen,
Post by Jürgen E. Fischer
But QGIS and Qt in OSGeo4W is built with Visual C++ not MinGW. You can't use
OSGeo4W's Qt with MinGW.
I installed Visual Studio Express 2013, and it seems the compiler given with (version 12.0) is not compliant with Qt libs from the osgeo package.
Do you know if I should I restrict to a given version of the compiler? Which one has been used for building osgeo’s qt lib?
I saw that Nathan is using version 9.0.
Thanks a lot,
Denis
_______________________________________________
Qgis-developer mailing list
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Jürgen E. Fischer
2014-02-24 11:24:46 UTC
Permalink
Hi Denis,
Post by Rouzaud Denis
I installed Visual Studio Express 2013, and it seems the compiler given with
(version 12.0) is not compliant with Qt libs from the osgeo package.
Right, if you want to use Qt from OSGeo4W you need to you the same compiler as
the one used to build Qt. That is 2008 for 32bit and 2010 for 64bit.


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 PSC member (RM) Germany IRC: jef on FreeNode
--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
Loading...