Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#601 closed defect (fixed)

Cannot start QGIS dev - could not load qgis_app.dll

Reported by: chau Owned by: osgeo4w-dev@…
Priority: major Component: Package
Version: Keywords: qgis-dev
Cc:

Description

I have a problem with my OSGeo4W64 installation, specifically QGIS 3.7 dev. When I start QGIS I get the following error:

Ooops, looks like an error loading QGIS.

Details:

Could not load qgis_app.dll
Windows Error: The specified module could not be found.

Help:

Check C:\OSGeo4W64\bin\qgis-dev-bin-g.env for correct environment paths.

I can see qgis_app.dll in the c:\OSGeo4W64\apps\qgis-dev\bin\ folder, but I don't have a qgis-dev-bin-g.env in the c:\OSGeo4W64\bin\ folder.

I have a qgis-dev-bin-g.exe and a qgis-dev-bin-g.vars .

I have just updated my OSGeo4W64 installation and it uninstalled QGIS 3.7 dev and installed a new version - and I still have the issue.

OS: Windows 10 x64.

Change History (4)

comment:1 by jef, 5 years ago

Priority: criticalmajor

That might point to a problem with your GRASS install.

%OSGEO4W_ROOT%\etc\postinstall\qgis-dev.bat runs grass76 --config version to detect the version (currently 7.6.1), parses the major version number from it (7) and uses that in the name of the batch file and binaries (qgis-dev-bin-g7.bat and qgis-dev-bin-g7.exe). The batch file is then run with --postinstall to produce the .env - which apparently didn't happen on your machine.

What does grass76 --config version produce in your osgeo4w shell?

comment:2 by chau, 5 years ago

I haven't installed GRASS (not on purpose at least and I haven't done anything to remove it if it was installed automatically).

grass76 --config version only produces 'grass76' is not recognized as an internal or external command, operable program or batch file. when I run it in the OSGeo shell.

If I run the setup and search for grass then none of the found items are installed.

comment:3 by jef, 5 years ago

Resolution: fixed
Status: newclosed

grass added as dependency. Reinstall qgis-dev please

comment:4 by chau, 5 years ago

Thanks Jürgen, it works perfectly now!

Note: See TracTickets for help on using tickets.