How to compile gdal 1.9.1 from GDAL'S SVN ?

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

How to compile gdal 1.9.1 from GDAL'S SVN ?

image
Hello,

I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from source using Gdal SVN version. I'm working on Windows 7 64bits.

I am not in the habit of compiling software

I did not used to compile software. Can you tell me how to do please?


Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

Saâd HESSANE
Hi,

To build GDAL it's easy. Visual Studio have to be installed in the system.
You download the source code. The easiest way to do that is to download it from http://trac.osgeo.org/gdal/wiki/DownloadSource. (Or if you have SVN you can just do a checkout from https://svn.osgeo.org/gdal/trunk/gdal. If you don't know what I'm talking about forget that last part :D).
After that you open Visual Studio Command Line (Start Menu -> All programs -> Microsoft Visual Studio -> Visual Studio Tools -> Visual Studio Command line ).
You go to the gdal source folder "cd GDAL_PATH" with GDAL_PATH is the path of your gdal folder.
And you do "nmake -f makefile.vc".

This is the easiest way. You can open the nmake.opt file before building gdal to enable/disable some fonctionality, or to build 64-bit version.

I'm never build QGIS from source, I can't help you on that sorry.

Best regards.




2012/7/13 laurent celati <[hidden email]>
Hello,

I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from
source using Gdal SVN version. I'm working on Windows 7 64bits.

I am not in the habit of compiling software

I did not used to compile software. Can you tell me how to do please?




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-compile-gdal-1-9-1-from-GDAL-S-SVN-tp4988197.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

Paul Meems (Top-X)
We use makegdal_gen.bat to create the Vis. Studio project and solution files.
We still need to make the required changes in the nmake.opt file but we don't need to use the command line window.

It's just a matter of preferences what to use. Both options will result in the same.

Regards,

Paul


2012/7/13 Saâd HESSANE <[hidden email]>
Hi,

To build GDAL it's easy. Visual Studio have to be installed in the system.
You download the source code. The easiest way to do that is to download it from http://trac.osgeo.org/gdal/wiki/DownloadSource. (Or if you have SVN you can just do a checkout from https://svn.osgeo.org/gdal/trunk/gdal. If you don't know what I'm talking about forget that last part :D).
After that you open Visual Studio Command Line (Start Menu -> All programs -> Microsoft Visual Studio -> Visual Studio Tools -> Visual Studio Command line ).
You go to the gdal source folder "cd GDAL_PATH" with GDAL_PATH is the path of your gdal folder.
And you do "nmake -f makefile.vc".

This is the easiest way. You can open the nmake.opt file before building gdal to enable/disable some fonctionality, or to build 64-bit version.

I'm never build QGIS from source, I can't help you on that sorry.

Best regards.




2012/7/13 laurent celati <[hidden email]>
Hello,

I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from
source using Gdal SVN version. I'm working on Windows 7 64bits.

I am not in the habit of compiling software

I did not used to compile software. Can you tell me how to do please?




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-compile-gdal-1-9-1-from-GDAL-S-SVN-tp4988197.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

Jean-Claude Repetto
In reply to this post by image
On 07/13/2012 01:07 PM, laurent celati wrote:
> Hello,
>
> I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from
> source using Gdal SVN version. I'm working on Windows 7 64bits.
>
> I am not in the habit of compiling software
>
> I did not used to compile software. Can you tell me how to do please?
>

Why don't you use the nightly builds avilables on this site :
http://www.gisinternals.com/sdk/ ?

Jean-Claude
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

Ivan Lucena-3
But if you do want to build on Windows you can take a look on that wiki pages

http://trac.osgeo.org/gdal/wiki/BuildingOnWindows
http://trac.osgeo.org/gdal/wiki/MakeFileProjects

Setting up VS Express edition to build 64bit is a little trick though.


>  -------Original Message-------
>  From: Jean-Claude Repetto <[hidden email]>
>  To: [hidden email]
>  Subject: Re: [gdal-dev] How to compile gdal 1.9.1 from GDAL'S SVN ?
>  Sent: Jul 13 '12 08:28
>  
>  On 07/13/2012 01:07 PM, laurent celati wrote:
>  > Hello,
>  >
>  > I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from
>  > source using Gdal SVN version. I'm working on Windows 7 64bits.
>  >
>  > I am not in the habit of compiling software
>  >
>  > I did not used to compile software. Can you tell me how to do please?
>  >
>  
>  Why don't you use the nightly builds avilables on this site :
>  http://www.gisinternals.com/sdk/ ?
>  
>  Jean-Claude
>  _______________________________________________
>  gdal-dev mailing list
>  [hidden email]
>  http://lists.osgeo.org/mailman/listinfo/gdal-dev
>  
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

Mateusz Loskot
In reply to this post by image
On 13 July 2012 12:07, laurent celati <[hidden email]> wrote:
>
> I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from
> source using Gdal SVN version. I'm working on Windows 7 64bits.
>
> I am not in the habit of compiling software

Then why for goodness would you want to do that.
End users are supposed to install the packages dedicated for their OS.
There are Windows binaries of QGIS provided!

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

image
Dear Mr. Loskot,

I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from source using Gdal SVN version because i 'm working on displaying postgis raster data with qgis. And i noticed a bug with gdal 1.9 regarding overviews (bug fixed on gdal 1.9.1 according to Mauricio de paulo_developper of that plugin). That's why i have not choice : i have to compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from source using Gdal SVN version.

With kind regards.
Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

Jean-Claude Repetto
Le 17/07/2012 09:39, laurent celati a écrit :
> Dear Mr. Loskot,
>
> I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from
> source using Gdal SVN version because i 'm working on displaying postgis
> raster data with qgis. And i noticed a bug with gdal 1.9 regarding overviews
> (bug fixed on gdal 1.9.1 according to Mauricio de paulo_developper of that
> plugin). That's why i have not choice : i have to compile gdal 1.9.1 from
> GDAL'S SVN then compile Qgis 1.8 from source using Gdal SVN version.
>

GDAL 1.9.1 has been released on May 22, so it is available now, and you
don't have to compile it.

Jean-Claude

_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

Mateusz Loskot
In reply to this post by image
On 17 July 2012 08:39, laurent celati <[hidden email]> wrote:
> I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from
> source using Gdal SVN version because i 'm working on displaying postgis
> raster data with qgis. And i noticed a bug with gdal 1.9 regarding overviews
> (bug fixed on gdal 1.9.1 according to Mauricio de paulo_developper of that
> plugin). That's why i have not choice : i have to compile gdal 1.9.1 from
> GDAL'S SVN then compile Qgis 1.8 from source using Gdal SVN version.

IMHO, it's not a reason.
In such case, I'd ask QGIS folks to release an updated binaries.
That way, only one person (package maintainers) has to do the work,
and all the users benefit. Otherwise, it's waste of energy and time
(It also includes time on explaining inexperienced end-user how to
build a software
from cutting-edge development version.)

my 5 groszy

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

Etienne Tourigny-3
In reply to this post by image
Looking at the osgeo4w current package page[1], it looks like gdal
1.9.1-RC2-2 is available, which I think is identical to gdal-1.9.1

Did you try qgis with the osgeo4w installer or the standalone installer?

[1] http://download.osgeo.org/osgeo4w/versions.html

Etienne


On Tue, Jul 17, 2012 at 4:39 AM, laurent celati
<[hidden email]> wrote:

> Dear Mr. Loskot,
>
> I would like compile gdal 1.9.1 from GDAL'S SVN then compile Qgis 1.8 from
> source using Gdal SVN version because i 'm working on displaying postgis
> raster data with qgis. And i noticed a bug with gdal 1.9 regarding overviews
> (bug fixed on gdal 1.9.1 according to Mauricio de paulo_developper of that
> plugin). That's why i have not choice : i have to compile gdal 1.9.1 from
> GDAL'S SVN then compile Qgis 1.8 from source using Gdal SVN version.
>
> With kind regards.
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-compile-gdal-1-9-1-from-GDAL-S-SVN-tp4988197p4988740.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to compile gdal 1.9.1 from GDAL'S SVN ?

michel_souweine
This post has NOT been accepted by the mailing list yet.
In reply to this post by Saâd HESSANE
Hello,
Either from SVN or straitforward from stable sources, its appears to me, but, maybe I am wrong, that its a bit more complicated to do, at least to be used with the aim to be used for compiling SUMO
1. GDAL as to be used with PROJ.4 and its advised, by SUMO,  to compile both of them in a commun directory : doing so, isn't a risk to have files or directories with the same name coming from GDAL and PROJ.4, and how can we be sure that is doesn't happen, with the resulting incoherences ?
2. In fact, having carried out the above operations with GDAL and PROJ.4, I was unabled to find ogrcpl_port.h requested by GDAL file name /ogr/cpl_vsi.h (line 84).
I already allowed me to wrote a post on that point but maybe, I wasn't clear enough to get an answer ?
Thanks so much for any help
Michel Souweine