Environment Configuration Eclipse+pydev+python27 + pyqt4.8.6 + qgis2.6
Eclipse installation. Slightly
Pydev installation. Slightly
PYTHON27 installation. Slightly.
pyqt4.8.6 + qgis2.6 installation. I am using the OSGEO4W installation package, osgeo4w itself with qgis2.6 development components and pyqt4.8.6 development components, PYTHON27 will also be brought, python27 the best installation of their own. Note that after installing with OSGEO4W, do not install PYQT in a separate,
Precautions:
Qgis.core DLL not found: is caused by environment variable settings, but it is not possible to add environment variables directly in PATH, and you will find that there is no effect. The correct approach is to C:\OSGeo4W\bin add a bat file file to set your environment variables through a bat file and start the Eclipse.exe
Pydevqgis.bat:
@echo off
Call "%~dp0\o4w_env.bat"
@echo off
Path%osgeo4w_root%\apps\qgis\bin;%path%
Set Qgis_prefix_path=%osgeo4w_root:\=/%/apps/qgis
REM Set VSI cache to is used as buffer, #6448
Set Vsi_cache=true
Set vsi_cache_size=1000000
Set Qt_plugin_path=%osgeo4w_root%\apps\qgis\qtplugins;%o Sgeo4w_root%\apps\qt4\plugins
D:\andr_dev\eclipse\eclipse.exe
The last line of the bat file is the path to eclipse, replaced by your own, without changing the rest.
When you start Eclipse, double-click Pydevqgis.bat, and then you can go straight to the coding. Because the Qgis.core dll not found took me a long time to search Google, I almost gave up the way PYQT Qgis was developed. The solution to the problem is still there, unless you have not found the relevant success stories.