qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.61k stars 3.01k forks source link

Installation via QSGEO4W error: Could not load qgis_app.dll #41685

Closed MoritzBrennecke closed 3 years ago

MoritzBrennecke commented 3 years ago

Installation via OSGEO4W on Windows 10 (advanced install qgis-ltr): image Sqlite3.dll pops up during installation: image After installation, Could not load qgis_app.dll error: image Qgis is not launching.

Workaround:

  1. Installation of « QGIS Standalone »
  2. Copying all files from c : /programmes/QgisXXX/Bin to c : /OSGEO4W/Bin (exclude those allready existing)
  3. Uninstall standalone (via uninstall in c : /programmes/QgisXXX/Bin)

So there are obviously some essentiel dlls missing when performing the advanced installation mode of QGIS. I suggest to include them if not many windows users will not use this (once working) very powerfull installer

SebastienPeillet commented 3 years ago

Hello @MoritzBrennecke

I just verified the oslandia mirror repository and I installed qgis-ltr package without reproducing the problem...

The Sqlite3.dll pop up lets me think about a md5 sumcheck failure. Normally, the files you downloaded are located in "local package directory folder :

image

In it, there is the x86_64/setup.ini file, the checksum for the sqlite3 package must be the same than the real cheksum

image

For the sqlite3-3.29.0-1.tar.bz package, it's 3afb96de826240086a557558ab2aae51

I checked it also on the serveur :

image

It's possible that there is a mixed between an old attempt to install qgis with OSGeo4W... When it can, it use local files instead of re-downloading files.

To fix it, you can uninstall your OSGeo4W and clean your local packages directory. Doing so, it will download the lastest version of each package and there will be no trouble anymore.

SebastienPeillet commented 3 years ago

Futhermore, if the problem persists (even if I don't think it will), you can use a different mirror :

image

In every case, I don't think it's a QGIS bug :)

MoritzBrennecke commented 3 years ago

I had the same problem on several computers (so reproducing works!). This one is an out of the box laptop (so for sure no prior QGIS installation!) Also tried different mirrors (did not work). So these are the files which are not coming with the OSGEO4W Installation (date 18.02.2021): image To reproduce the error, I cut these files into c:/temp (so they where not there anymore), -> Got the same error message. Copied back -> Everything is fine. So for me it seems to be these files!

SebastienPeillet commented 3 years ago

... :/ I'm not really sure what appends on your side as I can't reproduce the bug...

But for sure, qgis_app.dll shouldn't be copy in C:\OSGeo4W, this file is installed with the qgis-ltr package :

image

I just realized that your installation folder is C:\OSGeo4W and not C:\OSGeo4W64. Are you using a 32bit system ? It can explain I can't reproduced the bug as I have only a 64bit system to test it.

MoritzBrennecke commented 3 years ago

Actually more funny than that. Standalone was with the 3.16 version, so the 3.16 version works, but not the 3.10 version (only installed via OSGEO4W). So I reinstalled 3.10 via standalone:

Maybe the problems is that I have a domain on login when installing in Windows (some rights problem) even installing with admin rights? Does Windows have to activate the dlls And I'm using 64bit system and 64 bit installer (so no bug there)

Sorry I cannot investigate any further, so I will use (unfortunately) the standalone which works fine.

gioman commented 3 years ago

Sorry I cannot investigate any further, so I will use (unfortunately) the standalone which works fine.

@MoritzBrennecke seems anyway a local issue and not a general one.

GGDRriedel commented 3 years ago

I had this too. Make sure to install into new package as well as install folders when using OSGEO4W. If you don't and another install is present, the installer will use the old folders to throw these files into

MoritzBrennecke commented 3 years ago

Thank you all for the very fast responses and taking the time!

Still do not know why there is this error (In my opinion it has to do with some admin rights when installing and copying the dlls) Anyway, it is working for me now (I repeated installing standalone /OSGEO4W the uninstall standalone and it worked for the ltr as well). -> Good to know there is one. => Should I close this issue?

gioman commented 3 years ago

=> Should I close this issue?

done.

MoritzBrennecke commented 3 years ago

Hello,

Had the time to investigate the issue. It seems that there is a problem with the sqlite3.dll. During installation with OSGEO4W I get this error message: image and this one image

After installation: image

_When I copy the sqlite3.dll file (which did not install with OSGEO4W but which I took from another QGIS standalone installation and paste it to C:\OSGeo4W64\bin everything works fine.!! So it seems that this file is not being copied during OSGEO4W installation but I do not know why!

Thank you

jef-n commented 3 years ago

@MoritzBrennecke Remove the file from your cache and retry.

RossFF80 commented 2 years ago

Qt designer has a QGIS plug-in, thats how I worked around it