Feature request #615
Patch for help_viewer finding right directories.
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||10674|
The logic for finding /share/qgis etc is kept in qgsapplication.cpp. qgis_help has previously not used that, which leads to confusions (and errors). This patch uses the same logic. As the source files are included directly, no dependency on libqgis_* is created.
The purpose is to find the correct qgis_*.ts and the correct path to the context help files.
#2 Updated by Tim Sutton over 13 years ago
/Users/tim/dev/cpp/qgis0.8/src/helpviewer/main.cpp: In function 'int main(int, char**)':
/Users/tim/dev/cpp/qgis0.8/src/helpviewer/main.cpp:22: error: cannot call member function 'void QgsApplication::setPkgDataPath(const QString&)' without object
maker2: * [src/helpviewer/CMakeFiles/qgis_help.dir/main.o] Error 1
maker1: [src/helpviewer/CMakeFiles/qgis_help.dir/all] Error 2
make: ** [all] Error 2
When applying the patch on mac. Im investigating why and will close this ticket after that is resolved.