Questions tagged [compile]

for questions relating to compiling GIS software and geospatial libraries.

Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views

How to build shared library from spatialite as static library NDK

I want to build a shared library for android to link with JNI, all libraries on which it depends are static libraries. I used this to build spatialite and sqlite for android : https://github.com/...
user avatar
  • 1
1 vote
1 answer
43 views

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

I am trying to compile the latest PostGIS 3.2.1 from source. The compilation/installation below was successful on Ubuntu 20.04 LTS (resulting in a usable PostGIS): ./autogen.sh ; ./configure ; make; ...
user avatar
  • 10.3k
0 votes
0 answers
12 views

Compiling QGIS from source : fatal error LNK1120: 6 unresolved externals

I am trying to compile QGIS 3.24 from source on Windows using Visual Studio 2017. I am using the pre-compiled libraries from Osgeo4W as described in QGIS compile guide. However, I am stuck with an ...
user avatar
  • 51
6 votes
1 answer
495 views

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

To compile resources.qrc file with pyrcc5 we usually do qt5_env.bat py3_env.bat pyrcc5 -o pathtoplugin\resources.py pathtoplugin\resources.qrc using OSGeo4W Shell as described in many questions on ...
user avatar
  • 25.5k
0 votes
0 answers
56 views

Compilation problem with cmake for QGIS source code: Could not find SIP

when I compile QGIS with cmake software, it comes to a problem: CMake Error at cmake/FindSIP.cmake:54 (MESSAGE): Could not find SIP Call Stack (most recent call first): CMakeLists.txt:832 (...
user avatar
  • 1
0 votes
1 answer
131 views

PostGIS compilation issue with PostgreSQL 14

I am trying to compile PostGIS 3.1.1 from source under the newly released PostgreSQL 14 beta1. I downloaded the latest PostGIS source and then compiled it under Ubuntu 20.04 LTS as follows: tar xf ...
user avatar
  • 10.3k
1 vote
0 answers
43 views

"Could NOT find Python" error when compiling QGIS source code

I tried to complile QGIS source code according to the method from QGIS's INSTALL.md on my windows computer and did't know why CMake couldn't find the proper Python version although I had added related ...
user avatar
  • 103
2 votes
3 answers
466 views

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

I am just trying to build the new PostGIS 3.1.0 (with GEOS 3.9.0). But I consistently get an error about "undefined reference to `GEOSIntersectionPrec'". The commands I used was (which was ...
user avatar
  • 10.3k
0 votes
1 answer
48 views

Compiling on CentOS fails due to ignored LIB flag

I need help with installing PostGIS. In general: I try to install it on a cluster (CentOS) and do not have admin rights. There is a sqlite3 installation (connected to the error), but this seems ...
user avatar
  • 1
1 vote
1 answer
943 views

Building GDAL for iOS

I am interested in building GDAL for iOS. I have managed to build successfully for macOS by building from sources with: ./configure --with-python=python3 --with-proj=/usr/local/Cellar/proj/7.0.1 --...
user avatar
  • 113
8 votes
1 answer
729 views

Debugging QGIS from Visual Studio

I try setup a QGIS debug environment under Windows10 64bit. I followed the instrictions given at https://github.com/qgis/QGIS/blob/master/INSTALL#L423 I also had a look at https://www.shaeffer.co/...
user avatar
16 votes
5 answers
19k views

Build gdal with proj version 6

Description of the issue: Building GDAL from sources after having build proj in its latest version is failing at the configure step because it's not finding proj 6. Details to reproduce: Work ...
user avatar
  • 6,738
0 votes
2 answers
792 views

Seeking pre-compiled QGIS to run from USB stick? [duplicate]

Is there a place I can find pre-compiled QGIS? I want to run it from my USB stick, without installation.
user avatar
3 votes
1 answer
1k views

How to compile/install php-mapscript with PHP7

So, this PR opens up mapscript support for PHP7. Since there is no ducomentation I gave it a try based on How compile/install php-mapscript on Ubuntu 16.04 (although I'm doing it in Debian 9 if that's ...
user avatar
  • 141
0 votes
1 answer
325 views

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

I read from RFC # 7 of GEOS that the old autoconf based build system may be removed in the future, in favor of using cmake. I sometimes need to customize geos and add functions that uses the newest C+...
user avatar
  • 10.3k
2 votes
1 answer
1k views

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)

The problem: Now that the compilation issue is over (Unable to compile QGIS 3.x (master) on Ubuntu 16.04: PyQt5.pyqtconfig module does not exist), QGIS 3 (master) refuses to load Python at startup. I ...
user avatar
  • 6,738
3 votes
1 answer
2k views

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

From: http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html there seems to be no more pyqtconfig module in PyQt5: pyqtconfig Module PyQt4’s pyqtconfig module is not supported. The ...
user avatar
  • 6,738
1 vote
2 answers
568 views

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

I have built QGIS 3.2.0 with the release code downloaded from GitHub, using CMake and Visual Studio 2017. Basically I followed the instructions in INSTALL file. When I run QGIS.exe, it shows: Couldn'...
user avatar
1 vote
1 answer
623 views

Missing pyrcc compiling QGIS item

I created a plugin using the QGIS Plugin Builder with QGIS 3.2 and tried to compile it afterwards with the OSGeo4W Shell. In the Shell I navigated to the directory my plugin is installed (C:\Users\...
user avatar
  • 993
2 votes
0 answers
221 views

Problem using cmake QGIS 3.0 [closed]

I'm trying to compile QGIS 3.0 on Windows. I want to port it to Windows RT (Windows on Arm) I keep getting this error: Looking for gaiaStatisticsInvalidate in C:/OSGeo4W/lib/spatialite_i.lib Looking ...
user avatar
  • 121
2 votes
0 answers
48 views

Building QGIS 3 undeclared identifiers and classes on macOS

Has anyone had any luck building QGIS 3 on macOS? I keep getting unkonwn type name errors when running it: /Users/user/Downloads/QGIS-master/src/core/qgspointlocator.cpp:62:39: error: unknown class ...
user avatar
9 votes
3 answers
32k views

How to install GDAL on CentOS 7.4?

I'm trying to install GDAL 2.x on my CentOS 7.4 server. I looked at what is available, and it is still at v 1.11 of GDAL Since I need GDAL v 2.x along with libKML support, looks like I'll have to ...
user avatar
1 vote
0 answers
413 views

Building QGIS >= 2.18.12 on Linux Mint 18.2 Sonya - with Oracle provider

I need to use QGIS desktop, on a Linux box, to work with Oracle spatial. The past 2-3 QGIS versions (at least) for Windows came out of the box with Oracle support - unfortunately, this is not the case ...
user avatar
0 votes
0 answers
392 views

Error while compiling gdal 1.9.2 in Ubuntu16.04

I am trying to compile and build gdal 1.9.2 in Ubuntu 16.04.3. I am doing the below steps sudo wget http://download.osgeo.org/gdal/gdal192.zip unzip gdal192.zip -d gdal cd gdal cd gdal-1.9.2/ sudo ./...
user avatar
  • 2,876
1 vote
1 answer
6k views

How to install shp2pgsql and raster2pgsql from source?

I just installed PostGIS 2.4.0alpha from source by following osgeo instructions on Ubuntu 16.04. After installation, PostGIS seems to work. However, command line tools that are supposed to come with ...
user avatar
  • 10.3k
1 vote
1 answer
285 views

Building QGIS master on Windows 7

I'm trying to build a debug version of QGIS on windows env for this I'm using the bat file package-nightly, I followed all steps presents in INSTALL file but without success. When I executed the bat ...
user avatar
  • 121
2 votes
0 answers
401 views

How to compile GDAL with external libraries? (Rasterlite2)

I want to compile GDAL with Rasterlite2 Support, but I can't find any info on how to do this. I already downloaded librasterlite2, libspatialite and libsqlite3. When configuring with --with-...
user avatar
2 votes
0 answers
162 views

Import error when compiling QGIS 2.18.3

I am getting the following error while compiling QGIS 2.18.3 in visual studio 2010. Apparently all is well when I compile QGIS 2.14. Is there something am missing? 277> Building Custom Rule D:/...
user avatar
  • 121
1 vote
1 answer
165 views

Installing MCC-LIDAR on Mac

I'm trying to install mcc-lidar on Mac but get into problems when compiling. [ 3%] Building CXX object CMakeFiles/mcc-lidar.dir/LasDataFormat.cpp.o /Users/Oskar/Documents/mcclidar-code/src/...
user avatar
  • 1,841
3 votes
4 answers
3k views

How compile/install php-mapscript on Ubuntu 16.04

I need to upgrade from Ubuntu 14.04 to 16.04 but php5 is not officially supported on Ubuntu 16. I install php5.5 by ondrej repo https://askubuntu.com/a/756186/483814 but when I try to install php5-...
user avatar
  • 262
1 vote
2 answers
681 views

QGIS bat file for 64 bit build

I am trying to build QGIS on a 64 bit machine with Windows 7 SP1. My bat file is as follows: @echo off set VS90COMNTOOLS=%Program Files (x86)%\Microsoft Visual Studio 10.0\Common7\Tools\ call "%...
user avatar
  • 103
2 votes
1 answer
714 views

Compile QGIS / Can't find Qt Cryptographic Architecture

I'm trying to compile QGIS-master 2.12 for the first time following the INSTALL guide (https://github.com/qgis/QGIS/blob/master/INSTALL). I'm stucked while compiling with the "CMake Error at cmake/...
user avatar
  • 51
2 votes
1 answer
364 views

QGIS Plugin 'make' error on Windows

Creating QGIS plugin via PluginBuilder and compiling resources via simple 'make' works straightforward under Linux (SuSe 13.2). Under Windows 'make' (3.81) produces an error: C:\Users\Jochen\.qgis2\...
user avatar
1 vote
0 answers
1k views

undefined reference to `TIFFDefaultStripSize@LIBTIFF_4.0'

I am trying for the first time to use gdal in Ubuntu 15.10 with gcc. I call gdal.h in my program. At first I got the error "undefined reference to `GDALOpen'", so I check online and I found that I ...
user avatar
  • 83
1 vote
1 answer
216 views

Building QGIS 2.8.6 on Win 7 32bit?

I'm trying to build QGIS 2.8.6 on Windows 7 32 bit using MSVC Express 10. The build process completes without errors, but with a bunch of warnings. When I run the qgis.exe after installation, it only ...
user avatar
  • 21
0 votes
2 answers
880 views

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

I had major performance difficulties with MapServer version 6.0.3 (MS4W 3.0.6) and need latest version of MapScript but I can't find it for Windows. Anybody can help me to find latest compiled (...
user avatar
  • 262
2 votes
0 answers
570 views

How to edit the GUI of a QGIS plugin not made with the plugin builder?

I edited a python plugin's code and had to change the UI a bit as well. However, unlike in the plugins I made from scratch with the plugin builder, the UI doesn't automatically update in QGIS when I ...
user avatar
  • 955
5 votes
1 answer
4k views

How to control QGIS from within Anaconda's Spyder (Continuum Analytics Python distribution) in Windows

I would like to control QGIS from within Anaconda's Spyder, in particular use the QGIS core modules. My config: Windows 7 Anaconda 64x for Python 2.7 Spyder 2.3 Postgresql 9.4 PostGIS 2.1 QGIS 2.8 (...
user avatar
  • 61
3 votes
1 answer
1k views

Compiling custom plugins for QGIS on Windows

I've made my first plugin using plugin builder and I want to compile it. I read that I need two commands to do it under windows: pyuic4 and pyrcc4. But when I use any of these commands I get this: D:\...
user avatar
1 vote
0 answers
192 views

Compiling QGIS for Slackware (Slak 14)?

I use a Slak 14 box and tried to install QGIS on it. the compile process goes on for 30 minutes or so (dual Xeon 3.2 ghz) and then I get the errors below. Says the compiler doesn't work. Have had no ...
user avatar
2 votes
4 answers
3k views

Can't compile python plugin in QGIS (Windows)

I'm just installed QGIS 2.2 and created a new plugin from Plugin Builder. When I try to compile the plugin using: C:\Program Files\QGIS Valmiera\bin>pyuic4 -o C:\Program Files\QGIS Valmiera\bin\ ...
user avatar
  • 71
1 vote
1 answer
579 views

PostGIS 2.1.1 compilation issue

I tried to compile postgis-2.1.1 in RedHat 6.3 with: # ./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --with-gdalconfig=/usr/local/bin/gdal-config --with-geosconfig=/usr/local/bin/geos-...
user avatar
  • 11
2 votes
1 answer
802 views

Building GDAL with ECW SDK on Windows

I'm using Visual Studio 2010 to open and build the GDAL 1.10 source (using the "makegdal10.sln"). This builds without an issue. Now I want to include the ECW support by including the ECW v5.0 SDK (...
user avatar
  • 41
2 votes
1 answer
521 views

Installing QGIS 2.0 with the newest gdal and geos libraries

I want to install QGIS 2.0 on Ubuntu 12.04 LTS. I followed these steps until the final installation command. Before I compiled gdal 1.10, geos 3.4.2 and grass 6.4.3 on my own. In the synaptic ...
user avatar
  • 4,194
1 vote
0 answers
499 views

Trying to build GDAL's ECW plugin in 64 bit Linux

I'm trying to build the GDAL's ECW plugin in Linux. I'm using the latest version of the SDK from Intergraph's site (5.0). It fails because it tries to compile against the 32 bit version of the ...
user avatar
  • 7,731
1 vote
1 answer
337 views

Getting fatal error LNK1104 qgis build

I try to build qgis1.8.0 using Microsoft Visual c++ 2010 in a Windows 7 64bit. all the dependency are installed and the solution qgis1.8.0.sln was generated succesfully. but my problem is the ...
user avatar
1 vote
0 answers
596 views

Does qgis_mapserv.fcgi segfault because ECW data is used?

I've compiled qgis from source, and when I call qgis_mapserv.fcgi in my browser with REQUEST=GetProjectSettings (and my map file set via map=) is returns the XML correctly. But if I then try to ...
user avatar
  • 43
3 votes
1 answer
291 views

Compiling QGIS 2.0.1 on Centos (SIP problems)

Trying to compile QGIS 2.0.1 on CentOS 6.4 (64 bit): /usr/share/sip/PyQt4/QtGui/qsyntaxhighlighter.sip: In function ‘PyObject* meth_QgsExpressionHighlighter_setCurrentBlockUserData(PyObject*, ...
user avatar
  • 43
6 votes
1 answer
6k views

Compiling PostGIS fails when it can't find GDALAllRegister

I'm trying to compile the latest PostGIS 2.1.0 beta and the configure process fails at: checking GDAL version... 1.10.0 checking for OGR enabled... yes checking gdal.h usability... yes checking gdal....
user avatar
  • 7,731
1 vote
1 answer
2k views

Compiling and Using GeoExplorer in Windows

I have been using GeoServer on Apache Tomcat in Windows and I want to install GeoExplorer. It is an OpenGeo Suite tool, and its source code is found here. I have downloaded the source code and tried ...
user avatar
  • 597