Re: [MacPorts] #72523: qgis3: Error in the ‘qgis_process’ tool

MacPorts noreply at macports.org
Sat Jun 7 22:55:51 UTC 2025


#72523: qgis3: Error in the ‘qgis_process’ tool
------------------------+----------------------
  Reporter:  news24lor  |      Owner:  nilason
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.10.7
Resolution:             |   Keywords:
      Port:  qgis3      |
------------------------+----------------------

Comment (by news24lor):

 After seeing how this application works and also checking the official
 QGIS version, I corrected a few things to get this really useful tool
 working again.\\

 I corrected it this way from the terminal

 Correction of links to libraries
 {{{
 % cd
 /Applications/MacPorts/QGIS3.app/Contents/MacOS/bin/qgis_process.app/Contents/MacOS
 % sudo install_name_tool -change
 @executable_path/../Frameworks/qgis_analysis.framework/qgis_analysis
 /Applications/MacPorts/QGIS3.app/Contents/Frameworks/qgis_analysis.framework/qgis_analysis
 qgis_process
 % sudo install_name_tool -change
 @executable_path/../Frameworks/qgis_3d.framework/qgis_3d
 /Applications/MacPorts/QGIS3.app/Contents/Frameworks/qgis_3d.framework/qgis_3d
 qgis_process
 % sudo install_name_tool -change
 @executable_path/lib/libqgispython.3.42.3.dylib
 /Applications/MacPorts/QGIS3.app/Contents/MacOS/lib/libqgispython.dylib
 qgis_process
 % sudo install_name_tool -change
 @executable_path/../Frameworks/qgis_core.framework/qgis_core
 /Applications/MacPorts/QGIS3.app/Contents/Frameworks/qgis_core.framework/qgis_core
 qgis_process
 }}}

 Fix wrong symbolic link
 {{{
 % sudo ln -sf
 /Applications/MacPorts/QGIS3.app/Contents/MacOS/lib/libqgis_app.dylib
 /Applications/MacPorts/QGIS3.app/Contents/lib/libqgis_app.dylib
 % sudo ln -sf
 /Applications/MacPorts/QGIS3.app/Contents/MacOS/lib/libqgispython.dylib
 /Applications/MacPorts/QGIS3.app/Contents/lib/libqgispython.dylib
 }}}

 Move qgis_process.app
 {{{
 % mv /Applications/MacPorts/QGIS3.app/Contents/MacOS/bin/qgis_process.app
 /Applications/MacPorts/QGIS3.app/Contents/MacOS/
 }}}

 Create new text file
 {{{
 % nano /Applications/MacPorts/QGIS3.app/Contents/MacOS/bin/qgis_process
 }}}

 Enter this text inside
 {{{
 #!/bin/bash
 THISDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd
 )"

 export QGIS_PREFIX_PATH=$THISDIR/..

 $THISDIR/../qgis_process.app/Contents/MacOS/qgis_process "$@"
 }}}

 Make the file executable
 {{{
 % chmod +x
 /Applications/MacPorts/QGIS3.app/Contents/MacOS/bin/qgis_process
 }}}


 Now qgis_process works.\\

 This program allows you to start any internal QGIS tool but especially
 scripts and models directly from the terminal without QGIS being open.
 For heavy and repetitive work everything can be started from the terminal
 with the result ready even faster.
 Each algorithm, each script and each model has an Advanced button at the
 bottom where you can “Copy as qgis_process command” where the entire
 programme can be run from the terminal.

-- 
Ticket URL: <https://trac.macports.org/ticket/72523#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list