Coder Social home page Coder Social logo

Comments (19)

alexgleith avatar alexgleith commented on August 20, 2024 2

Yay! It worked! 🎉

from homebrew-qgisdev.

harelw avatar harelw commented on August 20, 2024 1

Doing a combination of suggestions in this thread got it to work for me:

  1. brew tap-pin qgis/qgisdev
  2. brew reinstall gdal2 --with-complete (or brew install gdal2 --with-complete if not already installed)
  3. brew install pyqt (if not installed already)
  4. edit /usr/local/bin/pyrcc5 to:
#!/bin/sh
exec python3 -m PyQt5.pyrcc_main ${1+"$@"}
  1. brew install --no-sandbox qgis3-dev

Thanks!

from homebrew-qgisdev.

dd-a avatar dd-a commented on August 20, 2024

from homebrew-qgisdev.

Nenuial avatar Nenuial commented on August 20, 2024

The culprit seems to be PyQt5. Installing it using pip allows me to complete a build of qgis3 but there still are errors when launching the app. Now I'm not sure anymore if this is really an issue of the qgis Formula and not the PyQt5 one.

from homebrew-qgisdev.

Nenuial avatar Nenuial commented on August 20, 2024

Well... I’ve tried a number of different things. I've managed to get all dependencies installed and, at least I think, working properly (passing brew test). PyQt tools now work again. I had to build it all from source (gdal2 wasn’t working when using the bottle). I still get an error saying “no module named site”.

Full logs here : gist-logs

from homebrew-qgisdev.

Nenuial avatar Nenuial commented on August 20, 2024

Eureka ! Found the problem ! In my case, the /usr/local/bin/pyrcc5 executable had the following in it :

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

replacing pythonw2.7 with python3 did it for me. Calling pythonw2.7 with the PYTHONHOME and PYTHONPATH from the qgis3-dev Formula was throwing the "ImportError: No module named site".

I still don't really know if my issue is a problem of the qgis3-dev formula (probably not...) but if others run into the same issue at least you'll have a "hack" to work with.

from homebrew-qgisdev.

alexgleith avatar alexgleith commented on August 20, 2024

Ok, I tried the change the the pyrcc5 file, and it seems to get further. Now I'm stuck with:

 FAILED: python/plugins/db_manager/ui_DlgCreateTable.py 
cd /tmp/qgis3-dev-20180310-54526-ap49is/build/python/plugins/db_manager && /tmp/qgis3-dev-20180310-54526-ap49is/scripts/pyuic-wrapper.sh /usr/local/bin/pyuic5 /tmp/qgis3-dev-20180310-54526-ap49is/build/output/lib /tmp/qgis3-dev-20180310-54526-ap49is/build/output/python /usr/local/bin/python3 /tmp/qgis3-dev-20180310-54526-ap49is/python/plugins/db_manager/ui/DlgCreateTable.ui -o /tmp/qgis3-dev-20180310-54526-ap49is/build/python/plugins/db_manager/ui_DlgCreateTable.py
Traceback (most recent call last):
  File "/tmp/qgis3-dev-20180310-54526-ap49is/scripts/pyuic-wrapper.py", line 26, in <module>
    import qgis.PyQt.uic.pyuic
  File "/tmp/qgis3-dev-20180310-54526-ap49is/build/output/python/qgis/__init__.py", line 72, in <module>
    from qgis.core import QgsFeature, QgsGeometry
  File "/tmp/qgis3-dev-20180310-54526-ap49is/build/output/python/qgis/core/__init__.py", line 34, in <module>
    from qgis._core import *
ImportError: dlopen(/tmp/qgis3-dev-20180310-54526-ap49is/build/output/python/qgis/_core.so, 2): Library not loaded: /usr/local/opt/proj/lib/libproj.12.dylib
  Referenced from: /usr/local/opt/gdal2/lib/libgdal.20.dylib
  Reason: image not found
ninja: build stopped: subcommand failed.

from homebrew-qgisdev.

Nenuial avatar Nenuial commented on August 20, 2024

Uninstall gdal2 and build it from source (option --build-from-source).

I believe that proj is now version 5 and that breaks the gdal2 bottle.

from homebrew-qgisdev.

alexgleith avatar alexgleith commented on August 20, 2024

Well, that gdal build failed too... I think I'm trying to live a bit close to the edge!

Last 15 lines from /Users/alex/Library/Logs/Homebrew/gdal2/02.make:
libtool: compile:  clang -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -I/usr/local/opt/sqlite/include -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -I. -DGDALDRIVER -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -c blx.c  -fno-common -DPIC -o ../o/.libs/blx.o
/bin/sh /private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/libtool --mode=compile --tag=CXX clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough  -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include  -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c -o ../o/msg_basic_types.lo msg_basic_types.cpp
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msgndataset.cpp  -fno-common -DPIC -o ../o/.libs/msgndataset.o
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msg_basic_types.cpp  -fno-common -DPIC -o ../o/.libs/msg_basic_types.o
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -c terragendataset.cpp -o ../o/terragendataset.o >/dev/null 2>&1
make[1]: *** [pds-install-obj] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/sh /private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/libtool --mode=compile --tag=CXX clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough  -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include  -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c -o ../o/msg_reader_core.lo msg_reader_core.cpp
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msg_reader_core.cpp  -fno-common -DPIC -o ../o/.libs/msg_reader_core.o
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -I. -DGDALDRIVER -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -c blxdataset.cpp -o ../o/blxdataset.o >/dev/null 2>&1
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msg_basic_types.cpp -o ../o/msg_basic_types.o >/dev/null 2>&1
libtool: compile:  clang -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -I/usr/local/opt/sqlite/include -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -I. -DGDALDRIVER -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -c blx.c -o ../o/blx.o >/dev/null 2>&1
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msg_reader_core.cpp -o ../o/msg_reader_core.o >/dev/null 2>&1
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msgndataset.cpp -o ../o/msgndataset.o >/dev/null 2>&1
make: *** [frmts-target] Error 2

from homebrew-qgisdev.

sgerke avatar sgerke commented on August 20, 2024

For me, reinstalling gdal2 brew reinstall gdal2 --with-complete helped without compiling from source.

from homebrew-qgisdev.

Nenuial avatar Nenuial commented on August 20, 2024

Sorry... That’s one error I haven’t come across.
I was always starting with a fresh homebrew install, making sure that brew doctor was clean and brew test $(brew list) passes all tests without issues.

from homebrew-qgisdev.

alexgleith avatar alexgleith commented on August 20, 2024

This is a clean Mac OS install. Just started it up yesterday!

from homebrew-qgisdev.

Nenuial avatar Nenuial commented on August 20, 2024

And using @sgerke reinstall command for gdal2?

To be honest I've done so many different tries since Tuesday that I don't remember everything I might have tweaked.

from homebrew-qgisdev.

alexgleith avatar alexgleith commented on August 20, 2024

Yeah, the comment above was from reinstalling. #62 (comment)

from homebrew-qgisdev.

alexgleith avatar alexgleith commented on August 20, 2024

Hey @harelw, did you need to change the MatPlotLib dependency?

from homebrew-qgisdev.

harelw avatar harelw commented on August 20, 2024

from homebrew-qgisdev.

palmerj avatar palmerj commented on August 20, 2024

I managed to compile and launch QGIS 3.1.0-master but when adding vector or raster layers to the map canvas nothing displays. I also get "No QgsCoordinateTransformContext context set for transform" errors in the log

Does anyone else have issues like this? I'm wondering if this has something to do with Proj5. The about dialog says it complied against and running Proj 5.01.

from homebrew-qgisdev.

palmerj avatar palmerj commented on August 20, 2024

Ok editing the homebrew proj formula to use Proj.4 worked. I had to edit proj.rb to switch to the Proj 4.9.3 source code:

  url "http://download.osgeo.org/proj/proj-4.9.3.tar.gz"
  sha256 "6984542fea333488de5c82eea58d699e4aff4b359200a9971537cd7e047185f7"

Then I recompiled from source the following packages:

brew reinstall proj --build-from-source
brew reinstall libspatialite --build-from-source
brew reinstall libgeotiff --build-from-source
brew reinstall gdal --with-complete

Then I rebuilded qgis3-dev:

brew reinstall -v --no-sandbox --with-3d qgis3-dev

from homebrew-qgisdev.

palmerj avatar palmerj commented on August 20, 2024

I would suggest we need to get a Proj4 package going again and make that a dependency for qgis3-dev as Proj.5 doesn't look ready for prime time in QGIS. I can raise a issue for this if others agree.

from homebrew-qgisdev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.