On 08/06/2016 03:35 PM, Dr Rainer Woitok wrote:
> my last  successful  compilation of  a working  QMapShack binary  was on
> 2016-04-06 and was based on  changeset "87709920c2ac".  Meanwhile I have
> updated my  QMapShack source repository  to changest "ea5af564edb9", and
> the compilation process still completes without any errors, but starting
> QMapShack opens a box saying
> 
>         Fatal... QMapShack detected a badly installed Proj4 library. The
>         translation  tables  for  EPSG  projections   usually  stored in
>         /usr/share/proj  are   missing.    Please  contact the   package
>         maintainer of your ditribution to fix it.
> 
> 1. Mind the missing "4" in path "/usr/share/proj" mentioned in the mess-
>    age above.

If you're using Debian or derivatives like Ubuntu, the data files in
/usr/share/proj are provided by the proj-data package.

I'm not aware of other Linux distributions that use /usr/share/proj4
instead.

> 2. On my system the Proj4 translation tables have always resided in dir-
>    ectory "~/share/proj4/" (even though the file  is named "epsg" rather
>    than "EPSG" there).   Either the QMapShack binary  based on changeset
>    "87709920c2ac" found them there or it didn't yet need them.
>
> 3. I'm always running "cmake" with the "-LAH" option to receive a log of
>    how QMapShack currently is configured.   This output  doesn't contain
>    the string "/usr/share/proj" indicating there isn't any configuration
>    variable  defaulting to  "/usr/share/proj"  (or  "/usr/share/proj4").
>    And a case insensitive search  for just "proj" in  that file only in-
>    dicates that  "cmake" found the "proj4" library  and used the correct
>    value for configuration variable "PROJ_INCLUDE_DIR".
> 
> 4. I recursively  "grep"-ed through the whole  source repository for the
>    string "/usr/share/proj",  but this only returned above error message
>    in  files "src/CMainWindow.cpp", "src/locale/qmapshack.ts", and "src/
>    locale/qmapshack_*.ts".
> 
> Any idea how to tell "cmake" where these files are residing?

PROJ4 uses the PROJ_LIB environment variable for non-default paths to
the data files. You'll need to export this variable set to the absolute
path of your custom proj4 installation before starting qmapshack
(e.g. export PROJ_LIB=${HOME}/share/proj4).

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1

------------------------------------------------------------------------------
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to