I did update my Tumbleweed system this morning and after a reboot I tried to start QMapShack, but it refuses to start saying “QMapShack detected a badly installed Proj4 library”:
http://pix.toile-libre.org/upload/original/1552747056.png
Tried to search for the proj4 package (sudo zypper se proj4) but could not find it, only a perl-Geo-Proj4 package.
Installed that and executed a small test program:
#!/usr/bin/perl
use Geo::Proj4;
my $proj = Geo::Proj4->new(proj => "merc",
ellps => "clrk66", lon_0 => -96)
or die "parameter error: ".Geo::Proj4->error. "
";
my ($lat, $lon) = $proj->inverse(401717.80, 130013.88);
That runs fine, so it looks like the proj4 library is installed, only QMapShack is missing something that was available before the update.
Had a look in the QMapShack code:
projPJ pjsrc = pj_init_plus("+init=epsg:32661");
if(pjsrc == nullptr)
{
QMessageBox::critical(this, tr("Fatal...")
,tr("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 distribution to fix it.")
,QMessageBox::Close);
Tried
my $proj = Geo::Proj4->new(init => "epsg:32661") or die "parameter error: ".Geo::Proj4->error. "
";
But that gives me "parameter error: no arguments in initialization list’
So had a look at the https://proj4.org and saw that version 6.0.0 has been released and “projinfo” reveals I am running that. I read “PROJ 6 has undergone extensive changes” and that is not yet supported by QMapShack:
https://bitbucket.org/maproom/qmapshack/issues/438/support-for-proj-600
Is there any way to downgrade proj4?
Checking the YaST Software Management I see proj has no non-6.0.0 versions, but I have libproj13 installed than gives 5.2.0-31.6