[QGIS-Developer] Could not load qgis_app.dll

Paul N surveykshak at gmail.com
Wed Apr 5 00:37:54 PDT 2023


Hi
I am compiling QGIS 3.28.5 with minor changes on Windows 10 system -->
running configonly.bat --> ninja and build compilation successful. After
ninja install, the QGIS files are install in OSGeo4W/apps/qgis-test and
qgis running quite successful from bin/qgis.exe.

Now I have create msi using https://github.com/jef-n/OSGeo4W and replace my
QGIS app file with those which are created by
https://github.com/jef-n/OSGeo4W and win to create msi successfully. After
installation of that msi installer, QGIS gives the error.
-------------------------------------------------------------------------------------
Oops, 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:\Program Files\QGIS 3.28.5\bin\qgis-ltr-bin.env for correct
environment paths
--------------------------------------------------------------------------------------

Whereas if I create the whole setup with cmake-gui and do compilation on VS
2019 and generate msi installer everything runs fine. There is no issue at
all.

My question is why the ninja build compiled qgis is not running after every
successful process, i.e after creation of msi installer. Is there anything
which I am missing?


Regards
Paul N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230405/6fa8fcf6/attachment.htm>


More information about the QGIS-Developer mailing list