Skip to main content
13 votes
Accepted

How to install GDAL on CentOS 7.4?

I found this answer which pointed me in the correct direction: https://gis.stackexchange.com/a/120103/442 I just had to update the GDAL version there. These are the commands that I used to get a ...
Devdatta Tengshe's user avatar
11 votes
Accepted

Compiling resources.qrc with QGIS 3.20 (could not find qt5_env.bat)

You no longer need to run qt5_env.bat and py3_env.bat (I guess). Just run pyrcc5 -o pathtoplugin\resources.py pathtoplugin\resources.qrc
Kadir Şahbaz's user avatar
7 votes

Build gdal with proj version 6

You are in the right track, but you need to inform gdal that you are using your own version of proj, rather than the one supplied with Ubuntu. Up until gdal v2.4.1, you would do that by providing the ...
thiagoveloso's user avatar
5 votes
Accepted

Debugging QGIS from Visual Studio

I put as an answer the steps I've followed. You have to follow my notes described in this post, BUT you will have to make some changes. When you open the Visual Studio solution with the devenv ...
Fran Raga's user avatar
  • 7,908
4 votes

Build gdal with proj version 6

I was able to get this working with the CPPFLAGS and LDFLAGS variables. It looked something like this for me CPPFLAGS=-I/path/to/proj/include LDFLAGS=-L/path/to/proj/lib ./configure --prefix=/...
bahaugen's user avatar
4 votes

How compile/install php-mapscript on Ubuntu 16.04

First answer Don't try to compile Mapscript on Ubuntu 16.04 with PHP as long as your PHP version is not 5.x. It will not work for the simple reason that supported PHP version in Ubuntu 16.04 is 7.0 ...
ThomasG77's user avatar
  • 31.2k
4 votes

Build gdal with proj version 6

I ended up writing a bootstrap script to configure GDAL 3.0.1 with PROJ 6.2.0, GRASS 7.8.0, GEOS 3.8.0, PostGIS 3.0.0. The order of compilation was: PROJ GEOS GDAL (without GRASS) GRASS GDAL (with ...
Cal Abel's user avatar
3 votes
Accepted

MapServer 8 How to compile with MVT support

You didn't mention what operating system you are referring to, but that is ok. If you are on Ubuntu you will need to install the protobuf-c library with a command such as sudo apt-get install ...
mapserving's user avatar
3 votes

How to install GDAL on CentOS 7.4?

I encountered the same error concerning SFCGAL library and I solve it installing the corresponding devel library e.g. on Centos 7.4 sudo yum install SFCGAL-devel I hope it can be useful also ...
Roberto Marzocchi's user avatar
3 votes
Accepted

How compile/install php-mapscript on Ubuntu 16.04

Thanks to @ThomasG77 i did compile and install php5-mapscript of Mapserver7.0.2 compiled and got loaded successfully: The manual is based on mapserver general compile documentations: http://www....
MSS's user avatar
  • 262
3 votes
Accepted

Installing MCC-LIDAR on Mac

On this page I found the solution. I had to add #include <boost/format.hpp> to LasDataFormat.cpp
oskarlin's user avatar
  • 1,941
2 votes

QGIS bat file for 64 bit build

Answer based on @klewis comment : In your code, try changing %Program Files (x86)% into `%PROGRAMFILES% Check the environment variable PROGRAMFILES in the "System variables" list. It should point to ...
gisnside's user avatar
  • 7,888
2 votes
Accepted

How to compile/install php-mapscript with PHP7

The install command is commented out in mapserver/master: https://github.com/mapserver/mapserver/blob/master/mapscript/php/CMakeLists.txt#L46 install(TARGETS php_mapscript DESTINATION ${...
geographika's user avatar
  • 14.4k
2 votes
Accepted

Enabling C++ standards when compiling GEOS using cmake/ccmake?

I don't think this can be done without editing CMakeLists.txt. The GEOS CMakeLists.txt has a set(CMAKE_CXX_STANDARD 11) statement that overrides anything specified from the command line (so you can't ...
dbaston's user avatar
  • 13.2k
2 votes
Accepted

Compiling QGIS 3.x (master) on Ubuntu 16.04 with Python3.6 and the latest Qt 5 and PyQt5 familiy modules (PyQt5, sip, qscintilla, pyqtchart)

So, based on AndreJ comment, I uninstall all PyQt5 related packages with pip3.5 (namely pyqt5, sip, qscintilla and pyqtchart) and used the official ones from my Ubuntu distribution. Here is the cmake ...
swiss_knight's user avatar
  • 10.9k
2 votes

Errors building GRASS

I simply had to upgrade flex to version 2.6.4. Now grass-8.3.0 compiles perfectly.
user3063547's user avatar
2 votes
Accepted

Error compiling PostGIS 3.1 from source : "undefined reference to `GEOSIntersectionPrec'"

The cause seems to be that the Makefile in PostGIS-3.1.0 did not include the link options for custom a geos package. The problem is fixed by editing loader/Makefile and then appending the following ...
tinlyx's user avatar
  • 11.2k
2 votes
Accepted

Building GDAL for iOS

I got this working for GDAL 2.2.2 and PROJ 4.9.3 several years ago. I'm now converting that project from Objective-C to Swift and I don't have time to figure out how to deal with the build issues I ...
Son of a Beach's user avatar
2 votes

Build gdal with proj version 6

I went through this process myself for a few hours. On the default location of my system an old version of proj was installed, which frustrated the installation of gdal. I downloaded latest version ...
stephen tjemkes's user avatar
1 vote
Accepted

When compiling PostGIS from source, how does PostGIS determine which components to install?

Sorry, this is obscure and I think if more people built from source we would have fixed it sooner (these days everyone gets their postgis pre-built by a packager it seems), but in configure.ac you'll ...
Paul Ramsey's user avatar
1 vote

Error compiling PostGIS 3.1 from source : "undefined reference to `GEOSIntersectionPrec'"

A duplication of libgeos libraries can produce such error. The same error happened to me, when I've tried to compile postgis on another server, with a custom geos build. I've built geos, but when I ...
jgrocha's user avatar
  • 5,515
1 vote

Build gdal with proj version 6

I wrote a GDAL build script some while ago which should contain all necessary steps. A lot of info can also be found on this page here. This should work: ./configure --with-static-proj4=/usr/local I ...
John Truckenbrodt's user avatar
1 vote
Accepted

Seeking pre-compiled QGIS to run from USB stick?

If you are on windows you should look at Portable GIS while on Linux (and I expect a Mac) you can run up a virtual machine based on the OSGeoLive stack.
Ian Turton's user avatar
  • 83.2k
1 vote

Unable to compile QGIS 3.x (master) on Ubuntu 16.04: PyQt5.pyqtconfig module does not exist

The FindPyQt5.py error: By looking in more detail the FindPyQt5.py file, one can see at lines 33-41: try: import PyQt5.pyqtconfig pyqtcfg = PyQt5.pyqtconfig.Configuration() except ...
swiss_knight's user avatar
  • 10.9k
1 vote
Accepted

Couldn't load PyQGIS...on Windows custom build

my guess is that PYTHONHOME and PYTHONPATH should refer to the desired python inside the QGIS3 folder, something like this PYTHONHOME = 'C:/Program Files/QGIS 3.2/bin' PYTHONPATH = 'C:/Program Files/...
Hicham Zouarhi's user avatar
1 vote
Accepted

Missing pyrcc compiling QGIS item

I managed to find a workarround for my problem, even though I did not solve the actual problem: I installed the OSGeoW64 networkinstallation with qgis desktop and qgis full. Afterwards I installed ...
gHupf's user avatar
  • 1,185
1 vote
Accepted

How to install shp2pgsql and raster2pgsql from source?

It turns out that this is a PATH issue as pointed out in @JohnPowellakaBarça comment. And I solved the problem by adding /usr/lib/postgresql/9.6/bin to system path. Somehow make install in PostGIS 2....
tinlyx's user avatar
  • 11.2k
1 vote

How compile/install php-mapscript on Ubuntu 16.04

In addition to the very helpfull answer of MSS and still (rather frustrated...) waiting for proper PHP-Mapscript-Support in PHP7: Some hints for compiling Mapscript MapServer version 7.2.0 under ...
ludwig's user avatar
  • 217
1 vote
Accepted

How to compile or find PHP MapScript (MapServer) latest version for Windows?

I didn't find any compiled php_mapscript for any current PHP as well, so I tried to compile it myself. Took me long time and a lot of failures but I did it. Don't know if you need this any more since ...
Alex's user avatar
  • 76

Only top scored, non community-wiki answers of a minimum length are eligible