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 ...
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
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 ...
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 ...
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=/...
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 ...
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 ...
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 ...
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 ...
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....
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
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 ...
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 ${...
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 ...
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 ...
2
votes
Errors building GRASS
I simply had to upgrade flex to version 2.6.4. Now grass-8.3.0 compiles perfectly.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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/...
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 ...
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....
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
compile × 54qgis × 22
gdal × 9
postgis × 7
python × 6
qgis-3 × 5
qgis-plugins × 5
mapserver × 5
windows × 5
windows-7 × 4
ubuntu × 3
visual-studio × 3
ecw × 3
geoserver × 2
installation × 2
php × 2
pyqt5 × 2
geos × 2
debugging × 2
ubuntugis × 2
library × 2
grass-gis × 2
arcpy × 1
pyqgis × 1
postgresql × 1