Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install QGIS 3.2 Bonn #396

Closed
fjperini opened this issue Jun 24, 2018 · 18 comments
Closed

Install QGIS 3.2 Bonn #396

fjperini opened this issue Jun 24, 2018 · 18 comments

Comments

@fjperini
Copy link
Collaborator

fjperini commented Jun 24, 2018

QGIS 3.2 Bonn on macOS with Homebrew

$ brew tap qgis/qgisdev

Or install via URL (which will not receive updates):

brew install https://raw.githubusercontent.com/qgis/homebrew-qgisdev/master/Formula/qgis3-dev.rb

Another solution is to copy all the content directly to: ../Taps/qgis/homebrew-qgisdev

$ cd /usr/local/Homebrew/Library/Taps/qgis/homebrew-qgisdev

$ git checkout -b matplotlib-fix+python

$ brew edit qgis3-dev

Fix for matplotlib and python. Change to:

url "https://github.com/qgis/QGIS.git", :branch => "release-3_2"
version “3.2.0"
depends_on “python"`
# depends_on "homebrew/science/matplotlib" # deprecated
depends_on "brewsci/bio/matplotlib"

$ git add Formula/qgis3-dev.rb

$ git commit -m "fix for matplotlib and python”

See changes. You can copy the entire file to make sure.

For, ImportError: No module named site

$ brew install pyqt

$ brew install bison

> $ python --version
Python 3.6.5
> $ python3 --version
Python 3.6.5
> $ python2 --version
Python 2.7.15

Modify the file /usr/local/bin/pyrcc5 and change pythonw2.7 to python3:

#!/bin/sh
exec python3 -m PyQt5.pyrcc_main ${1+"$@"}

Build and install

$ brew install proj # --build-from-source

Proj v5.1.0 # With Proj v4: Library not loaded: libproj.13.dylib

$ brew install libspatialite # --build-from-source

$ brew install libgeotiff # --build-from-source

$ brew install osgeo/osgeo4mac/gdal2 # recommended. Other: gdal

You can use the options:

--with-complete --with-unsupported --with-armadillo --with-libkml --with-opencl
--with-postgresql --with-java --with-swig-java

It is necessary to uninstall ccache if you have llvm.

$ brew install -v --no-sandbox qgis3-dev --with-grass --with-saga-gis-lts # other: --with-r --with-3d

It can stop at the end of the gdal2 installation, for that reason we installed it before. If it stops, just rerun the above command to continue with the installation of QGIS.

The same thing happens in Travis CI (PR) when doing a pull request.

==> Installing qgis/qgisdev/qgis3-dev dependency: osgeo/osgeo4mac/gdal2
==> Downloading https://dl.bintray.com/homebrew-osgeo/osgeo-bottles/gdal2-2.3.0.
==> Pouring gdal2-2.3.0.sierra.bottle.tar.gz
==> Caveats
Plugins for this version of GDAL/OGR, generated by other formulae, should
be symlinked to the following directory:
  /usr/local/lib/gdalplugins/2.3
You may need to set the following enviroment variable:
  export GDAL_DRIVER_PATH=/usr/local/lib/gdalplugins
PYTHON BINDINGS are now built in a separate formula: gdal2-python
This formula is keg-only, which means it was not symlinked into /usr/local,
because older version of gdal is in main tap and installs similar components.
If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/gdal2/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/gdal2/lib
    CPPFLAGS: -I/usr/local/opt/gdal2/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/gdal2/lib/pkgconfig
==> Summary
🍺  /usr/local/Cellar/gdal2/2.3.0: 231 files, 45.9MB
The command "./travis/install.sh" failed and exited with 1 during .
Your build has been stopped.
/Users/travis/.travis/job_stages: line 187: shell_session_update: command not found

Suggestions to correct it?

If v2 is installed, change the name of QGIS.app to QGIS 2.app

After finish building QGIS, move the app from the Homebrew Cellar to the /Applications folder.

$ mv /usr/local/opt/qgis3-dev/QGIS.app /Applications/QGIS.app

$ ln -s /Applications/QGIS.app /usr/local/opt/qgis3-dev/QGIS.app

To run

GRASS: $ grass74 # in the installation: ln -s ../Cellar/grass7/7.4.0/bin/grass74 /usr/local/bin/grass74

SAGA: $ saga_gui # create a direct link : ln -s ../Cellar/saga-gis-lts/2.3.2/bin/saga_gui /usr/local/bin/saga_gui

If you intend to create the SAGA.app package, using saga-gis-lts --with-app will fail:

/bin/sh ../../../libtool  --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I../../..    -fPIC -Wall `wx-config --unicode=yes --cxxflags base` -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS     -g -O2 -c -o table_io.lo table_io.cpp
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../.. -fPIC -Wall -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS -g -O2 -c shapes_polygons.cpp -o shapes_polygons.o >/dev/null 2>&1
table.cpp:904:16: error: ordered comparison between pointer and zero ('CSG_Table_Record **' and 'int')
        if( m_Records > 0 )
            ~~~~~~~~~ ^ ~
1 error generated.
make[3]: *** [table.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../.. -fPIC -Wall -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS -g -O2 -c table_dbase.cpp  -fno-common -DPIC -o .libs/table_dbase.o
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../.. -fPIC -Wall -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS -g -O2 -c table_io.cpp  -fno-common -DPIC -o .libs/table_io.o
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../.. -fPIC -Wall -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS -g -O2 -c table_dbase.cpp -o table_dbase.o >/dev/null 2>&1
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../.. -fPIC -Wall -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS -g -O2 -c table_io.cpp -o table_io.o >/dev/null 2>&1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

That formula no longer compiles on High Sierra due to its age and recent updates to the MacOS compiler. Build it without --with-app, isn't needed for QGIS integration. [Commented here]

There is also the package saga-gis where it is reported:

keg_only "QGIS fails to load the correct SAGA version, if the latest version is in the path"

For GRASS.app, it is not available in grass7.

The grass7 package can also be installed with --with-netcdf.

To solve the integration problem of R in QGIS see this post. Suggestions for this?

References:

http://luisspuerto.net/2018/03/qgis-on-macos-with-homebrew/

https://grasswiki.osgeo.org/wiki/Compiling_on_MacOSX_using_homebrew

https://sourceforge.net/p/saga-gis/wiki/Compiling%20SAGA%20on%20Mac%20OS%20X/

qgis/homebrew-qgisdev#62 / qgis/homebrew-qgisdev#64 / qgis/homebrew-qgisdev#66

@nickrobison
Copy link
Collaborator

@fjperini Thanks for this detailed guide.

I'm curious though, what were you hoping we would do with this? I saw you made a pull request yesterday and then closed it immediately. If you'd like to contribute a QGIS3 formula feel free to open a PR and we can work on getting it building.

Also, if you're experiencing issues with some of the formulae please open specific issues, it's unclear as to what isn't working when your document just says 'fails'.

Thanks for the hard work and deep research!

@fjperini
Copy link
Collaborator Author

Hello @nickrobison ! Many report the same drawbacks. That's why I ordered a little the steps to follow to complete the installation of QGIS. And that you can comment, there is no other space with this function.

Also report that saga-gis-lts --with-app has errors. I added the error output.

It would be good to create the package GRASS.app.

As for the PR, I had started one in qgis/homebrew-qgisdev, it seemed to me that it was not necessary to be open. I had the intention that the fork of osgeo/homebrew-osgeo4mac incorporates the qgis3-dev so as not to have to be working with the two tap. And solve the error that is reported in Travis CI: it stops after installing gdal2.

And finally, about the integration of R into QGIS. Suggestions?

I hope it is useful. Regards!

@nickrobison
Copy link
Collaborator

nickrobison commented Jun 25, 2018

Regarding the saga-gis-lts issue, that formula no longer compiles on High Sierra due to its age and recent updates to the MacOS compiler, if you build it without the --with-app flag (the app isn't needed for QGIS integration) it should download a pre-built bottle that will work correctly.

I'll have to dig into the R issue, would you mind opening a new issue for that, along with some details about what errors you're getting when you try to use specific functions?

I know lots of people are interested in a QGIS 3 formula but we just haven't had the time to get thing working correctly.

If you'd like to open a PR proposing a new QGIS3 formula, I'd be happy to review it and try to help get it merged.

@fjperini
Copy link
Collaborator Author

Sure, it was because of that the error when using the --with-app option. Yes, the installation was made only with saga-gis-lts. The saga-gis package is not it does not integrate to QGIS?, why?

It is a good suggestion to open an issue to deal with the integration of R. I was reading a bit about this, I order some things and I publish.

As for QGIS 3 formula, I will realize a fork to start working on it. We could make it work.

Thanks and regards!

@nickrobison
Copy link
Collaborator

Looking forward to the PR!

The QGIS folks made a decision (a while ago) to only support version 2.3 of SAGA, because of the difficulty supporting multiple versions, which had a lot of internal changes.

It might be worth raising an issue with the QGIS folks to see if they might consider improving support to a newer version.

@fjperini
Copy link
Collaborator Author

It would be very good to raise it.

@luispuerto
Copy link
Collaborator

great guide!!! I did something similar in the past but with 3.0.3 stoped working and I don't know why. I'll take a look to this.

I also moved the .app to /Applications but my recommendation is not to rename it and rename QGIS.app v2 to QGIS 2.app if you want to have both (qgis2 and qgis3). I did like you before and I had some problems in qgis 3 with extensions.

@fjperini
Copy link
Collaborator Author

I agree @luisspuerto, it is better not to change it. Yes, I found many things in your great publication.

The installation of QGIS was carried out without problems. You can check! 👍

@luispuerto
Copy link
Collaborator

luispuerto commented Jun 25, 2018

it gave me again an error

==> cmake -G Ninja -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local
==> cmake --build . --target all -- -j 8
Last 15 lines from /Users/lpuerto/Library/Logs/Homebrew/qgis3-dev/03.cmake:
[2/4822] ccache /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_NO_CAST_TO_ASCII -DWITH_BINDINGS -DWITH_QTWEBKIT -I. -I../src/core -I../src/core/expression -I../src/core/geometry -I../src/core/metadata -I../src/core/raster -I../src/gui -Isrc/core -Isrc/gui -Isrc/providers/grass -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/geos/include -isystem /usr/local/opt/proj/include -isystem /usr/local/Cellar/postgresql/10.4/include -isystem /usr/local/opt/grass7/grass-base/include -Isrc/providers/grass/7 -I/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/include/darwin -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Qunused-arguments -O2 -g -DNDEBUG -MD -MT src/providers/grass/7/CMakeFiles/qgis.d.rast7.dir/__/qgis.d.rast.c.o -MF src/providers/grass/7/CMakeFiles/qgis.d.rast7.dir/__/qgis.d.rast.c.o.d -o src/providers/grass/7/CMakeFiles/qgis.d.rast7.dir/__/qgis.d.rast.c.o   -c ../src/providers/grass/qgis.d.rast.c
FAILED: src/providers/grass/7/CMakeFiles/qgis.d.rast7.dir/__/qgis.d.rast.c.o
ccache /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_NO_CAST_TO_ASCII -DWITH_BINDINGS -DWITH_QTWEBKIT -I. -I../src/core -I../src/core/expression -I../src/core/geometry -I../src/core/metadata -I../src/core/raster -I../src/gui -Isrc/core -Isrc/gui -Isrc/providers/grass -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/geos/include -isystem /usr/local/opt/proj/include -isystem /usr/local/Cellar/postgresql/10.4/include -isystem /usr/local/opt/grass7/grass-base/include -Isrc/providers/grass/7 -I/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/include/darwin -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Qunused-arguments -O2 -g -DNDEBUG -MD -MT src/providers/grass/7/CMakeFiles/qgis.d.rast7.dir/__/qgis.d.rast.c.o -MF src/providers/grass/7/CMakeFiles/qgis.d.rast7.dir/__/qgis.d.rast.c.o.d -o src/providers/grass/7/CMakeFiles/qgis.d.rast7.dir/__/qgis.d.rast.c.o   -c ../src/providers/grass/qgis.d.rast.c
/bin/sh: ccache: command not found
[3/4822] /usr/local/Cellar/cmake/3.11.4/bin/cmake -E copy ../src/native/qgsnative.h output/lib/qgis_native.framework/Versions/3.2/Headers/qgsnative.h
[4/4822] cd /tmp/qgis3-dev-20180625-34517-14uh59z/python && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E make_directory /tmp/qgis3-dev-20180625-34517-14uh59z/build/output/python/qgis && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E copy __init__.py /tmp/qgis3-dev-20180625-34517-14uh59z/build/output/python/qgis && cd /tmp/qgis3-dev-20180625-34517-14uh59z/python && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E make_directory /tmp/qgis3-dev-20180625-34517-14uh59z/build/output/python/qgis && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E copy utils.py /tmp/qgis3-dev-20180625-34517-14uh59z/build/output/python/qgis && cd /tmp/qgis3-dev-20180625-34517-14uh59z/python && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E make_directory /tmp/qgis3-dev-20180625-34517-14uh59z/build/output/python/qgis && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E copy user.py /tmp/qgis3-dev-20180625-34517-14uh59z/build/output/python/qgis
[5/4822] cd /tmp/qgis3-dev-20180625-34517-14uh59z && /usr/local/bin/git log -n1 --pretty=#define\ QGSVERSION\ \"%h\" >/tmp/qgis3-dev-20180625-34517-14uh59z/build/qgsversion.h.temp && /usr/local/bin/git log -n1 --pretty='PROJECT_NUMBER = "3.2.0-Bonn (%h)"' >/tmp/qgis3-dev-20180625-34517-14uh59z/build/qgsversion.inc && /usr/local/bin/git config remote.$(/usr/local/bin/git config branch.$(/usr/local/bin/git name-rev --name-only HEAD).remote).url | sed -e 's/^/#define QGS_GIT_REMOTE_URL "/' -e 's/$/"/' >>/tmp/qgis3-dev-20180625-34517-14uh59z/build/qgsversion.h.temp && /usr/local/Cellar/cmake/3.11.4/bin/cmake -DSRC=/tmp/qgis3-dev-20180625-34517-14uh59z/build/qgsversion.h.temp -DDST=/tmp/qgis3-dev-20180625-34517-14uh59z/build/qgsversion.h -P /tmp/qgis3-dev-20180625-34517-14uh59z/cmake/CopyIfChanged.cmake
Files "/tmp/qgis3-dev-20180625-34517-14uh59z/build/qgsversion.h.temp" to "/tmp/qgis3-dev-20180625-34517-14uh59z/build/qgsversion.h" are different.
[6/4822] cd /tmp/qgis3-dev-20180625-34517-14uh59z/build/python && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E echo && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E touch /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/analysis/sip_analysispart0.cpp /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/analysis/sip_analysispart1.cpp /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/analysis/sip_analysispart2.cpp /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/analysis/sip_analysispart3.cpp && /usr/local/Cellar/sip/4.19.8_4/bin/sip -w -e -x TESTS -x ANDROID -x ARM -x MOBILITY_LOCATION -t WS_MACX -t Qt_5_10_1 -g -o -a /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/qgis.analysis.api -y /tmp/qgis3-dev-20180625-34517-14uh59z/build/output/python/qgis/_analysis.pyi -j 4 -c /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/analysis -I /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/analysis -I /usr/local/share/sip/Qt5 -I /tmp/qgis3-dev-20180625-34517-14uh59z/python /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/analysis/analysis.sip

[7/4822] cd /tmp/qgis3-dev-20180625-34517-14uh59z/build/python && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E echo && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E touch /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/core/sip_corepart0.cpp /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/core/sip_corepart1.cpp /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/core/sip_corepart2.cpp /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/core/sip_corepart3.cpp && /usr/local/Cellar/sip/4.19.8_4/bin/sip -w -e -x TESTS -x ANDROID -x ARM -x MOBILITY_LOCATION -t WS_MACX -t Qt_5_10_1 -g -o -a /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/qgis.core.api -y /tmp/qgis3-dev-20180625-34517-14uh59z/build/output/python/qgis/_core.pyi -j 4 -c /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/core -I /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/core -I /usr/local/share/sip/Qt5 -I /tmp/qgis3-dev-20180625-34517-14uh59z/python /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/core/core.sip

[8/4822] cd /tmp/qgis3-dev-20180625-34517-14uh59z/build/python && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E echo && /usr/local/Cellar/cmake/3.11.4/bin/cmake -E touch /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/gui/sip_guipart0.cpp /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/gui/sip_guipart1.cpp /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/gui/sip_guipart2.cpp /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/gui/sip_guipart3.cpp && /usr/local/Cellar/sip/4.19.8_4/bin/sip -w -e -x TESTS -x ANDROID -x ARM -x MOBILITY_LOCATION -t WS_MACX -t Qt_5_10_1 -g -o -a /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/qgis.gui.api -y /tmp/qgis3-dev-20180625-34517-14uh59z/build/output/python/qgis/_gui.pyi -I /usr/local/share/sip -j 4 -c /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/gui -I /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/gui -I /usr/local/share/sip/Qt5 -I /tmp/qgis3-dev-20180625-34517-14uh59z/python /tmp/qgis3-dev-20180625-34517-14uh59z/build/python/gui/gui.sip

ninja: build stopped: subcommand failed.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/qgis/homebrew-qgisdev/issues

These open issues may also help:
Python 3.6.0 upgrade breaks existing qgis3-dev https://github.com/qgis/homebrew-qgisdev/issues/11

Edit: it was a problem with ccache. I uninstalled it since I have llvm and in the qgis compiling instructions say that it's need if you have llvm.
Let's see if it finally builds.

@fjperini
Copy link
Collaborator Author

I'll check.

Check if you have the same files in your /Taps folder, you can check mine here.

it is an error at the beginning, something you are not finding to continue with the construction of the package.

Uninstall the dependencies to ensure a clean installation.

@luispuerto
Copy link
Collaborator

It was ccache. I uninstalled it and it worked. 😄

@fjperini
Copy link
Collaborator Author

Glad it worked 🎉

@luispuerto
Copy link
Collaborator

luispuerto commented Jun 25, 2018

I’m even more glad. Your post encouraged me to recheck the install and I found out that cache was involved.

@fjperini
Copy link
Collaborator Author

That is the idea, review and contribute.

Update your web with this entry so that it is available for everyone! 😃

@geoHeil
Copy link

geoHeil commented Jul 30, 2018

This fails for me with: ImportError: No module named site

brew install https://raw.githubusercontent.com/fjperini/homebrew-osgeo4mac/qgis3/Formula/qgis3.rb
######################################################################## 100.0%
==> Installing dependencies for qgis3: isl
==> Installing qgis3 dependency: isl
==> Downloading https://homebrew.bintray.com/bottles/isl-0.20.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/d5/d51677cd4b4b714c2b0835e8fc6e5949748ca159102b6c53f1159b596135da70?__gda__=exp=1532931
######################################################################## 100.0%
==> Pouring isl-0.20.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/isl/0.20: 71 files, 3.9MB
==> Installing qgis3
==> Cloning https://github.com/qgis/QGIS.git
Cloning into '/Users/geoheil/Library/Caches/Homebrew/qgis3--git'...
remote: Counting objects: 15452, done.
remote: Compressing objects: 100% (11713/11713), done.
remote: Total 15452 (delta 5069), reused 8800 (delta 3578), pack-reused 0
Receiving objects: 100% (15452/15452), 75.87 MiB | 4.10 MiB/s, done.
Resolving deltas: 100% (5069/5069), done.
Checking out files: 100% (14518/14518), done.
==> Checking out branch release-3_2
Already on 'release-3_2'
Your branch is up to date with 'origin/release-3_2'.
==> /usr/local/bin/pip3 install --user --upgrade pip setuptools wheel
==> /usr/local/bin/pip3 install --user cython
==> /usr/local/bin/pip3 install --user git+https://github.com/jswhit/pyproj.git
==> /usr/local/bin/pip3 install --user future psycopg2 python-dateutil httplib2 pytz six nose2 pygments jinja2 pyyaml requests owslib
==> cmake -G Ninja -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/qgis3/3
==> cmake --build . --target all -- -j 8
Last 15 lines from /Users/geoheil/Library/Logs/Homebrew/qgis3/06.cmake:
FAILED: python/plugins/db_manager/resources_rc.py
cd /tmp/qgis3-20180730-95860-15ol6ll/build/python/plugins/db_manager && /usr/local/bin/pyrcc5 -o /tmp/qgis3-20180730-95860-15ol6ll/build/python/plugins/db_manager/resources_rc.py /tmp/qgis3-20180730-95860-15ol6ll/python/plugins/db_manager/resources.qrc
ImportError: No module named site
[4763/4818] cd /tmp/qgis3-20180730-95860-15ol6ll/build/i18n && /usr/local/opt/qt/bin/lrelease -silent /tmp/qgis3-20180730-95860-15ol6ll/i18n/qgis_zh-Hant.ts -qm /tmp/qgis3-20180730-95860-15ol6ll/build/output/i18n/qgis_zh-Hant.qm
[4764/4818] cd /tmp/qgis3-20180730-95860-15ol6ll/build/i18n && /usr/local/opt/qt/bin/lrelease -silent /tmp/qgis3-20180730-95860-15ol6ll/i18n/qgis_vi.ts -qm /tmp/qgis3-20180730-95860-15ol6ll/build/output/i18n/qgis_vi.qm
[4765/4818] cd /tmp/qgis3-20180730-95860-15ol6ll/build/i18n && /usr/local/opt/qt/bin/lrelease -silent /tmp/qgis3-20180730-95860-15ol6ll/i18n/qgis_zh-Hans.ts -qm /tmp/qgis3-20180730-95860-15ol6ll/build/output/i18n/qgis_zh-Hans.qm
[4766/4818] cd /tmp/qgis3-20180730-95860-15ol6ll/build/python && /usr/local/Cellar/cmake/3.12.0/bin/cmake -E echo && /usr/local/Cellar/cmake/3.12.0/bin/cmake -E touch /tmp/qgis3-20180730-95860-15ol6ll/build/python/server/sip_serverpart0.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/server/sip_serverpart1.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/server/sip_serverpart2.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/server/sip_serverpart3.cpp && /usr/local/Cellar/sip/4.19.8_5/bin/sip -w -e -x TESTS -x ANDROID -x ARM -x MOBILITY_LOCATION -t WS_MACX -t Qt_5_11_1 -g -o -a /tmp/qgis3-20180730-95860-15ol6ll/build/python/qgis.server.api -y /tmp/qgis3-20180730-95860-15ol6ll/build/output/python/qgis/_server.pyi -j 4 -c /tmp/qgis3-20180730-95860-15ol6ll/build/python/server -I /tmp/qgis3-20180730-95860-15ol6ll/build/python/server -I /usr/local/share/sip/Qt5 -I /tmp/qgis3-20180730-95860-15ol6ll/python /tmp/qgis3-20180730-95860-15ol6ll/build/python/server/server.sip

[4767/4818] cd /tmp/qgis3-20180730-95860-15ol6ll/build/python && /usr/local/Cellar/cmake/3.12.0/bin/cmake -E echo && /usr/local/Cellar/cmake/3.12.0/bin/cmake -E touch /tmp/qgis3-20180730-95860-15ol6ll/build/python/analysis/sip_analysispart0.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/analysis/sip_analysispart1.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/analysis/sip_analysispart2.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/analysis/sip_analysispart3.cpp && /usr/local/Cellar/sip/4.19.8_5/bin/sip -w -e -x TESTS -x ANDROID -x ARM -x MOBILITY_LOCATION -t WS_MACX -t Qt_5_11_1 -g -o -a /tmp/qgis3-20180730-95860-15ol6ll/build/python/qgis.analysis.api -y /tmp/qgis3-20180730-95860-15ol6ll/build/output/python/qgis/_analysis.pyi -j 4 -c /tmp/qgis3-20180730-95860-15ol6ll/build/python/analysis -I /tmp/qgis3-20180730-95860-15ol6ll/build/python/analysis -I /usr/local/share/sip/Qt5 -I /tmp/qgis3-20180730-95860-15ol6ll/python /tmp/qgis3-20180730-95860-15ol6ll/build/python/analysis/analysis.sip

[4768/4818] cd /tmp/qgis3-20180730-95860-15ol6ll/build/python && /usr/local/Cellar/cmake/3.12.0/bin/cmake -E echo && /usr/local/Cellar/cmake/3.12.0/bin/cmake -E touch /tmp/qgis3-20180730-95860-15ol6ll/build/python/core/sip_corepart0.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/core/sip_corepart1.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/core/sip_corepart2.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/core/sip_corepart3.cpp && /usr/local/Cellar/sip/4.19.8_5/bin/sip -w -e -x TESTS -x ANDROID -x ARM -x MOBILITY_LOCATION -t WS_MACX -t Qt_5_11_1 -g -o -a /tmp/qgis3-20180730-95860-15ol6ll/build/python/qgis.core.api -y /tmp/qgis3-20180730-95860-15ol6ll/build/output/python/qgis/_core.pyi -j 4 -c /tmp/qgis3-20180730-95860-15ol6ll/build/python/core -I /tmp/qgis3-20180730-95860-15ol6ll/build/python/core -I /usr/local/share/sip/Qt5 -I /tmp/qgis3-20180730-95860-15ol6ll/python /tmp/qgis3-20180730-95860-15ol6ll/build/python/core/core.sip

[4769/4818] cd /tmp/qgis3-20180730-95860-15ol6ll/build/python && /usr/local/Cellar/cmake/3.12.0/bin/cmake -E echo && /usr/local/Cellar/cmake/3.12.0/bin/cmake -E touch /tmp/qgis3-20180730-95860-15ol6ll/build/python/gui/sip_guipart0.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/gui/sip_guipart1.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/gui/sip_guipart2.cpp /tmp/qgis3-20180730-95860-15ol6ll/build/python/gui/sip_guipart3.cpp && /usr/local/Cellar/sip/4.19.8_5/bin/sip -w -e -x TESTS -x ANDROID -x ARM -x MOBILITY_LOCATION -t WS_MACX -t Qt_5_11_1 -g -o -a /tmp/qgis3-20180730-95860-15ol6ll/build/python/qgis.gui.api -y /tmp/qgis3-20180730-95860-15ol6ll/build/output/python/qgis/_gui.pyi -I /usr/local/share/sip -j 4 -c /tmp/qgis3-20180730-95860-15ol6ll/build/python/gui -I /tmp/qgis3-20180730-95860-15ol6ll/build/python/gui -I /usr/local/share/sip/Qt5 -I /tmp/qgis3-20180730-95860-15ol6ll/python /tmp/qgis3-20180730-95860-15ol6ll/build/python/gui/gui.sip

ninja: build stopped: subcommand failed.

Do not report this issue to Homebrew/brew or Homebrew/core!


Error: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

Python 3.7.0

geoheil@geoheils-MacBook ~                                                                                                   [9:32:25]
> $ python3 --version
Python 3.7.0

geoheil@geoheils-MacBook ~                                                                                                   [9:32:28]
> $ which python
/usr/local/bin/python

geoheil@geoheils-MacBook ~                                                                                                   [9:32:30]
> $ which python3
/usr/local/bin/python3

geoheil@geoheils-MacBook ~                                                                                                   [9:32:33]
> $ python2 --version
Python 2.7.15

geoheil@geoheils-MacBook ~                                                                                                   [9:32:41]
> $ which python2
/usr/local/bin/python2

@fjperini
Copy link
Collaborator Author

@geoHeil modify the file /usr/local/bin/pyrcc5 and change pythonw2.7 to python3:

#!/bin/sh
exec python3 -m PyQt5.pyrcc_main ${1+"$@"}

@geoHeil
Copy link

geoHeil commented Aug 1, 2018

Wow. great.

However this also gives me only the next error:
https://gist.github.com

@luispuerto
Copy link
Collaborator

@geoHeil we can't see you error because you linked the general gist page.

@fjperini fjperini closed this as completed Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants