Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MoritzBrennecke opened this issue Feb 19, 2021 · 12 comments
Closed

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

MoritzBrennecke opened this issue Feb 19, 2021 · 12 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS Feedback Waiting on the submitter for answers Windows Related to Windows operating system

Comments

@MoritzBrennecke
Copy link

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

@MoritzBrennecke MoritzBrennecke added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Feb 19, 2021
@SebastienPeillet
Copy link
Contributor

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
Copy link
Contributor

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 :)

@SebastienPeillet SebastienPeillet added Build/Install Related to compiling or installing QGIS Windows Related to Windows operating system Won't fix By design, or won't be fixed for some other reason labels Feb 19, 2021
@MoritzBrennecke
Copy link
Author

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
Copy link
Contributor

... :/ 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.

@SebastienPeillet SebastienPeillet removed the Won't fix By design, or won't be fixed for some other reason label Feb 19, 2021
@MoritzBrennecke
Copy link
Author

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:

  • It worked fine launching from C:/programmes/QGIS/bin (standalone)
  • And also (without doing anything else!) launching from C:/OSGEO4W/bin/qgis-ltr-bin.exe works!
  • Then uninstall QGIS standalone -> It does not work anymore with C:/OSGEO4W/bin/qgis-ltr-bin.exe works!

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 gioman added the Feedback Waiting on the submitter for answers label Feb 19, 2021
@gioman
Copy link
Contributor

gioman commented Feb 19, 2021

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
Copy link

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
Copy link
Author

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 gioman closed this as completed Feb 19, 2021
@gioman
Copy link
Contributor

gioman commented Feb 19, 2021

=> Should I close this issue?

done.

@MoritzBrennecke
Copy link
Author

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
Copy link
Member

jef-n commented Feb 22, 2021

@MoritzBrennecke Remove the file from your cache and retry.

@RossFF80
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS Feedback Waiting on the submitter for answers Windows Related to Windows operating system
Projects
None yet
Development

No branches or pull requests

6 participants